/* =========================================================================
   CycleWise — The PCOS Protocol
   Sales Page Stylesheet
   ========================================================================= */

/* -----  DESIGN TOKENS  --------------------------------------------------- */

:root {
  /* Brand palette */
  --forest: #3A4D2E;
  --forest-deep: #2A3A21;
  --sage: #9CAF88;
  --sage-deep: #7E9168;
  --sage-light: #C4D4B5;
  --lavender: #B8A6CC;
  --lavender-light: #D8CCE3;
  --cream: #F4EFE6;
  --cream-light: #FAF7F1;
  --cream-deep: #ECE5D6;
  --charcoal: #2A2A2A;
  --charcoal-70: rgba(42, 42, 42, 0.7);
  --charcoal-50: rgba(42, 42, 42, 0.5);
  --charcoal-30: rgba(42, 42, 42, 0.3);
  --charcoal-15: rgba(42, 42, 42, 0.15);
  --charcoal-08: rgba(42, 42, 42, 0.08);

  /* Type-card colors (matched to workbook) */
  --type-insulin: #DCE8CE;
  --type-adrenal: #E0D4ED;
  --type-inflammatory: #F1E2CC;
  --type-postpill: #EFD6D8;

  /* Phase colors (matched to "Your Journey" page in workbook) */
  --phase-foundation: #7E9168;
  --phase-build: #9F8AB8;
  --phase-deepen: #C99A4A;
  --phase-consolidate: #2A3A21;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --container: 1180px;
  --container-narrow: 720px;
  --container-prose: 620px;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
  --space-7: 8rem;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* -----  RESET / BASE  ---------------------------------------------------- */

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

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

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'calt';
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--forest);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--sage-deep);
}

/* Selection */
::selection {
  background: var(--sage);
  color: var(--cream);
}

/* -----  TYPOGRAPHY  ------------------------------------------------------ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.15; }
h4 { font-size: 1.5rem; line-height: 1.25; }

em, .italic {
  font-style: italic;
  color: var(--sage-deep);
  font-weight: 500;
}

h1 em, h2 em {
  color: var(--sage-deep);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: var(--space-3);
}

.lead {
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--charcoal);
  font-weight: 400;
}

p { color: var(--charcoal); }

/* -----  LAYOUT  ---------------------------------------------------------- */

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

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-prose {
  width: 100%;
  max-width: var(--container-prose);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--space-7) 0;
  position: relative;
}

@media (max-width: 768px) {
  section { padding: var(--space-5) 0; }
}

/* Section dividers — editorial style */
.section-divider {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: var(--space-4) 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 0 0 80px;
  height: 1px;
  background: var(--charcoal-30);
}

.section-divider::after { margin-left: 12px; }
.section-divider::before { margin-right: 12px; }

.section-divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

/* -----  HEADER  ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 239, 230, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--charcoal-08);
}

.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.125rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--forest);
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
}

.logo-cycle { color: var(--forest); }
.logo-wise { color: var(--lavender); font-style: italic; }

.header-link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal-70);
  letter-spacing: 0.01em;
}

.header-link:hover { color: var(--forest); }

@media (max-width: 600px) {
  .header-link { font-size: 0.8125rem; }
}

/* -----  BUTTONS  --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 1.125rem 2.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--forest);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--forest-deep);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(58, 77, 46, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}

.btn-secondary:hover {
  background: var(--forest);
  color: var(--cream);
}

.btn-large {
  font-size: 1.0625rem;
  padding: 1.25rem 2.75rem;
}

/* -----  HERO  ------------------------------------------------------------ */

.hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-5);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.hero-content { max-width: 580px; }

.hero-headline {
  margin: var(--space-3) 0;
  font-weight: 500;
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: var(--space-3);
  line-height: 1.4;
  font-weight: 400;
}

.hero-body {
  font-size: 1.0625rem;
  color: var(--charcoal-70);
  margin-bottom: var(--space-4);
  max-width: 520px;
}

