/* ============================================================
   NeckRevive Funnel — Shared Styles
   Mobile-first, dead-end pages, no external dependencies
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --navy: #1B2A4A;
  --navy-light: #2D3F63;
  --terracotta: #C67B5C;
  --terracotta-light: #D98B72;
  --terracotta-dark: #A85D40;
  --cream: #FAF7F2;
  --cream-dark: #EFE8DC;
  --white: #FFFFFF;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #8A8A8A;
  --border: #E0DCD5;
  --success: #2D8B4E;
  --success-light: #E8F5EB;
  --error: #BA1A1A;
  --error-light: #FFEBEE;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --max-width: 680px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Funnel pages: dead-end — no nav, no side links */
body.funnel-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  background: var(--white);
  min-height: 100vh;
  box-shadow: var(--shadow-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-sans); line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.375rem, 4vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.125rem, 3vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin-bottom: 1rem; color: var(--text-medium); }
.text-small { font-size: 0.875rem; }
.text-center { text-align: center; }
.text-navy { color: var(--navy); }
.text-terracotta { color: var(--terracotta); }
.text-medium { color: var(--text-medium); }
.text-light { color: var(--text-light); }
.text-white { color: var(--white); }
.font-serif { font-family: var(--font-serif); }
.font-bold { font-weight: 700; }

/* --- Layout: Sections --- */
.section {
  padding: 3rem 1.25rem;
}
@media (min-width: 768px) {
  .section { padding: 5rem 2rem; }
}
.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy p { color: rgba(255,255,255,0.85); }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

/* --- Header --- */
.funnel-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--terracotta);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
}
.clinical-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-light);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* Progress bar */
.progress-bar-wrap {
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}
.progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill { height: 100%; background: var(--terracotta); border-radius: 2px; transition: width 0.4s ease; }

/* --- Hero --- */
.hero {
  padding: 3rem 1.25rem;
  text-align: center;
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}
.hero .subheadline {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-image-placeholder {
  width: 100%;
  max-width: 400px;
  height: 260px;
  margin: 1.5rem auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.875rem;
  border: 1px dashed rgba(255,255,255,0.15);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.3;
}
.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(198,123,92,0.35);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(198,123,92,0.45);
}
.btn-large {
  padding: 1.125rem 2.5rem;
  font-size: 1.1875rem;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
}
.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border: 2px solid var(--terracotta);
}
.btn-outline:hover {
  background: var(--terracotta);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-white:hover { background: var(--cream-dark); }

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card-accent {
  border-left: 4px solid var(--terracotta);
}

/* Brunson Box */
.brunson-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 600px) {
  .brunson-box { grid-template-columns: 1fr 1fr; }
}
.brunson-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.brunson-card h4 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.brunson-card .card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}
.brunson-card p {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 0;
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-bottom: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--navy);
}
.form-input.error {
  border-color: var(--error);
  background: var(--error-light);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 400px) {
  .form-row { grid-template-columns: 1fr; }
}

/* --- Bump (Checkbox) --- */
.bump-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  transition: border-color 0.2s ease;
}
.bump-card.checked {
  border-color: var(--terracotta);
  background: linear-gradient(135deg, rgba(198,123,92,0.05), rgba(255,255,255,1));
}
.bump-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.bump-checkbox {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--border);
  border-radius: 4px;
  margin-top: 2px;
  cursor: pointer;
  background: var(--white);
  position: relative;
  transition: all 0.15s ease;
}
.bump-checkbox:checked {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.bump-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bump-title {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.bump-desc {
  font-size: 0.875rem;
  color: var(--text-medium);
  margin-bottom: 0.25rem;
}
.bump-price {
  font-size: 0.8125rem;
  color: var(--text-light);
}
.bump-image-placeholder {
  width: 80px;
  height: 80px;
  background: var(--cream);
  border-radius: var(--radius);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.75rem;
}

/* --- Order Summary --- */
.order-summary {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.order-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
}
.order-line.total {
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
}
.order-line .price { font-weight: 600; }

/* --- Guarantee Badge --- */
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--success-light);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 1rem 0;
}
.guarantee-icon { font-size: 1rem; }

