/* ============================================
   The Split Night Fix — Landing Page Styles
   Mobile-first. High readability. Calm tone.
   ============================================ */

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

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  color: #1a1a2e;
  background: #fafaf8;
  -webkit-font-smoothing: antialiased;
}

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

section {
  padding: 56px 0;
}

section + section {
  border-top: 1px solid #e8e6e1;
}

/* --- Typography --- */
h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #1a1a2e;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

/* --- Links --- */
a {
  color: #2d5a7b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #1a1a2e;
}

/* --- Hero --- */
.hero {
  padding: 72px 0 56px;
  text-align: center;
  border-top: none;
}

.hero h1 {
  font-size: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subheadline {
  font-size: 1.05rem;
  color: #3d3d56;
  max-width: 540px;
  margin: 0 auto 8px;
  line-height: 1.6;
}

.hero .qualifiers {
  font-size: 0.9rem;
  color: #6b6b80;
  margin-bottom: 32px;
}

.hero .supporting {
  font-size: 0.85rem;
  color: #6b6b80;
  margin-top: 12px;
  line-height: 1.5;
}

/* --- CTA Button --- */
.cta-btn {
  display: inline-block;
  background: #1a1a2e;
  color: #fafaf8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
  letter-spacing: 0.01em;
}

.cta-btn:hover {
  background: #2d2d4a;
  color: #fafaf8;
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-btn:active {
  transform: translateY(0);
}

/* --- Pattern Section --- */
.pattern p {
  font-size: 1.05rem;
}

.pattern .diagnosis {
  font-weight: 700;
}

.pattern ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.pattern li {
  margin-bottom: 12px;
  padding-left: 0;
  line-height: 1.55;
  font-size: 0.95rem;
  color: #3d3d56;
}

.pattern li strong {
  color: #1a1a2e;
}

.pattern .urgency {
  font-size: 0.95rem;
  color: #5a5a70;
  font-style: italic;
}

/* --- What's Inside --- */
.whats-inside .item {
  margin-bottom: 24px;
}

.whats-inside .item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.whats-inside .item p {
  font-size: 0.95rem;
  color: #3d3d56;
  margin-bottom: 0;
}

.whats-inside .summary {
  font-size: 0.95rem;
  color: #5a5a70;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #e8e6e1;
}

/* --- Who It's For --- */
.who-for ul {
  list-style: none;
  padding: 0;
}

.who-for li {
  margin-bottom: 20px;
  padding-left: 0;
  line-height: 1.6;
}

.who-for li strong {
  display: block;
  margin-bottom: 2px;
}

/* --- How It Works --- */
.how-it-works ol {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}

.how-it-works li {
  counter-increment: steps;
  margin-bottom: 20px;
  padding-left: 36px;
  position: relative;
  line-height: 1.6;
}

.how-it-works li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  background: #1a1a2e;
  color: #fafaf8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.how-it-works .closing {
  font-size: 0.95rem;
  color: #5a5a70;
  margin-top: 24px;
  font-style: italic;
}

/* --- What This Is Not --- */
.not-this ul {
  list-style: none;
  padding: 0;
}

.not-this li {
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  color: #3d3d56;
}

.not-this li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: #b0b0b8;
}

.not-this .affirmation {
  margin-top: 20px;
  font-weight: 700;
  color: #1a1a2e;
}

/* --- FAQ --- */
.faq details {
  margin-bottom: 0;
  border-bottom: 1px solid #e8e6e1;
}

.faq details:first-of-type {
  border-top: 1px solid #e8e6e1;
}

.faq summary {
  padding: 18px 32px 18px 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  list-style: none;
  line-height: 1.4;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 1.2rem;
  font-weight: 400;
  color: #6b6b80;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq .answer {
  padding: 0 0 18px;
  font-size: 0.95rem;
  color: #3d3d56;
  line-height: 1.65;
}

/* --- Guarantee --- */
.guarantee {
  text-align: center;
}

.guarantee h2 {
  margin-bottom: 12px;
}

.guarantee p {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  color: #3d3d56;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 64px 0;
}

.final-cta .hook {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.final-cta .hook-sub {
  font-size: 1rem;
  color: #3d3d56;
  margin-bottom: 28px;
}

.final-cta .supporting {
  font-size: 0.85rem;
  color: #6b6b80;
  margin-top: 12px;
}

/* --- Social Proof (TODO) --- */
.social-proof {
  text-align: center;
  background: #f4f3ef;
  border-radius: 8px;
  padding: 32px 24px;
}

.social-proof blockquote {
  font-style: italic;
  font-size: 1.05rem;
  color: #3d3d56;
  margin-bottom: 12px;
  line-height: 1.6;
}

.social-proof cite {
  font-size: 0.85rem;
  color: #6b6b80;
  font-style: normal;
}

/* --- Disclaimers --- */
.disclaimers {
  font-size: 0.8rem;
  color: #8a8a9a;
  line-height: 1.6;
  padding: 40px 0;
}

.disclaimers p {
  margin-bottom: 12px;
}

/* --- Footer --- */
.footer {
  padding: 24px 0;
  border-top: 1px solid #e8e6e1;
  font-size: 0.8rem;
  color: #8a8a9a;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  color: #6b6b80;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

.footer-links a:hover {
  color: #1a1a2e;
  text-decoration: underline;
}

/* --- Responsive --- */
@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .hero {
    padding: 48px 0 40px;
  }

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

  section {
    padding: 40px 0;
  }

  .cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px 24px;
  }

  .how-it-works li {
    padding-left: 32px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }
}
