/* ============================================
   CSI / DN4 Pain Assessment Landing Page
   Luteal Health Brand Styles
   Mobile-first design
   ============================================ */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #2D2D2D;
  background-color: #FBFAF9;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1A1A1A;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #2D6A6A;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: #1E4E4E;
}

strong {
  font-weight: 600;
}

ul {
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

/* --- Layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 3.5rem 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: #2D6A6A;
  color: #fff;
  padding: 1rem 2rem;
}

.btn-primary:hover {
  background-color: #245858;
  color: #fff;
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

/* --- Hero --- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.2rem;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.subheadline {
  font-size: 1.1rem;
  color: #555;
  max-width: 540px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.byline {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 2rem;
}

.micro {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.75rem;
}

/* --- Reframe --- */
.reframe {
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* --- Pain Type Cards --- */
.pain-types {
  padding-bottom: 2rem;
}

.section-intro {
  color: #555;
  margin-bottom: 2rem;
}

.pain-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.pain-card--nociceptive {
  border-left-color: #D4873E;
}

.pain-card--neuropathic {
  border-left-color: #7B5EA7;
}

.pain-card--nociplastic {
  border-left-color: #2D6A6A;
}

.pain-card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.pain-card__subtitle {
  font-size: 0.9rem;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.key-stat {
  background-color: #F5F0EB;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: #444;
  font-style: italic;
}

/* --- Callout Box --- */
.callout-box {
  background-color: #EDF5F5;
  border-left: 4px solid #2D6A6A;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.callout-box p {
  margin-bottom: 0.75rem;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.callout-box--note {
  background-color: #F9F6F2;
  border-left-color: #B5727A;
}

/* --- Screener Section --- */
.screener-section {
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.screener {
  margin-top: 2rem;
}

.screener__start {
  text-align: center;
  padding: 2rem 0;
}

/* Progress bar */
.screener__progress {
  height: 4px;
  background-color: #E8E5E1;
  border-radius: 2px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.screener__progress-bar {
  height: 100%;
  width: 0%;
  background-color: #2D6A6A;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Back button */
.screener__back {
  background: none;
  border: none;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
}

.screener__back:hover {
  color: #2D6A6A;
}

/* Card container */
.screener__cards {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

/* Individual cards */
.question-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease, opacity 0.3s ease;
  padding: 0.5rem 0;
}

.question-card.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.question-card.prev {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.question-card.next {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

/* Transition cards (Part 1 intro, Part 2 intro) */
.question-card--transition {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.question-card--transition h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: #2D6A6A;
}

.question-card--transition p {
  color: #666;
  font-size: 0.95rem;
  max-width: 400px;
}

.question-card--transition .tap-hint {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 1rem;
}

/* Question text */
.question-card__text {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  color: #1A1A1A;
}

.question-card__preamble {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.question-card__number {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Answer buttons */
.answer-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background-color: #FBFAF9;
  border: 2px solid #E8E5E1;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #2D2D2D;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  min-height: 52px;
}

.answer-btn:hover {
  border-color: #2D6A6A;
  background-color: #F0F7F7;
}

.answer-btn.selected {
  border-color: #2D6A6A;
  background-color: #2D6A6A;
  color: #fff;
}

/* DN4 Yes/No buttons */
.answer-btn--yn {
  text-align: center;
  font-size: 1.05rem;
}

/* Calculating spinner */
.screener__calculating {
  text-align: center;
  padding: 4rem 0;
}

.calculating-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #E8E5E1;
  border-top-color: #2D6A6A;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Results Section --- */
.results-section {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.result-heading {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #1A1A1A;
}

.result-scores {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.result-score-card {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.result-score-card__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 0.25rem;
}

.result-score-card__value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #2D6A6A;
}

.result-score-card__range {
  font-size: 0.75rem;
  color: #aaa;
}

.result-score-card--elevated .result-score-card__value {
  color: #B5727A;
}

.result-body p {
  margin-bottom: 1rem;
}

.result-body strong {
  color: #1A1A1A;
}

.result-ask-provider {
  background-color: #EDF5F5;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.result-ask-provider p {
  margin-bottom: 0;
}

/* --- Bridge --- */
.bridge {
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* --- Email Gate --- */
.email-gate {
  text-align: center;
  padding: 3rem 0;
}

.email-form-wrapper h2 {
  margin-bottom: 0.75rem;
}

.email-form-wrapper p {
  color: #555;
  margin-bottom: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.email-micro {
  margin-top: 1rem;
}

/* --- About --- */
.about {
  background-color: #fff;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.next-steps {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #FBFAF9;
  border-radius: 10px;
}

.next-steps__heading {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #1A1A1A;
}

.next-steps ul {
  list-style: none;
  padding-left: 0;
}

.next-steps li {
  margin-bottom: 0.75rem;
  padding-left: 0;
}

/* --- Share Section --- */
.share-section {
  text-align: center;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 2px solid #E8E5E1;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2D2D2D;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.share-btn:hover {
  border-color: #2D6A6A;
  color: #2D2D2D;
}

.share-btn__icon {
  font-size: 1.1rem;
}

.copy-confirm {
  color: #2D6A6A;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

/* --- Footer --- */
.footer {
  background-color: #1A1A1A;
  color: #ccc;
  padding: 3rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.disclaimer {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

.disclaimer p {
  color: #999;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: #777;
  font-size: 0.8rem;
}

.citations {
  margin-top: 1.5rem;
}

.citations summary {
  cursor: pointer;
  color: #888;
  font-size: 0.8rem;
}

.citations summary:hover {
  color: #ccc;
}

.citations p {
  margin-top: 0.75rem;
  color: #888;
  font-size: 0.78rem;
  line-height: 1.6;
}

/* ============================================
   Desktop overrides
   ============================================ */
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  section {
    padding: 5rem 0;
  }

  .hero {
    padding: 7rem 0 5rem;
  }

  .subheadline {
    font-size: 1.2rem;
  }

  .pain-card {
    padding: 2.5rem 2rem;
  }

  .screener__cards {
    min-height: 400px;
  }

  .answer-btn {
    max-width: 480px;
  }

  .result-heading {
    font-size: 1.8rem;
  }
}