.hero-cta { margin-bottom: var(--space-2); }

.trust-line {
  font-size: 0.8125rem;
  color: var(--charcoal-50);
  margin-top: var(--space-2);
  letter-spacing: 0.01em;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 80px -20px rgba(58, 77, 46, 0.18);
}

/* Subtle decorative element behind hero image */
.hero-visual::before {
  content: '';
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 60%;
  height: 60%;
  background: var(--sage-light);
  opacity: 0.3;
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

/* -----  ESSAY SECTION (The Quiet Failure) -------------------------------- */

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

.essay-h2 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.essay p {
  font-size: 1.1875rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.essay .mt-4 > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 0.85;
  float: left;
  margin: 0.15em 0.1em -0.05em -0.02em;
  color: var(--forest);
  font-weight: 500;
}

/* -----  THE FOUR TYPES  -------------------------------------------------- */

.types {
  background: var(--cream-light);
  border-top: 1px solid var(--charcoal-08);
  border-bottom: 1px solid var(--charcoal-08);
}

.types-intro {
  text-align: center;
  margin-bottom: var(--space-5);
}

.types-intro h2 { margin-bottom: var(--space-3); }
.types-intro .lead { max-width: 620px; margin: 0 auto; }

.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .types-grid { grid-template-columns: 1fr; }
}

.type-card {
  padding: 2rem 2.25rem;
  background: var(--cream);
  border-left: 4px solid var(--sage);
  border-radius: 0 4px 4px 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position: relative;
}

.type-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -16px rgba(58, 77, 46, 0.12);
}

.type-card.type-1 { border-left-color: var(--phase-foundation); background: linear-gradient(to right, var(--type-insulin), var(--cream) 35%); }
.type-card.type-2 { border-left-color: var(--phase-build); background: linear-gradient(to right, var(--type-adrenal), var(--cream) 35%); }
.type-card.type-3 { border-left-color: var(--phase-deepen); background: linear-gradient(to right, var(--type-inflammatory), var(--cream) 35%); }
.type-card.type-4 { border-left-color: #B58889; background: linear-gradient(to right, var(--type-postpill), var(--cream) 35%); }

.type-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.type-name {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.1;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.625rem;
}

.type-tag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--charcoal-70);
  margin-bottom: 1rem;
}

.type-symptoms {
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.types-note {
  margin-top: var(--space-4);
  text-align: center;
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--charcoal-70);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* -----  INTRODUCING THE PROTOCOL  ---------------------------------------- */

.intro {
  text-align: center;
  padding-top: var(--space-7);
}

.intro h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--space-4);
  font-weight: 500;
}

.intro-body {
  max-width: 620px;
  margin: 0 auto var(--space-5) auto;
}

.intro-body p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.intro-visual {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.intro-visual img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 40px 100px -30px rgba(58, 77, 46, 0.22);
}

/* -----  WHAT YOU GET (Formats)  ------------------------------------------ */

.formats {
  background: var(--cream-deep);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

.formats-header {
  text-align: center;
  margin-bottom: var(--space-5);
}

.formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.formats-grid.formats-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 880px) {
  .formats-grid,
  .formats-grid.formats-3 {
    grid-template-columns: 1fr;
  }
}

.format-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--charcoal-08);
}

.format-card h3 {
  font-size: 1.625rem;
  margin-bottom: 0.5rem;
  color: var(--forest);
}

.format-card .format-tag {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--charcoal-70);
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.format-list {
  list-style: none;
  padding: 0;
}

.format-list li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--charcoal);
  line-height: 1.55;
  display: flex;
  gap: 0.625rem;
}

.format-list li::before {
  content: '—';
  color: var(--sage-deep);
  flex-shrink: 0;
}

.formats-visual {
  margin-top: var(--space-5);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.formats-visual img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 80px -25px rgba(58, 77, 46, 0.18);
}

/* -----  CONTENTS / CHAPTER LIST  ----------------------------------------- */

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

.contents-header { text-align: center; margin-bottom: var(--space-5); }

