/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --color-bg:         #ECF0EB;   /* muted sage */
  --color-text:       #181C18;   /* deep near-black with green cast */
  --color-text-muted: #5C6660;   /* secondary text */
  --color-accent:     #7A8C6E;   /* sage green accent */
  --color-rule:       #C4CCC2;   /* sage dividers */
  --color-audio-bg:   #E2E8E1;   /* audio player background */

  /* Typography */
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;
  --space-2xl: 10rem;

  /* Layout */
  --max-width: 680px;
  --max-width-wide: 900px;
}
/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.75;
  min-height: 100vh;
}

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

a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-sm);
}

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

.text-muted {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.text-small {
  font-size: var(--text-sm);
}

.eyebrow {
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav__links a {
  font-size: var(--text-sm);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav__links a:hover {
  color: var(--color-text);
}

/* ============================================================
   RULE
   ============================================================ */
.rule {
  border: none;
  border-top: 1px solid var(--color-rule);
  margin: var(--space-xl) 0;
}

/* ============================================================
   BUTTON / CTA
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

/* ============================================================
   AUDIO PLAYER
   ============================================================ */
.audio-player {
  background: var(--color-audio-bg);
  border: 1px solid var(--color-rule);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.audio-player__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.audio-player__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.audio-player audio {
  width: 100%;
  margin-top: var(--space-xs);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-rule);
  padding: var(--space-lg) 0;
  margin-top: var(--space-2xl);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hero / Hook */
.hero {
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero__opening {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1.3;
  font-weight: 400;
  margin-bottom: var(--space-lg);
}

.hero__opening em {
  font-style: italic;
  color: var(--color-text-muted);
}

.hero__diagnosis {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* Concept */
.concept {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-rule);
}

.concept__eyebrow {
  margin-bottom: var(--space-md);
}

.concept__text {
  font-size: var(--text-lg);
  line-height: 1.7;
  font-style: italic;
}

/* Practice Preview */
.practice-preview {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-rule);
}

.practice-preview__components {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}

.component-card {
  padding: var(--space-sm);
  border: 1px solid var(--color-rule);
}

.component-card__name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.component-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.practice-preview__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-md);
}

.practice-preview__cta {
  margin-top: var(--space-md);
}

/* Go Deeper CTA */
.go-deeper {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-rule);
}

.go-deeper__price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.go-deeper__contents {
  margin: var(--space-md) 0 var(--space-lg);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--color-rule);
}

.go-deeper__contents li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  list-style: none;
  padding-left: var(--space-sm);
}

.go-deeper__contents li::before {
  content: "—  ";
  color: var(--color-rule);
}

/* ============================================================
   PRACTICE PAGE
   ============================================================ */
.practice-page {
  padding: var(--space-xl) 0;
}

.practice-page__intro {
  font-size: var(--text-lg);
  font-style: italic;
  margin-bottom: var(--space-xl);
  color: var(--color-text-muted);
}

.practice-component {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-rule);
}

.practice-component__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.practice-component__number {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.practice-component__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
}

.practice-component__duration {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-left: auto;
}

.practice-component__purpose {
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.practice-instructions {
  counter-reset: instruction;
}

.practice-instruction {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.practice-instruction::before {
  counter-increment: instruction;
  content: counter(instruction) ".";
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.micro-practices {
  background: var(--color-audio-bg);
  border: 1px solid var(--color-rule);
  padding: var(--space-md);
  margin-top: var(--space-xl);
}

.micro-practices__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.micro-practice {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-rule);
}

.micro-practice:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.micro-practice__name {
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

/* ============================================================
   GUIDE PAGE
   ============================================================ */
.guide-page {
  padding: var(--space-xl) 0;
}

.guide-contents {
  margin: var(--space-lg) 0;
}

.guide-section {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-md);
}

.guide-section__label {
  font-family: var(--font-display);
  font-size: var(--text-base);
  padding-top: 0.25rem;
}

.guide-section__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.guide-purchase {
  background: var(--color-audio-bg);
  border: 1px solid var(--color-rule);
  padding: var(--space-lg);
  margin-top: var(--space-xl);
  text-align: center;
}

.guide-purchase__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-xs);
}

