/* Free meditation course: standalone site at meditation.thetreehouseshowofficial.com.
   Editorial layout in the main site's night greens, with a soft firefly glow. */

:root {
  --night: #050e08;
  --forest: #0d2214;
  --green: #214d29;
  --olive-dark: #10291a; /* deep green for text on cream */
  --cream: #f6f3ea;
  --paper: #f6f3ea;
  --ink: #10291a;
  --ink-soft: #4c5b4f;
  --sage-light: #d9ecc6;
  --glow: #f6e7a8;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--cream); font: 400 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
em { font-family: var(--display); font-style: italic; font-weight: 400; }
:focus-visible { outline: 1.5px solid currentColor; outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lm-eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; opacity: .8; }

/* film grain: the "noise" we're quieting */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background-image: var(--noise); opacity: .1; mix-blend-mode: overlay; }

/* Hero */
.lm-hero {
  overflow: hidden;
  background:
    radial-gradient(28% 34% at 50% 48%, rgba(246, 231, 168, .14), transparent 70%),
    radial-gradient(55% 60% at 50% 45%, rgba(33, 77, 41, .8), transparent 72%),
    radial-gradient(rgba(244, 241, 223, .45) 1px, transparent 1.5px) 0 0 / 52px 52px,
    var(--night); padding: 0 clamp(16px, 4vw, 56px) 80px; }
.lm-header { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.lm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lm-brand img { width: 28px; height: 28px; }
.lm-nav { display: flex; gap: clamp(20px, 4vw, 52px); }
.lm-nav a { text-decoration: none; opacity: .8; }
.lm-nav a:hover { opacity: 1; }
.lm-tag { padding: 9px 18px; background: var(--glow); color: var(--ink); box-shadow: 0 0 30px rgba(246, 231, 168, .45); font-family: var(--display); font-size: 18px; letter-spacing: .06em; }

/* Centered, simple hero */
.lm-center { position: relative; z-index: 4; max-width: 760px; margin: 0 auto; padding: clamp(48px, 9vh, 96px) 0 0; text-align: center; }
.lm-badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  background: rgba(246, 231, 168, .1); border: 1px solid rgba(246, 231, 168, .4);
  color: var(--glow); font-size: 13px; font-weight: 700; box-shadow: 0 0 24px rgba(246, 231, 168, .12);
}
.lm-head {
  margin-top: 26px; font-family: var(--sans); font-weight: 900; font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1; letter-spacing: -.04em; color: #fff; text-shadow: 0 0 40px rgba(246, 231, 168, .25);
}
.lm-sub em { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(36px, 5.2vw, 66px); line-height: 1.15; color: var(--sage-light); }
.lm-lede { max-width: 600px; margin: 18px auto 0; font-size: 17px; line-height: 1.65; color: rgba(246, 243, 234, .82); }

.lm-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 660px; margin: 34px auto 0; }
.lm-form input {
  flex: 1 1 180px; min-width: 0; padding: 16px 22px; border-radius: 999px;
  border: 1.5px solid rgba(246, 243, 234, .2); background: #0b1a10; color: #fff; font: 500 16px var(--sans);
}
.lm-form input#lm-email { flex-basis: 230px; }
.lm-form input::placeholder { color: rgba(246, 243, 234, .55); }
.lm-form input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 22px rgba(246, 231, 168, .2); }
.lm-cta {
  flex: 0 0 auto; padding: 16px 30px; border: 0; border-radius: 999px; background: var(--cream); color: var(--ink);
  font: 700 16px var(--sans); box-shadow: 0 0 30px rgba(246, 231, 168, .3); transition: transform .2s, box-shadow .2s, background .2s;
}
.lm-cta:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 0 44px rgba(246, 231, 168, .55); }
.lm-form .form-status, .lm-form .lm-fine { flex-basis: 100%; }
.lm-form .lm-fine { font-size: 13px; }

/* breathing logo: 4s in, 4s out */
.lm-orb { width: 150px; aspect-ratio: 1; margin: 44px auto 0; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(246, 231, 168, .3); box-shadow: 0 0 60px rgba(246, 231, 168, .15), inset 0 0 40px rgba(246, 231, 168, .08); animation: lm-breathe 8s ease-in-out infinite; }
.lm-orb img { width: 54%; filter: drop-shadow(0 0 20px rgba(246, 231, 168, .45)); }
@keyframes lm-breathe { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.05); } }