.contents-list {
  max-width: 780px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}

.chapter-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--charcoal-08);
  transition: padding 0.25s var(--ease);
}

.chapter-item:hover { padding-left: 0.5rem; }
.chapter-item:last-child { border-bottom: none; }

.chapter-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cream);
  background: var(--forest);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.chapter-number.ch-1 { background: var(--forest-deep); }
.chapter-number.ch-2 { background: var(--sage-deep); }
.chapter-number.ch-3 { background: #9F8AB8; }
.chapter-number.ch-4 { background: #C99A4A; }
.chapter-number.ch-5 { background: #B58889; }
.chapter-number.ch-6 { background: var(--sage); }
.chapter-number.ch-7 { background: var(--forest); }

.chapter-info h4 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.25rem;
}

.chapter-info p {
  font-size: 0.9375rem;
  color: var(--charcoal-70);
}

.chapter-meta {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: var(--charcoal-50);
  font-style: italic;
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .chapter-item {
    grid-template-columns: auto 1fr;
  }
  .chapter-meta {
    grid-column: 2;
    text-align: left;
    margin-top: 0.25rem;
  }
}

/* -----  APP FEATURES (P2 only)  ------------------------------------------ */

.app-features {
  background: var(--cream-light);
  border-top: 1px solid var(--charcoal-08);
}

.app-features-header { text-align: center; margin-bottom: var(--space-5); }

.app-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .app-features-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

.feature {
  position: relative;
  padding-left: 1.75rem;
}

.feature::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sage);
}

.feature h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.625rem;
  line-height: 1.2;
}

.feature p {
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.65;
}

/* -----  THE 12-WEEK ARC  ------------------------------------------------- */

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

.arc-header { text-align: center; margin-bottom: var(--space-5); }

.arc-intro {
  max-width: 620px;
  margin: 0 auto var(--space-5) auto;
  font-size: 1.125rem;
  line-height: 1.7;
  text-align: center;
  color: var(--charcoal);
}

.phases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .phases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .phases-grid { grid-template-columns: 1fr; }
}

.phase {
  padding: 2.25rem 1.75rem;
  border-radius: 4px;
  color: var(--cream);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
}

.phase p {
  color: var(--cream);
}

.phase-1 { background: var(--phase-foundation); }
.phase-2 { background: var(--phase-build); }
.phase-3 { background: var(--phase-deepen); }
.phase-4 { background: var(--phase-consolidate); }

.phase-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
  opacity: 0.85;
}

.phase-name {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 500;
  margin-bottom: 0.625rem;
  letter-spacing: -0.005em;
}

.phase-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.9;
}

.arc-caption {
  text-align: center;
  margin-top: var(--space-4);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--charcoal-70);
}

/* -----  AFTER 84 DAYS  -------------------------------------------------- */

.after-arc {
  background: var(--cream);
  padding-top: 0;
}

.after-arc-inner {
  max-width: 720px;
  margin: 0 auto;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(58, 77, 46, 0.14);
  position: relative;
  text-align: center;
}

.after-arc-inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--lavender, #B8A6CC);
}

.after-arc-inner .eyebrow {
  margin-bottom: 1rem;
}

.after-arc-inner h2 {
  margin-bottom: var(--space-4);
}

.after-arc-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--charcoal);
  text-align: left;
  margin-bottom: 1.25rem;
}

.after-arc-body:last-child {
  margin-bottom: 0;
}

.after-arc-body em {
  font-style: italic;
  color: var(--forest);
  font-weight: 500;
}

@media (max-width: 640px) {
  .after-arc-body {
    font-size: 1rem;
  }
}

/* -----  WHO THIS IS FOR  ------------------------------------------------- */

.for-whom {
  background: var(--cream-light);
  border-top: 1px solid var(--charcoal-08);
  border-bottom: 1px solid var(--charcoal-08);
}

