/* ==========================================================================
   The Menopause Sleep Method - Global Styles
   Mobile-first, warm wellness aesthetic
   Research-backed palette for women 45-60
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --plum: #4a3548;
  --sage: #7a9e8e;
  --sage-dark: #6a8e7e;
  --coral: #c4726c;
  --coral-dark: #b5635d;
  --gold: #c4a96a;
  --cream: #f3ede4;
  --bg: #faf8f5;
  --white: #ffffff;
  --text: #3d3835;
  --text-light: #6b6260;
  --border: #e0dbd5;
  --max-width: 680px;
  --max-width-article: 700px;
}

html {
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  color-scheme: light only;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Force light mode regardless of system preference - skip when night mode is active */
@media (prefers-color-scheme: dark) {
  html:not(.night-mode), html:not(.night-mode) body {
    background-color: #faf8f5 !important;
    color: #3d3835 !important;
    color-scheme: light !important;
  }
  html:not(.night-mode) * {
    color-scheme: light !important;
  }
  html:not(.night-mode) input,
  html:not(.night-mode) button,
  html:not(.night-mode) select,
  html:not(.night-mode) textarea {
    background-color: #ffffff !important;
    color: #3d3835 !important;
    border-color: #e0dbd5 !important;
  }
  html:not(.night-mode) .btn,
  html:not(.night-mode) .btn:hover {
    background-color: #c4726c !important;
    color: #ffffff !important;
  }
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container--article {
  max-width: var(--max-width-article);
}

/* Typography - serif headlines for editorial trust */
h1 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--plum);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

h3 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--sage-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Brand header */
.brand {
  text-align: center;
  padding: 24px 0 8px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--plum);
  letter-spacing: 0.5px;
}

/* Hero / Lead Section */
.hero {
  text-align: center;
  padding: 32px 0 16px;
}

.hero h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.hero .subtext {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Email form */
.email-form {
  max-width: 400px;
  margin: 0 auto;
}

.email-form input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  font-size: 1.05rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: var(--white);
}

.email-form input[type="email"]:focus {
  border-color: var(--sage);
}

.btn {
  display: inline-block;
  width: 100%;
  padding: 16px 32px;
  min-height: 52px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  background: var(--coral);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  text-align: center;
  line-height: 1.4;
}

.btn:hover {
  background: var(--coral-dark);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn--large {
  padding: 16px 32px;
  font-size: 1.15rem;
}

.btn--buy {
  max-width: 420px;
  margin: 0 auto;
  display: block;
}

.privacy-text {
  font-size: 0.82rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 12px;
}

.social-proof-line {
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 20px;
  font-style: italic;
}

/* Success message */
.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  background: var(--cream);
  border-radius: 12px;
  margin-top: 16px;
}

.form-success h3 {
  color: var(--sage-dark);
  margin-bottom: 8px;
}

/* Sections */
.section {
  padding: 40px 0;
}

.section--cream {
  background: var(--cream);
}

.section--plum {
  background: var(--plum);
  color: var(--white);
}

.section--plum h3 {
  color: var(--white);
}

.section-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--plum);
  text-align: center;
  margin-bottom: 24px;
}

.section--plum .section-title {
  color: var(--white);
}

/* Bullet list */
.benefit-list {
  list-style: none;
  padding: 0;
}

.benefit-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}

.benefit-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Offer stack */
.offer-stack {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.offer-stack li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.offer-stack li:last-child {
  border-bottom: none;
}

.offer-stack .value {
  color: var(--text-light);
  font-size: 0.85rem;
  text-decoration: line-through;
}

.price-box {
  text-align: center;
  padding: 24px;
  margin: 24px 0;
}

.price-box .total-value {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-box .your-price {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--plum);
}

/* Guarantee */
.guarantee-box {
  background: var(--cream);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.guarantee-box h3 {
  color: var(--plum);
  margin-bottom: 12px;
}

.guarantee-box p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0;
}

/* Research stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--cream);
  border-radius: 12px;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--plum);
  line-height: 1.1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}
.stat-source {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 8px;
  font-style: italic;
}
.researcher-quote {
  background: var(--plum);
  color: #fff;
  padding: 28px 24px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.researcher-quote p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 12px;
}
.researcher-name {
  font-size: 0.82rem;
  opacity: 0.85;
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-number { font-size: 1.8rem; }
}

/* Research citations */
.research-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-light);
}