.lm-pill {
  justify-self: start; display: inline-flex; margin-top: 20px; padding: 9px 26px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: var(--cream);
  font: 500 10px var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; transition: background .25s, color .25s;
}
.lm-form .lm-pill { border-color: var(--glow); color: var(--glow); box-shadow: 0 0 22px rgba(246, 231, 168, .25); }
.lm-pill:hover, .lm-form .lm-pill:hover { background: var(--glow); color: var(--ink); box-shadow: 0 0 36px rgba(246, 231, 168, .55); }
.lm-pill.olive { color: var(--olive-dark); }
.lm-pill.olive:hover { background: var(--green); color: var(--cream); box-shadow: 0 0 30px rgba(33, 77, 41, .45); }
.form-status { min-height: 1.2em; margin-top: 8px; font-size: 12px; }
.form-status[data-ok="no"] { color: #ffd9c7; }
.lm-fine { font-size: 11px; opacity: .65; }
.lm-form[hidden], .lm-done[hidden] { display: none; }

/* After signup: the course opens under the collage */
.lm-done {
  position: relative; z-index: 4; display: grid; grid-template-columns: 1fr 1.6fr; gap: 36px; align-items: start;
  max-width: 1180px; margin: 56px auto 0; padding: 28px; outline: none;
  background: rgba(13, 34, 20, .75); border: 1px solid rgba(246, 231, 168, .35); box-shadow: 0 0 60px rgba(246, 231, 168, .1);
}
.lm-done h2 { margin-top: 8px; font-family: var(--display); font-weight: 400; font-size: 44px; line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.lm-done-copy > p:not(.lm-eyebrow):not(.lm-fine) { margin-top: 10px; font-size: 13px; font-weight: 300; }
.lm-player { aspect-ratio: 16 / 9; background: #000; }
.lm-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.lm-sessions { list-style: none; padding: 0; margin: 20px 0 12px; display: grid; gap: 6px; }
.lm-sessions button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 6px; text-align: left; border: 1px solid transparent; background: rgba(0, 0, 0, .12); color: var(--cream); }
.lm-sessions button:hover { border-color: rgba(237, 231, 215, .4); }
.lm-sessions button[aria-current="true"] { border-color: var(--cream); }
.lm-mini { position: relative; flex-shrink: 0; width: 72px; aspect-ratio: 16 / 9; overflow: hidden; display: grid; place-items: center; }
.lm-mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lm-mini svg { position: relative; width: 16px; height: 16px; fill: none; stroke: var(--glow); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(246, 231, 168, .8)); }
.is-locked .lm-mini img { filter: blur(3px) brightness(.5) saturate(.6); transform: scale(1.2); }

/* locked preview of the player */
.lm-poster { position: relative; width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 0; border: 0; overflow: hidden; background: #000; color: #fff; text-align: center; }
.lm-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) brightness(.45) saturate(.7); transform: scale(1.2); }
.lm-poster > :not(img) { position: relative; }
.lm-poster-lock { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(246, 231, 168, .6); box-shadow: 0 0 40px rgba(246, 231, 168, .35), inset 0 0 20px rgba(246, 231, 168, .15); animation: lm-breathe 8s ease-in-out infinite; }
.lm-poster-lock svg { width: 26px; height: 26px; fill: none; stroke: var(--glow); stroke-width: 1.8; }
.lm-poster strong { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 0 24px rgba(246, 231, 168, .4); }
.lm-poster-cta { padding: 11px 24px; border-radius: 999px; background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 0 30px rgba(246, 231, 168, .35); transition: box-shadow .2s, background .2s; }
.lm-poster:hover .lm-poster-cta { background: #fff; box-shadow: 0 0 44px rgba(246, 231, 168, .6); }
.lm-sessions strong { display: block; font-size: 12.5px; font-weight: 500; }
.lm-sessions small { font-size: 11px; opacity: .7; }

/* The course: three overlapping circles in a misty sky */
.lm-course {
  padding: 70px clamp(16px, 4vw, 56px) 90px; text-align: center; overflow: hidden;
  background:
    radial-gradient(30% 50% at 50% 55%, rgba(246, 231, 168, .12), transparent 70%),
    radial-gradient(40% 70% at 20% 60%, rgba(33, 77, 41, .75), transparent 70%),
    radial-gradient(40% 70% at 80% 40%, rgba(33, 77, 41, .75), transparent 70%),
    var(--forest);
}
.lm-circles { display: flex; justify-content: center; margin-top: 40px; }
.lm-circle {
  flex: 0 0 auto; width: clamp(220px, 24vw, 320px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(246, 231, 168, .5); box-shadow: 0 0 34px rgba(246, 231, 168, .12), inset 0 0 34px rgba(246, 231, 168, .06); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 clamp(30px, 3.4vw, 46px); text-align: center; text-decoration: none; color: var(--cream); transition: background .4s, border-color .4s;
}
.lm-circle + .lm-circle { margin-left: calc(clamp(220px, 24vw, 320px) * -.12); }
.lm-circle:hover { background: rgba(246, 231, 168, .06); border-color: var(--glow); box-shadow: 0 0 60px rgba(246, 231, 168, .3), inset 0 0 50px rgba(246, 231, 168, .1); }
.lm-circle h3 { text-shadow: 0 0 24px rgba(246, 231, 168, .35); }
.lm-circle-part { font-size: 9px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; opacity: .75; }
.lm-circle h3 { margin-top: 10px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.3vw, 32px); line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
.lm-circle p { margin-top: 10px; font-size: 11px; font-weight: 300; line-height: 1.55; opacity: .85; }
.lm-lock { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(237, 231, 215, .5); font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.lm-lock svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.lm-circle.unlocked .lm-lock { background: var(--glow); color: var(--ink); border-color: var(--glow); box-shadow: 0 0 20px rgba(246, 231, 168, .5); }
.lm-circle.unlocked .lm-lock svg { fill: currentColor; stroke: none; }

/* Host */
.lm-host { background: var(--paper); color: var(--ink); padding: 90px clamp(16px, 4vw, 56px); }
.lm-host-grid { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 980px; margin: 0 auto; }
/* the logo glows out of a soft green haze that fades into the cream */
.lm-host-img { aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(closest-side, rgba(246, 231, 168, .35), rgba(33, 77, 41, .55) 38%, rgba(33, 77, 41, .18) 68%, rgba(33, 77, 41, 0) 100%); }
.lm-host-img img { filter: drop-shadow(0 0 24px rgba(246, 231, 168, .5)); }
.lm-host-img img { width: 46%; height: auto; opacity: .9; }
.lm-host h2 { margin-top: 12px; font-family: var(--display); font-weight: 400; font-size: clamp(48px, 6vw, 80px); line-height: .9; text-transform: uppercase; letter-spacing: -.03em; color: var(--olive-dark); }
.lm-quote { margin-top: 14px; font-size: 24px; color: var(--olive-dark); }
.lm-proof { margin-top: 8px; font-size: 13px; font-weight: 300; color: var(--ink-soft); }

/* Footer */
.lm-footer { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding: 36px clamp(16px, 4vw, 56px); background: var(--night); color: rgba(246, 243, 234, .6); font-size: 12px; }
.lm-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lm-footer a { text-decoration: none; color: rgba(237, 231, 215, .85); }
.lm-footer a:hover { color: #fff; }
.lm-footer .credit a { color: var(--cream); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .lm-nav { display: none; }
  .lm-cta { flex-basis: 100%; }
  .lm-done { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .lm-done-copy { order: 2; }
  .lm-circles { flex-direction: column; align-items: center; }
  .lm-circle { width: min(300px, 84vw); }
  .lm-circle + .lm-circle { margin: -36px 0 0; }
  .lm-host-grid { grid-template-columns: 200px 1fr; gap: 24px; }
}
/* only small phones stack the host logo above the text */
@media (max-width: 560px) {
  .lm-host-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lm-host-img { width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* fireflies drifting through the dark sections */
.lm-fly { position: absolute; z-index: 2; width: 5px; height: 5px; border-radius: 50%; pointer-events: none;
  background: var(--glow); box-shadow: 0 0 10px 3px rgba(246, 231, 168, .55); animation: lm-fly 9s ease-in-out infinite; }
@keyframes lm-fly { 0%, 100% { transform: translate(0, 0); opacity: .15; } 50% { transform: translate(18px, -26px); opacity: 1; } }