.guide-purchase__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.guide-license {
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --text-3xl: 2.25rem;
    --text-2xl: 1.75rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
  }

  .nav__links {
    gap: var(--space-sm);
  }

  .practice-preview__components {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-section {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* ============================================================
   FONT SMOOTHING (fix blurry wordmark)
   ============================================================ */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   HERO (full-screen painting)
   ============================================================ */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: none;
}

.hero-full__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero.webp');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.72);
  z-index: 0;
}

.hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 20, 0.15) 0%,
    rgba(10, 10, 20, 0.45) 60%,
    rgba(10, 10, 20, 0.78) 100%
  );
  z-index: 1;
}

.hero-full__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--space-md);
  max-width: 820px;
  margin: 0 auto;
}

.hero-full__wordmark {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  display: block;
}

.hero-full__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.hero-full__title em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-full__sub {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-full__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-full__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.25);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.15); }
}

/* ============================================================
   NAV — transparent over hero
   ============================================================ */
.nav--transparent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: none;
  background: transparent;
}

.nav--transparent .nav__wordmark {
  color: rgba(255,255,255,0.85);
}

.nav--transparent .nav__links a {
  color: rgba(255,255,255,0.55);
}

.nav--transparent .nav__links a:hover {
  color: rgba(255,255,255,0.95);
}

.nav--no-wordmark .nav__inner {
  justify-content: flex-end;
}

/* ============================================================
   SCROLL FADE-IN ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   LONG-FORM PAGE SECTIONS
   ============================================================ */
.section {
  padding: var(--space-2xl) 0;
}

.section--dark {
  background: #0d1428;
  color: #dde4e8;
}

.section--dark .eyebrow {
  color: rgba(221,228,232,0.4);
}

.section--dark p {
  color: rgba(221,228,232,0.8);
}

.section--tinted {
  background: #E2E8E0;
}

/* ============================================================
   PULL QUOTES
   ============================================================ */
.pullquote {
  border-left: 2px solid var(--color-accent);
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  margin: var(--space-lg) 0;
}

.pullquote__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.pullquote__attr {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.pullquote--dark .pullquote__text {
  color: rgba(221,228,232,0.9);
}

.pullquote--dark .pullquote__attr {
  color: rgba(221,228,232,0.4);
}

/* ============================================================
   OPHELIA IMAGE DIVIDER
   ============================================================ */
.image-divider {
  height: 480px;
  background-image: url('../assets/ophelia.jpg');
  background-size: cover;
  background-position: center 20%;
  background-attachment: fixed;
  position: relative;
}

.image-divider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,20,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-divider__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
  color: rgba(255,255,255,0.88);
  text-align: center;
  max-width: 600px;
  padding: 0 var(--space-md);
  line-height: 1.4;
}

/* ============================================================
   COMPONENT CARDS — refined
   ============================================================ */
.components-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-rule);
  border: 1px solid var(--color-rule);
  margin: var(--space-lg) 0;
}

.component-block {
  background: var(--color-bg);
  padding: var(--space-md) var(--space-sm);
  text-align: center;
}

.component-block__numeral {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-rule);
  display: block;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.component-block__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.component-block__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================================================
   GUIDE CTA — final section
   ============================================================ */
.guide-cta {
  padding: var(--space-2xl) 0;
  text-align: center;
  background: #0d1428;
  color: #dde4e8;
}

.guide-cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.guide-cta__desc {
  font-size: var(--text-lg);
  color: rgba(221,228,232,0.65);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.guide-cta__contents {
  list-style: none;
  max-width: 440px;
  margin: 0 auto var(--space-lg);
  text-align: left;
}

.guide-cta__contents li {
  font-size: var(--text-sm);
  color: rgba(221,228,232,0.55);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-left: var(--space-sm);
  position: relative;
}

.guide-cta__contents li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.btn--light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.btn--light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

.guide-cta__price {
  font-size: var(--text-sm);
  color: rgba(221,228,232,0.35);
  margin-top: var(--space-sm);
}

/* ============================================================
   FOOTER — dark variant
   ============================================================ */
.footer--dark {
  background: #091020;
  border-top: 1px solid rgba(180,210,255,0.07);
  margin-top: 0;
}

.footer--dark p,
.footer--dark a {
  color: rgba(221,228,232,0.3);
}

.footer--dark a:hover {
  color: rgba(221,228,232,0.6);
}

/* ============================================================
   RESPONSIVE — additions
   ============================================================ */
@media (max-width: 640px) {
  .components-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-divider {
    height: 300px;
    background-attachment: scroll;
  }

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