.research-item:last-child {
  border-bottom: none;
}

/* Reviews */
.review-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.review-stars {
  color: #e8a84c;
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.review-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 12px;
}
.review-name {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

/* FAQ */
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-q {
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 8px;
  font-size: 1rem;
}

.faq-a {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

/* VSL container */
.vsl-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--plum);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.vsl-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgba(255,255,255,0.6);
}

.vsl-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(196, 114, 108, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  cursor: pointer;
}

.vsl-play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-left: 20px solid var(--white);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.vsl-text {
  font-size: 0.88rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 32px;
}

/* Trust badges */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* Download cards */
.download-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-card .title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--plum);
}

.download-card .btn {
  width: auto;
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* Article styles */
.article-header {
  padding: 20px 0 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.article-body {
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-body h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--plum);
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-body p {
  margin-bottom: 1.25rem;
}

.byline {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.article-cta {
  background: var(--cream);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}

.article-cta h3 {
  margin-bottom: 8px;
}

.article-cta .btn {
  width: auto;
  display: inline-block;
  margin-top: 12px;
}

/* Footer / Disclaimer */
.disclaimer {
  padding: 32px 0;
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

/* Blog / Personal Article Layout */
.container--blog {
  max-width: 680px;
}

.blog-home {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--plum);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.blog-home:hover {
  text-decoration: none;
  opacity: 0.8;
}

.blog-category {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--coral);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
}

.author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.author-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--plum);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
}

.author-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.92rem;
}

.author-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 2px;
}

.blog-title {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--plum);
  margin-bottom: 24px;
}

.blog-body {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.12rem;
  line-height: 1.72;
  color: var(--text);
}

.blog-body p {
  margin-bottom: 1.4rem;
}

.blog-body h2 {
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--plum);
  margin-top: 40px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-body .lead {
  font-size: 1.2rem;
  color: var(--text-light);
  line-height: 1.65;
}

.cortisol-cascade {
  color: var(--coral);
  font-weight: 600;
}

.blog-divider {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

.blog-cta-box {
  background: var(--cream);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  margin: 40px 0;
}

.blog-cta-box p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 20px;
  font-family: Georgia, 'Times New Roman', Times, serif;
  line-height: 1.6;
}

.blog-cta-box .btn {
  width: auto;
  display: inline-block;
  max-width: 420px;
  margin-bottom: 16px;
}

.blog-cta-secondary {
  font-size: 0.9rem;
  color: var(--sage-dark);
  display: block;
  margin-top: 4px;
}

.blog-cta-secondary:hover {
  text-decoration: underline;
}

.blog-author-footer {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 0;
}

.blog-author-footer .author-photo {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.blog-author-footer .author-bio-name {
  font-weight: 700;
  color: var(--plum);
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.blog-author-footer .author-bio-text {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.share-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 600;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--text-light);
  text-decoration: none;
  transition: background 0.2s;
}

.share-btn:hover {
  background: var(--border);
  text-decoration: none;
}

.share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Sarah email footer - all pages */
.sarah-footer {
  text-align: center;
  padding: 24px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.sarah-footer a {
  color: var(--sage-dark);
  font-weight: 500;
}

@media (min-width: 640px) {
  .blog-title {
    font-size: 2.3rem;
  }
  .blog-body {
    font-size: 1.18rem;
  }
}

/* Responsive */
@media (min-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }

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

  .hero h2 {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .section {
    padding: 56px 0;
  }

  .download-card {
    padding: 24px;
  }
}