/* --- Science Citations --- */
.citation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
@media (min-width: 500px) {
  .citation-grid { grid-template-columns: 1fr 1fr; }
}
.citation-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-size: 0.8125rem;
  text-align: center;
}
.citation-badge .journal { font-weight: 600; display: block; margin-bottom: 0.125rem; }
.citation-badge .year { opacity: 0.7; }

/* --- Mechanism Steps --- */
.mechanism-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 600px) {
  .mechanism-steps { grid-template-columns: 1fr 1fr 1fr; }
}
.mechanism-step {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.mechanism-step .step-num {
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.mechanism-step h3 { font-size: 1.125rem; margin-bottom: 0.375rem; }
.mechanism-step p { font-size: 0.875rem; margin-bottom: 0; }

/* --- Story / Epiphany Bridge --- */
.story-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 600px) {
  .story-compare { grid-template-columns: 1fr 1fr; }
}
.story-col {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}
.story-before { background: #FFF0ED; border: 1px solid rgba(198,123,92,0.2); }
.story-after { background: #E8F5EB; border: 1px solid rgba(45,139,78,0.2); }
.story-col h4 { margin-bottom: 0.75rem; }
.story-col ul { list-style: none; padding: 0; }
.story-col li {
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--text-medium);
}
.story-col li::before {
  content: '•';
  margin-right: 0.5rem;
}
.story-before li::before { color: var(--terracotta); }
.story-after li::before { color: var(--success); }

/* --- Challenge Timeline --- */
.challenge-timeline {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.challenge-timeline li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.challenge-day {
  min-width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}
.challenge-content h4 { font-size: 1rem; margin-bottom: 0.125rem; }
.challenge-content p { font-size: 0.875rem; margin-bottom: 0; }

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (min-width: 600px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.testimonial-card .stars { color: #F5A623; font-size: 0.875rem; margin-bottom: 0.5rem; }
.testimonial-card .quote {
  font-style: italic;
  color: var(--text-medium);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}
.testimonial-card .author {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-dark);
}
.testimonial-card .location { font-size: 0.75rem; color: var(--text-light); }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
  cursor: pointer;
}
.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-medium);
  display: block;
}

/* --- Value Stack --- */
.value-stack { margin: 1.5rem 0; }
.stack-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}
.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.stack-item .item-name { font-size: 0.9375rem; color: var(--text-medium); }
.stack-item .item-value {
  font-size: 0.875rem;
  color: var(--text-light);
  text-decoration: line-through;
}
.stack-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  font-weight: 700;
}
.stack-total .total-label { font-size: 1.125rem; color: var(--navy); }
.stack-total .total-price { font-size: 1.5rem; color: var(--navy); }

/* --- Upsell specific --- */
.upsell-decline {
  display: block;
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.upsell-decline:hover { color: var(--text-medium); }

/* --- Thank You --- */
.thank-you-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1rem;
  color: var(--white);
  font-size: 2.5rem;
}
.thank-you-next {
  max-width: 420px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.thank-you-next ol {
  padding-left: 1.25rem;
}
.thank-you-next li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-medium);
}

/* --- Footer --- */
.funnel-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  background: var(--cream);
}
.funnel-footer a { color: var(--text-light); }

/* --- Image Placeholder --- */
.img-placeholder {
  background: var(--cream-dark);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8125rem;
  min-height: 120px;
  width: 100%;
}
.img-placeholder.inline {
  min-height: 80px;
  max-width: 320px;
}

/* --- Utils --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* --- Converted Product Images --- */
.hero-image {
  width: 100%;
  max-width: 540px;
  height: auto;
  margin: 1.5rem auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
}

.product-image {
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 1.5rem auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  display: block;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}
.product-image.inline {
  display: block;
  max-width: 320px;
}

