:root {
  --bg: #05070b;
  --bg-elevated: #0d1016;
  --bg-panel: #0f131a;
  --text-main: #e7ecef;
  --text-muted: #9ca3b3;

  /* Accent: muted stone green + subtle gold */
  --accent: #6c8b74;          /* stone green */
  --accent-soft: #18221c;
  --accent-gold: #d3b26f;     /* subtle gold for highlights */

  --border-subtle: #1e2531;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
               "Segoe UI", Roboto, sans-serif;
  --font-serif: "Georgia", "Times New Roman", serif;
}

/* GLOBAL RESET */

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at top, #111827 0%, #020308 52%, #000000 100%);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.72;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 22px 80px;
}

.main--narrow {
  max-width: 720px;
}

/* HEADER */

.header {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logomark {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  /* Outer ring: gold snake body */
  background:
    radial-gradient(circle at 30% 30%, transparent 55%, rgba(0, 0, 0, 0.4) 56%, transparent 57%),
    radial-gradient(circle at 70% 70%, transparent 58%, rgba(0, 0, 0, 0.4) 59%, transparent 60%),
    radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.7) 61%),
    conic-gradient(
      from 140deg,
      #f4e2b2 0deg,
      #d3b26f 140deg,
      #b8924a 260deg,
      #f4e2b2 360deg
    );
  box-shadow: 0 0 0 1px rgba(211, 178, 111, 0.65),
              0 0 22px rgba(211, 178, 111, 0.35);
  position: relative;
}

/* Larger logo for landing hero */
.logomark--large {
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
}


.header__text {
  display: flex;
  flex-direction: column;
}

.header__text--center {
  margin: 0 auto;
  align-items: center;
}

.site-title {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

.site-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

/* BACK LINK */

.header__back {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.header__back:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* TYPOGRAPHY */

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 40px);
  line-height: 1.25;
  margin: 0 0 26px;
}

.hero__title--small {
  font-size: clamp(26px, 3vw, 32px);
}

.hero__body {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.74;
  max-width: 640px;
  margin: 0 0 10px;
}

.hero__body--narrow {
  max-width: 680px;
}

/* SECTIONS & LAYOUT */

.section {
  margin-top: 64px;
}

.section--hero {
  margin-top: 56px;
}

.section__heading h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.section__sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
}

/* PANELS */

.section--panel {
  background: radial-gradient(circle at top left, rgba(108,139,116,0.09), transparent 55%),
              var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  margin-top: 48px;
}

.section--integration {
  border-style: dashed;
}

/* HERO CONTENT */

.hero__content {
  max-width: 720px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 12px;
}

.hero__note {
  font-size: 14px;
  color: var(--text-muted);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
  color: #05070b;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.btn--primary:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(-1px);
}

/* GRID + CARDS */

.section--grid {
  margin-top: 64px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid--steps {
  margin-top: 24px;
}

.grid--pillars {
  margin-top: 28px;
}

@media (min-width: 720px) {
  .grid--steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid--pillars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: radial-gradient(circle at top, rgba(15,23,42,0.8), rgba(15,23,42,0.6));
  border-radius: var(--radius-md);
  padding: 22px 18px;
  border: 1px solid rgba(148,163,184,0.4);
}

.card--step h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.card--step p {
  font-size: 15px;
  color: var(--text-muted);
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-bottom: 10px;
}

/* QUOTE BLOCK */

.section--divider {
  margin-top: 64px;
}

.quote-block {
  border-left: 1px solid var(--accent-gold);
  padding-left: 18px;
}

.quote-block__text {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.6;
}

.quote-block__source {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* PILL ELEMENTS */

.pill {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148,163,184,0.45);
  padding: 22px 18px;
  font-size: 15px;
}

.pill h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

/* CTA PANEL */

.section--cta {
  margin-top: 92px;
}

.cta-panel {
  border-radius: var(--radius-lg);
  padding: 38px 26px;
  border: 1px solid var(--accent-gold);
  background: radial-gradient(circle at top, rgba(211,178,111,0.12), transparent 60%);
}

.cta-panel h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* CHECK-IN UI */

.checkin {
  font-size: 15px;
}

.checkin__group {
  margin-bottom: 20px;
}

.checkin__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.checkin__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.checkin__options label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.checkin__options input[type="radio"] {
  accent-color: var(--accent);
}

.checkin__options--scale label {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148,163,184,0.3);
}

