/* Meditation: the page is a sky that turns from dawn to night as you scroll. */
.w-meditation {
  --accent: #6C5CE7; --accent-text: #5343D6; --accent-ink: #fff;
  --sky-top: #BDF3E4; --sky-bot: #FFF1D6; --stars: 0; --sun-y: 0; --sun-o: 1; --moon-o: 0;
  background: #F6F1FF;
}
.sky { position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--sky-top), var(--sky-bot)); }
.sky .sun { position: absolute; right: 12vw; top: calc(18vh + var(--sun-y) * 1vh); width: clamp(90px, 13vw, 190px); aspect-ratio: 1; border-radius: 50%; opacity: var(--sun-o);
  background: radial-gradient(circle at 42% 40%, #FFFBE0, #FFEE90 55%, #FFD96B); box-shadow: 0 0 90px 30px rgba(255, 230, 140, 0.55); }
.sky .moon { position: absolute; left: 12vw; top: 14vh; width: clamp(60px, 7vw, 110px); aspect-ratio: 1; border-radius: 50%; opacity: var(--moon-o);
  background: radial-gradient(circle at 60% 40%, #FFF9E6, #FFE7A3 70%); box-shadow: 0 0 70px 18px rgba(255, 217, 107, 0.35); transform: translateY(calc((1 - var(--moon-o)) * 60px)); }
.sky .moon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 34%, transparent 58%, rgba(15, 10, 42, 0.16) 60%); }
#motes { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.w-meditation main { position: relative; }
.w-meditation .site-footer { position: relative; z-index: 1; }

/* without JS the sky never darkens, so night sections bring their own ground */
html:not(.js) .tone-night { background: #1B1045; }

/* night sections: light text */
.tone-night { color: var(--on-dark); }
.tone-night .lede, .tone-night .copy, .tone-night .muted { color: #D9D0F5; }
.tone-night h2 em, .tone-night h1 em { color: #FFD96B; }
.tone-night .eyebrow { color: #FFD96B; }
.tone-night .guide-card .kicker { color: #FFD96B; }
/* the fixed moon passes behind text as the page scrolls: a dark halo keeps it readable over the glow */
.tone-night :is(h1, h2, .eyebrow, .lede) { text-shadow: 0 0 14px rgba(13, 8, 38, 0.85), 0 0 3px rgba(13, 8, 38, 0.7); }
.tone-night .card { background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.tone-night .card p { color: #CFC6EA; }
.tone-night .faq, .tone-night .faq details { border-color: rgba(255, 255, 255, 0.14); }
.tone-night .faq .a { color: #D9D0F5; }
.tone-night .get-note { color: #D9D0F5; }
.tone-night .get-note span::before { background: #FFD96B; }
.tone-night .qr { background: rgba(255, 255, 255, 0.08); color: #D9D0F5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.w-meditation .card { background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ------------------------------------------------------------ hero */
.m-hero { padding: calc(var(--header-h) + clamp(28px, 6vw, 72px)) 0 clamp(56px, 8vw, 100px); overflow-x: clip; }
@media (min-width: 821px) { .m-hero .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.m-hero h1 { margin-top: 18px; max-width: 14ch; }
.m-hero h1 em { color: #6C5CE7; }
.m-hero .lede { margin-top: 20px; color: #3F3A55; }
.m-hero .eyebrow { color: #5A4BD1; }
.halo { position: relative; display: grid; place-items: center; padding: 30px 0; }
.halo::before { content: ""; position: absolute; width: 150%; max-width: 620px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 247, 224, 0.6) 45%, rgba(255, 247, 224, 0) 72%);
  transform: scale(var(--halo, 0.9)); transition: transform 4s cubic-bezier(0.45, 0, 0.55, 1); }
.js .halo.auto::before { animation: halo 8s ease-in-out infinite; }
@keyframes halo { 0%, 100% { transform: scale(0.86); } 50% { transform: scale(1.06); } }
.halo .phone { z-index: 1; --w: min(290px, 66vw); }
.breathe-btn { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: var(--fs-sm);
  background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(90, 75, 209, 0.18); color: #2E2752; transition: background-color 0.3s; }
.breathe-btn:hover { background: #fff; }
.breathe-btn .dot { width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #B9C4FF 50%, #7B6CF0); transform: scale(var(--dot, 0.7)); transition: transform 4s cubic-bezier(0.45, 0, 0.55, 1); }
.breathe-btn[aria-pressed="true"] .label::after { content: ""; }
.breath-cue { position: absolute; z-index: 2; bottom: 10%; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; background: rgba(255, 255, 255, 0.85); color: #2E2752; box-shadow: 0 10px 30px -10px rgba(60, 40, 140, 0.35); opacity: 0; transition: opacity 0.6s; white-space: nowrap; }
.breath-cue.show { opacity: 1; }

/* ------------------------------------------------------------ check-in demo */
.checkin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 820px) { .checkin { grid-template-columns: 1fr; } }
.panel { padding: clamp(22px, 2.6vw, 32px); border-radius: 26px; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(90, 75, 209, 0.12), 0 30px 60px -40px rgba(60, 40, 140, 0.4); }
.panel .step-n { font-family: var(--serif); font-style: italic; color: #6C5CE7; font-size: 1.1rem; }
.panel h3 { margin: 4px 0 14px; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; }
.mood { border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); background: #fff; box-shadow: inset 0 0 0 1px rgba(90, 75, 209, 0.2); color: #2E2752; transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s; }
.mood:hover { transform: translateY(-2px); }
.mood[aria-pressed="true"] { background: #6C5CE7; color: #fff; box-shadow: 0 10px 22px -10px rgba(108, 92, 231, 0.8); }
.written { position: relative; min-height: 190px; }
.written .t { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.2; }
.written .meta { margin-top: 10px; font-size: var(--fs-xs); font-weight: 700; color: #5A4BD1; letter-spacing: 0.06em; text-transform: uppercase; }
.written .line { margin-top: 16px; color: #3F3A55; font-size: var(--fs-sm); min-height: 3.2em; }
.written .badge { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; padding: 6px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: rgba(108, 92, 231, 0.1); color: #4B3FB8; }
.written .swap { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.written.out .swap { opacity: 0; transform: translateY(8px); }
.example-note { margin-top: 12px; font-size: var(--fs-xs); color: #6B6485; }

/* ------------------------------------------------------------ feature rows */
.m-row { padding-block: clamp(48px, 7vw, 96px); }
.m-row h2 { margin-top: 12px; max-width: 16ch; }
.m-row .copy { margin-top: 16px; color: #3F3A55; max-width: 32rem; }
.m-row.tone-night .copy { color: #F4EFFF; }
/* the dusk row sits on a purple-to-peach sky: a soft shadow keeps body text readable on the lighter half */
.m-row.tone-night :is(.copy, .bullets li) { text-shadow: 0 0 12px rgba(30, 15, 70, 0.55); }
.m-row .phone { --w: min(270px, 64vw); }
.bullets { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); }
.bullets li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: #6C5CE7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.tone-night .bullets li::before { background-color: #FFD96B; filter: none; }

/* soundscapes */
.sounds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sound { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; border-radius: 2px; background: #FFD96B; animation: eq 1.2s ease-in-out infinite; animation-delay: var(--dl); height: 40%; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* store gallery */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: min(240px, 62vw); height: auto; aspect-ratio: 9 / 16; border-radius: 22px; scroll-snap-align: center; box-shadow: 0 24px 50px -28px rgba(20, 8, 60, 0.55); }

/* plus */
.plus { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 70px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 32px; background: linear-gradient(140deg, rgba(255, 217, 107, 0.16), rgba(255, 255, 255, 0.04)); box-shadow: inset 0 0 0 1px rgba(255, 217, 107, 0.25); }
@media (max-width: 820px) { .plus { grid-template-columns: 1fr; } }

/* final */
.m-final { padding-block: clamp(90px, 14vw, 180px) clamp(70px, 9vw, 120px); }
.m-final h2 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }
.disclaimer { margin-top: 36px; font-size: var(--fs-xs); color: #BDB3D6; max-width: 36rem; margin-inline: auto; }

/* header follows the sky */
.w-meditation .site-header.scrolled { background: color-mix(in srgb, var(--sky-top) 80%, transparent); box-shadow: 0 1px 0 rgba(40, 20, 90, 0.08); }
.w-meditation.is-night .site-header { color: var(--on-dark); }
@media (max-width: 700px) {
  .sky .sun { width: 84px; right: -14px; top: calc(var(--header-h) + 8px + var(--sun-y) * 0.6vh); }
  .sky .moon { width: 46px; left: auto; right: 22px; top: calc(var(--header-h) + 18px); }
}
.m-final .disclaimer { display: inline-block; padding: 8px 14px; border-radius: 12px; background: #150C38; color: #CFC6EA; }

/* ------------------------------------------------------------------ personal styles: what personal means + real excerpts */
.pz { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(28px, 4vw, 48px); }
.pz-item { padding: 20px 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.62); box-shadow: inset 0 0 0 1px rgba(90, 75, 209, 0.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pz-item h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; color: #2E2752; margin: 0; }
.pz-item p { margin: 8px 0 0; font-size: var(--fs-sm); color: #3F3A55; }
.style-demo { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.style-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.style-chip { border: 0; cursor: pointer; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: var(--fs-sm); background: #fff; box-shadow: inset 0 0 0 1px rgba(90, 75, 209, 0.2); color: #2E2752; transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s; }
.style-chip:hover { transform: translateY(-2px); }
.style-chip[aria-pressed="true"] { background: #6C5CE7; color: #fff; box-shadow: 0 10px 22px -10px rgba(108, 92, 231, 0.8); }
.style-out { min-height: 320px; }
.style-panel[hidden] { display: none; }
.style-panel .lab { display: block; font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #5A4BD1; }
.style-panel .you p { margin: 8px 0 0; padding: 12px 16px; border-radius: 18px 18px 18px 6px; background: #EEEAFF; color: #2E2752; font-size: var(--fs-sm); }
.style-panel .wrote { margin-top: 20px; }
.style-panel .wrote .t { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem); line-height: 1.2; color: #2E2752; }
.style-panel .wrote .l { margin: 10px 0 0; font-size: var(--fs-sm); color: #3F3A55; }
.style-panel .more-dots { margin: 6px 0 0; color: #6C5CE7; letter-spacing: 0.2em; }
.style-panel .badge { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; padding: 6px 10px; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; background: rgba(108, 92, 231, 0.1); color: #4B3FB8; }
.style-note { max-width: 46rem; margin: 18px auto 0; text-align: center; font-size: var(--fs-xs); color: #4A4560; }
@media (max-width: 960px) { .pz { grid-template-columns: repeat(2, minmax(0, 1fr)); } .style-demo { grid-template-columns: minmax(0, 1fr); } .style-out { min-height: 0; } }
@media (max-width: 520px) { .pz { grid-template-columns: minmax(0, 1fr); } }