.for-whom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 800px) {
  .for-whom-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

.for-whom-column h3 {
  font-size: 1.875rem;
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

.for-whom-list {
  list-style: none;
  padding: 0;
}

.for-whom-list li {
  padding: 0.75rem 0;
  font-size: 1rem;
  color: var(--charcoal);
  line-height: 1.55;
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--charcoal-08);
}

.for-whom-list li:last-child { border-bottom: none; }

.for-whom-list li::before {
  content: '—';
  color: var(--sage-deep);
  flex-shrink: 0;
  margin-top: 0.05em;
}

.for-whom-list.not-for li::before {
  color: var(--charcoal-30);
}

/* -----  FOUNDER'S NOTE  -------------------------------------------------- */

.founder {
  background: var(--cream);
  padding: var(--space-7) 0;
}

.founder-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem;
  border-left: 3px solid var(--sage);
  padding-left: 2.25rem;
}

@media (max-width: 600px) {
  .founder-content { padding-left: 1.5rem; }
}

.founder .eyebrow { color: var(--sage-deep); }

.founder h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: var(--space-3);
}

.founder p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}

.founder-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--charcoal-70);
  margin-top: var(--space-3);
}

/* -----  PRICING  --------------------------------------------------------- */

.pricing {
  background: var(--cream-light);
  border-top: 1px solid var(--charcoal-08);
}

.pricing-header { text-align: center; margin-bottom: var(--space-5); }

.pricing-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--cream);
  padding: 3.5rem 3rem;
  border: 1px solid var(--charcoal-15);
  border-radius: 8px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(58, 77, 46, 0.15);
}

@media (max-width: 520px) {
  .pricing-card { padding: 2.5rem 1.75rem; }
}

.pricing-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.375rem;
  line-height: 1.15;
}

.pricing-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--charcoal-70);
  margin-bottom: var(--space-4);
}

.pricing-amount {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6vw, 4.5rem);
  font-weight: 500;
  color: var(--forest);
  line-height: 1;
  margin-bottom: 0.625rem;
}

.pricing-terms {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--charcoal-70);
  margin-bottom: var(--space-4);
}

.pricing-includes {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: var(--space-4);
}

.pricing-includes li {
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: var(--charcoal);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-bottom: 1px solid var(--charcoal-08);
}

.pricing-includes li:last-child { border-bottom: none; }

.pricing-includes li::before {
  content: '✓';
  color: var(--sage-deep);
  font-weight: 600;
  margin-top: 0.05em;
  flex-shrink: 0;
}

.pricing-disclosure {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--charcoal-15);
  font-size: 0.9375rem;
  color: var(--charcoal-70);
  line-height: 1.6;
  text-align: left;
}

.pricing-disclosure strong { color: var(--charcoal); font-weight: 600; }

.pricing-cta-note {
  margin-top: var(--space-3);
  font-size: 0.8125rem;
  color: var(--charcoal-50);
  line-height: 1.55;
}

/* -----  MID-PAGE CTA BANNER  -------------------------------------------- */

.cta-banner {
  background: var(--sage-light);
  padding: var(--space-5) 0;
  text-align: center;
  position: relative;
}

.cta-banner-inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-banner h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  color: var(--forest);
  margin-bottom: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.cta-banner h3 em {
  color: var(--forest-deep);
  font-style: italic;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--forest);
  margin-bottom: 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  opacity: 0.85;
}

.cta-banner .btn-primary {
  background: var(--forest);
  color: var(--cream);
}

.cta-banner .btn-primary:hover {
  background: var(--forest-deep);
}

/* -----  CONTENTS VISUAL  ------------------------------------------------- */

.contents-visual {
  max-width: 720px;
  margin: var(--space-5) auto 0 auto;
  padding: 0 1.5rem;
}

.contents-visual img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 80px -25px rgba(58, 77, 46, 0.18);
}

/* -----  THANK-YOU PAGES  ------------------------------------------------- */

/* Welcome banner (top of upsell page) */
.welcome-banner {
  padding: var(--space-6) 0 var(--space-4);
  background: var(--cream);
}