.hint {
  font-size: 13px;
  color: var(--text-muted);
}

/* LESSON / PRACTICE */

.lesson p {
  font-size: 17px;
  line-height: 1.74;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.practice-steps {
  font-size: 17px;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.74;
}

/* AUDIO BLOCK */

.audio-block {
  margin-bottom: 16px;
}

.audio-block__player {
  width: 100%;
  margin-top: 8px;
}

/* FOOTER */

.footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 22px;
  font-size: 15px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(15,23,42,0.8);
}

.footer--simple {
  justify-content: center;
}

.footer__links a,
.footer--simple a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer__links a:hover,
.footer--simple a:hover {
  color: var(--accent-gold);
}

/* RESPONSIVE */

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .header {
    padding-top: 16px;
  }

  .section--hero {
    margin-top: 40px;
  }

  .main {
    padding: 36px 18px 64px;
  }

  .section--panel {
    padding: 26px 20px;
  }

  .hero__title {
    font-size: 30px;
  }

  .grid--steps,
  .grid--pillars {
    grid-template-columns: 1fr;
  }
}
/* ===== MICRO REFINEMENTS: READABILITY + FLOW ===== */

/* Slightly brighter "muted" text for better contrast on dark background */
:root {
  --text-muted: #b6c3d4;
}

/* Narrow overall text column a bit for easier reading on desktop */
.main {
  max-width: 880px;
}

/* Constrain long paragraphs inside panels so they don’t stretch too wide */
.section--panel .lesson,
.section--panel .practice-steps,
.section--panel .section__sub,
.section--panel .checkin,
.section--panel p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Ensure hero text and note also stay in a comfortable width */
.hero__body,
.hero__note {
  max-width: 680px;
}

/* Two-tier typography:
   - Narrative text: main size (already 17px)
   - UI / labels / meta text: slightly smaller for hierarchy
*/
.eyebrow,
.checkin__label,
.hint,
.footer,
.header__back,
.site-subtitle {
  font-size: 13px;
}

/* Smooth scroll flow between sections (slightly less gap for grid + philosophy) */
.section--grid {
  margin-top: 56px;
}

.section--divider {
  margin-top: 56px;
}

/* On small screens, keep it comfy but not huge */
@media (max-width: 640px) {
  .hero__body,
  .section__sub,
  .lesson p,
  .practice-steps {
    font-size: 16px;
    line-height: 1.7;
  }

  .section {
    margin-top: 52px;
  }
}
/* ===== FOREST STILLNESS GATE (TOP HERO SECTION) ===== */

.section--gate {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  min-height: calc(100vh - 80px);
  border: none;

  /* slightly darker, deeper forest */
  background:
    radial-gradient(circle at 50% 38%,
      rgba(78, 118, 94, 0.28) 0%,
      rgba(34, 82, 57, 0.26) 22%,
      rgba(15, 48, 32, 0.20) 42%,
      rgba(7, 30, 22, 0.12) 64%,
      rgba(3, 16, 12, 0.10) 82%,
      rgba(2, 10, 8, 0.10) 100%),
    linear-gradient(
      180deg,
      #102c1f 0%,
      #0c2419 26%,
      #081d14 54%,
      #051510 76%,
      #030b08 100%
    );

  overflow: hidden;
}

/* Fog / depth */
.gate-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 40%),
    radial-gradient(circle at bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.60) 80%);
  pointer-events: none;
}

/* Subtle analog grain */
.section--gate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAEklEQVR4nGNg+M/AwMDAwAAAAgAFAzFkhgAAAABJRU5ErkJggg==");
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Center content in the "lit clearing" */
.gate-main {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  transform: translateY(-6vh);
}

.gate-content {
  text-align: center;
  max-width: 480px;
}