.welcome-h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.welcome-body {
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 580px;
  margin: 0 auto;
}

/* Decline link below upsell CTA */
.decline-link-wrap {
  margin-top: var(--space-3);
}

.decline-link {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--charcoal-70);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-bottom: 1px dotted var(--charcoal-30);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.decline-link:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

/* Welcome (final TY page) */
.welcome-final {
  padding: var(--space-7) 0 var(--space-5);
  background: var(--cream);
}

.welcome-final-h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.02;
  margin-bottom: var(--space-3);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.welcome-final-body {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--charcoal);
  max-width: 580px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-style: italic;
}

/* Next steps grid */
.next-steps {
  background: var(--cream-light);
  border-top: 1px solid var(--charcoal-08);
  border-bottom: 1px solid var(--charcoal-08);
}

.next-steps-header {
  margin-bottom: var(--space-5);
}

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
}

@media (max-width: 880px) {
  .next-steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 600px;
  }
}

.next-step {
  background: var(--cream);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--charcoal-08);
  position: relative;
}

.next-step-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  color: var(--sage-deep);
  font-weight: 500;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.next-step h3 {
  font-family: var(--font-serif);
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.875rem;
  line-height: 1.2;
}

.next-step p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--charcoal);
}

/* Support section (final TY page) */
.support {
  padding: var(--space-6) 0;
  background: var(--cream);
  text-align: center;
}

.support-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.support-body {
  font-size: 1.0625rem;
  color: var(--charcoal-70);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto var(--space-3);
}

.support-email {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--sage-deep);
  border-bottom: 1px solid var(--sage);
  padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.support-email:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

/* -----  FAQ  ------------------------------------------------------------- */

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

.faq-header { text-align: center; margin-bottom: var(--space-5); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--charcoal-08);
}

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

.faq-q {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

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

/* -----  FINAL WORD  ------------------------------------------------------ */

.final {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: var(--space-7) 0;
}

.final h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.final h2 em {
  color: var(--sage-light);
  font-style: italic;
}

.final p {
  font-size: 1.1875rem;
  color: rgba(244, 239, 230, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-4) auto;
  line-height: 1.6;
}

.final .btn-primary {
  background: var(--cream);
  color: var(--forest);
}

.final .btn-primary:hover {
  background: var(--sage-light);
  color: var(--forest);
}

/* -----  FOOTER  ---------------------------------------------------------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(244, 239, 230, 0.7);
  padding: var(--space-5) 0 var(--space-4) 0;
  font-size: 0.875rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: var(--space-3);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--cream);
}

.footer-brand .logo-wise { color: var(--lavender-light); }

.footer-tagline {
  font-style: italic;
  color: rgba(244, 239, 230, 0.6);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  color: rgba(244, 239, 230, 0.75);
  font-size: 0.875rem;
}

.footer-links a:hover { color: var(--cream); }

.footer-disclaimer {
  font-size: 0.8125rem;
  color: rgba(244, 239, 230, 0.5);
  line-height: 1.6;
  max-width: 720px;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(244, 239, 230, 0.1);
}

/* -----  PURCHASE & DELIVERY DETAILS (ClickBank compliance)  ------------- */

.purchase-details {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244, 239, 230, 0.1);
  max-width: 820px;
}

.purchase-details-title {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.6);
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.purchase-details-text,
.purchase-details-support {
  font-size: 0.8125rem;
  color: rgba(244, 239, 230, 0.65);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

.purchase-details-text strong {
  color: rgba(244, 239, 230, 0.85);
  font-weight: 500;
}

.purchase-details-support a {
  color: rgba(244, 239, 230, 0.85);
  text-decoration: underline;
}

.purchase-details-support a:hover {
  color: var(--cream);
}

.purchase-details-disclaimer {
  font-size: 0.6875rem;
  color: rgba(244, 239, 230, 0.4);
  line-height: 1.6;
  font-style: italic;
}

/* -----  REVEAL ON SCROLL  ------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

/* -----  UTILITIES  ------------------------------------------------------- */

.text-center { text-align: center; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }

/* =========================================================================
   PRODUCT THEMES
   Visual differentiation between the four funnel pages, within brand.
   ========================================================================= */

/* ===== PROTOCOL THEME (P1 — the book) =====================================
   Forest-dominant, foundational, "library" feel.
   ========================================================================= */

[data-theme="protocol"] .btn-primary {
  background: var(--forest);
}

[data-theme="protocol"] .btn-primary:hover {
  background: var(--forest-deep);
}

[data-theme="protocol"] .eyebrow {
  color: var(--forest);
}

[data-theme="protocol"] .hero {
  background: var(--cream);
}

[data-theme="protocol"] .hero-visual::before {
  background: rgba(58, 77, 46, 0.13);
}

[data-theme="protocol"] .types {
  background: var(--cream-light);
}

[data-theme="protocol"] .formats {
  background: var(--cream-deep);
}

[data-theme="protocol"] .pricing-amount {
  color: var(--forest);
}

[data-theme="protocol"] .pricing {
  background: var(--cream-deep);
}

/* The mid-page CTA banner becomes a heavy forest statement on P1 */
[data-theme="protocol"] .cta-banner {
  background: var(--forest);
}

[data-theme="protocol"] .cta-banner h3 {
  color: var(--cream);
}

[data-theme="protocol"] .cta-banner h3 em {
  color: var(--sage-light);
}

[data-theme="protocol"] .cta-banner p {
  color: rgba(244, 239, 230, 0.85);
}

[data-theme="protocol"] .cta-banner .btn-primary {
  background: var(--cream);
  color: var(--forest);
}

[data-theme="protocol"] .cta-banner .btn-primary:hover {
  background: var(--sage-light);
  color: var(--forest);
}

/* The final CTA at the bottom of P1 also needs cream-on-forest treatment */
[data-theme="protocol"] .final .btn-primary {
  background: var(--cream);
  color: var(--forest);
}

[data-theme="protocol"] .final .btn-primary:hover {
  background: var(--sage-light);
  color: var(--forest);
}

/* ===== COMPLETE THEME (P2 — the modern premium system) ===================
   Premium, body-connected, modern, contemporary.
   Dark hero. Instrument Serif typography. Sage primary, lavender intimate accent.
   ========================================================================= */

/* --- Typography shift: Instrument Serif for modern luxury feel --- */

[data-theme="complete"] .hero-headline,
[data-theme="complete"] .essay-h2,
[data-theme="complete"] .types-intro h2,
[data-theme="complete"] .intro h2,
[data-theme="complete"] .formats-header h2,
[data-theme="complete"] .contents-header h2,
[data-theme="complete"] .app-features-header h2,
[data-theme="complete"] .arc-header h2,
[data-theme="complete"] .pricing-header h2,
[data-theme="complete"] .faq-header h2,
[data-theme="complete"] .final h2,
[data-theme="complete"] .pricing-title,
[data-theme="complete"] .pricing-amount {
  font-family: 'Instrument Serif', 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

[data-theme="complete"] .hero-headline {
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

[data-theme="complete"] .formats-header h2,
[data-theme="complete"] .contents-header h2,
[data-theme="complete"] .app-features-header h2,
[data-theme="complete"] .arc-header h2,
[data-theme="complete"] .pricing-header h2,
[data-theme="complete"] .essay-h2,
[data-theme="complete"] .types-intro h2,
[data-theme="complete"] .intro h2 {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.0;
}

[data-theme="complete"] .final h2 {
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  line-height: 1.0;
}

[data-theme="complete"] em,
[data-theme="complete"] .italic {
  font-style: italic;
  font-weight: 400;
}

/* --- Color tokens for this theme --- */

[data-theme="complete"] .eyebrow {
  color: var(--sage-deep);
  letter-spacing: 0.26em;
}

/* --- HERO: DARK premium reveal --- */

[data-theme="complete"] .hero {
  background: var(--forest-deep);
  color: var(--cream);
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}

[data-theme="complete"] .hero .eyebrow {
  color: var(--sage-light);
}

[data-theme="complete"] .hero-headline {
  color: var(--cream);
}

[data-theme="complete"] .hero-headline em {
  color: var(--lavender-light);
  font-style: italic;
}

[data-theme="complete"] .hero-sub {
  color: var(--cream);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  opacity: 0.95;
  font-size: clamp(1.375rem, 2.25vw, 1.75rem);
}

[data-theme="complete"] .hero-body {
  color: rgba(244, 239, 230, 0.72);
}

[data-theme="complete"] .trust-line {
  color: rgba(244, 239, 230, 0.5);
}

[data-theme="complete"] .hero-visual::before {
  background: rgba(184, 166, 204, 0.25);
  filter: blur(80px);
}

/* --- Primary button: sage on dark, with refined weight --- */

[data-theme="complete"] .btn-primary {
  background: var(--sage);
  color: var(--forest-deep);
  font-weight: 600;
  letter-spacing: 0.005em;
}

[data-theme="complete"] .btn-primary:hover {
  background: var(--cream);
  color: var(--forest-deep);
  transform: translateY(-1px);
}

[data-theme="complete"] .hero .btn-primary {
  background: var(--cream);
  color: var(--forest-deep);
}

[data-theme="complete"] .hero .btn-primary:hover {
  background: var(--sage-light);
  color: var(--forest-deep);
}

/* --- Light sections in between --- */

[data-theme="complete"] .essay {
  background: var(--cream);
}

[data-theme="complete"] .essay-h2 em {
  color: var(--lavender);
  font-style: italic;
}

[data-theme="complete"] .types {
  background: var(--cream-light);
}

[data-theme="complete"] .types-intro h2 em,
[data-theme="complete"] .intro h2 em,
[data-theme="complete"] .formats-header h2 em,
[data-theme="complete"] .contents-header h2 em,
[data-theme="complete"] .arc-header h2 em,
[data-theme="complete"] .pricing-header h2 em {
  color: var(--lavender);
  font-style: italic;
}

[data-theme="complete"] .intro {
  background: var(--cream);
}

[data-theme="complete"] .formats {
  background: var(--cream);
}

[data-theme="complete"] .contents {
  background: var(--cream-light);
}

/* --- INSIDE THE APP: DARK premium showcase --- */

[data-theme="complete"] .app-features {
  background: var(--forest-deep);
  color: var(--cream);
  border-top: none;
}

[data-theme="complete"] .app-features .eyebrow {
  color: var(--sage-light);
}

[data-theme="complete"] .app-features h2 {
  color: var(--cream);
}

[data-theme="complete"] .app-features-header h2 em {
  color: var(--lavender-light);
  font-style: italic;
}

[data-theme="complete"] .app-features .feature h4 {
  color: var(--cream);
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 1.625rem;
  letter-spacing: -0.01em;
}

[data-theme="complete"] .app-features .feature p {
  color: rgba(244, 239, 230, 0.82);
}

[data-theme="complete"] .app-features .feature::before {
  background: var(--sage-light);
  width: 6px;
  height: 6px;
}

/* --- The 12-week arc — modern card treatment --- */

[data-theme="complete"] .arc {
  background: var(--cream);
}

/* --- PRICING: DARK premium card --- */

[data-theme="complete"] .pricing {
  background: var(--cream-light);
}

[data-theme="complete"] .pricing-card {
  background: var(--forest-deep);
  color: var(--cream);
  border: 1px solid rgba(244, 239, 230, 0.08);
  box-shadow: 0 40px 100px -25px rgba(0, 0, 0, 0.35);
}

[data-theme="complete"] .pricing-card .eyebrow {
  color: var(--sage-light);
}

[data-theme="complete"] .pricing-title {
  color: var(--cream);
  font-weight: 400;
}

[data-theme="complete"] .pricing-subtitle {
  color: rgba(244, 239, 230, 0.65);
  font-family: 'Instrument Serif', serif;
}

[data-theme="complete"] .pricing-amount {
  color: var(--sage-light);
  font-weight: 400;
}

[data-theme="complete"] .pricing-terms {
  color: rgba(244, 239, 230, 0.65);
}

[data-theme="complete"] .pricing-includes li {
  color: rgba(244, 239, 230, 0.9);
  border-bottom-color: rgba(244, 239, 230, 0.1);
}

[data-theme="complete"] .pricing-includes li::before {
  color: var(--sage-light);
}

[data-theme="complete"] .pricing-disclosure {
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(184, 166, 204, 0.25);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-top: var(--space-3);
}

[data-theme="complete"] .pricing-disclosure p {
  color: rgba(244, 239, 230, 0.82);
}

[data-theme="complete"] .pricing-disclosure strong {
  color: var(--lavender-light);
  font-weight: 600;
}

[data-theme="complete"] .pricing-cta-note {
  color: rgba(244, 239, 230, 0.55);
}

[data-theme="complete"] .pricing-card .btn-primary {
  background: var(--sage-light);
  color: var(--forest-deep);
}

[data-theme="complete"] .pricing-card .btn-primary:hover {
  background: var(--cream);
}

/* --- Decline link on thank-you upsell page, against dark card --- */

[data-theme="complete"] .pricing-card .decline-link {
  color: rgba(244, 239, 230, 0.55);
  border-bottom-color: rgba(244, 239, 230, 0.25);
}

[data-theme="complete"] .pricing-card .decline-link:hover {
  color: var(--lavender-light);
  border-bottom-color: var(--lavender-light);
}

/* --- FAQ --- */

[data-theme="complete"] .faq {
  background: var(--cream-light);
}

[data-theme="complete"] .faq-header h2 em,
[data-theme="complete"] .faq-q em {
  color: var(--lavender);
  font-style: italic;
}

/* --- FINAL section: stays dark but with sage emphasis --- */

[data-theme="complete"] .final {
  background: var(--forest-deep);
}

[data-theme="complete"] .final h2 em {
  color: var(--lavender-light);
  font-style: italic;
}

/* The final CTA at the bottom of P2/P2-CB needs cream-on-forest treatment */
[data-theme="complete"] .final .btn-primary {
  background: var(--cream);
  color: var(--forest);
}

[data-theme="complete"] .final .btn-primary:hover {
  background: var(--sage-light);
  color: var(--forest);
}

/* --- Welcome banner styling on thank-you-protocol page --- */

[data-theme="complete"] .welcome-banner {
  background: var(--cream);
  padding-bottom: var(--space-4);
}

[data-theme="complete"] .welcome-h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

[data-theme="complete"] .welcome-banner .eyebrow {
  color: var(--sage-deep);
}

/* ===== WELCOME THEME (final TY — the arrival) =============================
   Lavender accents, soft celebration, distinct from both sales pages.
   ========================================================================= */

[data-theme="welcome"] .eyebrow {
  color: #8A75A8; /* lavender, deeper for readable contrast on cream */
}

[data-theme="welcome"] .welcome-final-h1 em {
  color: var(--lavender);
}

[data-theme="welcome"] .next-step-number {
  color: var(--lavender);
}

[data-theme="welcome"] .next-steps {
  background: var(--cream-deep);
}

[data-theme="welcome"] .next-step h3 {
  color: var(--forest);
}

[data-theme="welcome"] .support {
  background: var(--cream);
}

[data-theme="welcome"] .support-email {
  color: #8A75A8;
  border-bottom-color: var(--lavender);
}

[data-theme="welcome"] .support-email:hover {
  color: var(--forest);
  border-bottom-color: var(--forest);
}

[data-theme="welcome"] .support-headline {
  color: var(--forest);
}

[data-theme="welcome"] .welcome-final {
  background: var(--cream);
}