/* Ouroboros logo inside forest */
.section--gate .logomark--large {
  width: 115px;
  height: 115px;
  margin-bottom: 22px;
  box-shadow:
    0 0 40px rgba(211, 178, 111, 0.42),
    0 0 16px rgba(211, 178, 111, 0.22),
    inset 0 0 4px rgba(211, 178, 111, 0.32);
}

/* Gate title */
.gate-title {
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 12px 0 28px;
  color: var(--text-main);
}

/* Gate button */
.btn--gate {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(211, 178, 111, 0.82);
  color: var(--text-main);
  padding: 12px 48px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  transition: all 0.18s ease-out;
}

.btn--gate:hover {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

@media (max-width: 640px) {
  .section--gate {
    min-height: calc(100vh - 70px);
  }
  .gate-title {
    font-size: 22px;
  }
  .logomark--large {
    width: 95px !important;
    height: 95px !important;
  }
  .btn--gate {
    padding-inline: 32px;
    font-size: 14px;
  }
}
/* Hide top header on the landing page so the gate is clean */
body.page--landing .header {
  display: none;
}
/* === LANDING LAYOUT FIXES === */

/* Remove top padding so forest touches the top of the viewport */
body.page--landing .main {
  padding-top: 0;
}

/* Make sure the gate section always fills the full viewport height */
.section--gate {
  min-height: 100vh;
}
/* === OUROBOROS LOGO RESET === */

.logomark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, transparent 55%, rgba(0, 0, 0, 0.5) 56%, transparent 57%),
    radial-gradient(circle at 70% 70%, transparent 58%, rgba(0, 0, 0, 0.5) 59%, transparent 60%),
    radial-gradient(circle, transparent 60%, rgba(0, 0, 0, 0.7) 61%),
    conic-gradient(
      from 140deg,
      #f4e2b2 0deg,
      #d3b26f 140deg,
      #b8924a 260deg,
      #f4e2b2 360deg
    );
  box-shadow:
    0 0 0 1px rgba(211, 178, 111, 0.7),
    0 0 18px rgba(211, 178, 111, 0.35);
}

/* Larger + glow version for the forest gate */
.section--gate .logomark--large {
  width: 115px;
  height: 115px;
  margin-bottom: 22px;
  box-shadow:
    0 0 40px rgba(211, 178, 111, 0.42),
    0 0 16px rgba(211, 178, 111, 0.22),
    inset 0 0 4px rgba(211, 178, 111, 0.32);
}
/* ===== WEEK 1 MOVEMENT INTEGRATION VISUALS ===== */

/* Make the movement block feel like a calm "chapter" */
.section--movement {
  margin-top: 56px;
  background:
    radial-gradient(circle at top, rgba(108, 139, 116, 0.08) 0%, transparent 55%),
    rgba(10, 17, 22, 0.96);
  border-color: rgba(148, 163, 184, 0.55);
}

/* Slightly larger, slower-reading text in movement lesson */
.section--movement .lesson p {
  font-size: 17px;
  line-height: 1.78;
}

/* Movement subheadings */
.section--movement .lesson h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Make the final line land a bit more */
.section--movement .lesson p:last-of-type {
  margin-top: 12px;
  font-style: italic;
}
/* ===== LESSON TOGGLE (SHORT / FULL) ===== */

.lesson-toggle {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 3px;
  margin: 10px 0 20px;
  background: rgba(15, 23, 42, 0.9);
}

.lesson-toggle__btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease-out;
  font-family: var(--font-sans);
}

.lesson-toggle__btn--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
  color: #05070b;
}

/* Container for the two lesson blocks */
.lesson-toggle-wrapper {
  position: relative;
}

/* Base state for each block */
.lesson-block {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, opacity 0.22s ease-out;
}

/* Active (visible) block */
.lesson-block--active {
  max-height: 2000px; /* enough for full text */
  opacity: 1;
}

/* Slightly larger, smoother text inside lesson blocks */
.lesson-block p {
  font-size: 17px;
  line-height: 1.8;
}