/* =====================================================================
   Healing In-depth — shared site theme
   Warm silk backdrop, glass cards, buttons, badges, FAQ, footer.
   Loaded by every page:  <link rel="stylesheet" href="/css/site-theme.css">
   Brand colours only (brand-* greens + the warm silk photo).
   ===================================================================== */

/* Page-wide warm backdrop (the signature look). Fixed layer instead of
   background-attachment:fixed so it also works smoothly on iOS. */
.page-backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: #f6ebe1 url('https://static.wixstatic.com/media/11062b_62f0356712544a87b392417662c4658df000.jpg/v1/fill/w_1797,h_1080,al_c,q_85,usm_0.33_1.00_0.00,enc_avif,quality_auto/11062b_62f0356712544a87b392417662c4658df000.jpg') center / cover no-repeat;
}
/* Matches the original look: the silk photo shows through warmly, softened by a light blur */
.page-backdrop::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* Lotus brand mark as a soft watermark behind a section */
.lotus-watermark {
  position: absolute; right: -6rem; top: 50%; transform: translateY(-50%);
  width: min(560px, 80vw); height: auto; opacity: 0.12; pointer-events: none; user-select: none;
}
@media (max-width: 1023px) { .lotus-watermark { right: 50%; top: 2rem; transform: translateX(50%); opacity: 0.08; } }

/* ===== Shared header (same on every page) ===== */
/* Near-opaque so it looks identical whatever sits behind it on each page */
.site-header { background: rgba(255, 255, 255, 0.92) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
/* Keep the main links visible for logged-in visitors too (some pages used to hide them) */
/* Inline menu from 1024px: it sits in the normal flow between logo and buttons
   (no absolute centring), so it can never overlap "Book Call", logged in or out.
   Below 1024px the links live in the ☰ menu. Overrides any per-page JS toggling. */
.site-header #desktopNav { display: none !important; }
.site-header #hamburgerBtn { display: flex !important; }
@media (min-width: 1024px) {
  .site-header #desktopNav {
    display: flex !important; position: static !important; transform: none !important;
    flex: 1 1 auto; justify-content: center; min-width: 0;
  }
  .site-header #hamburgerBtn { display: none !important; }
}
/* Logged-in "Dashboard" button: clear text pill, same look on every page */
.site-header #desktopMyPlan > svg { display: none !important; }
.site-header #desktopMyPlan > span { display: inline !important; }
.site-header #desktopMyPlan { background: rgba(88, 168, 108, 0.12); color: #316d45; font-weight: 600; }
/* Community shows inline only where there is room; it's also inside the dashboard */
@media (max-width: 1279px) { .site-header #desktopCommunity { display: none !important; } }
.site-header #bookCallBtn, .site-header #desktopMyPlan, .site-header #loginBtn { white-space: nowrap; }
/* Nav pill styles */
.nav-pill {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #475569;
}
.nav-pill:hover {
  background: rgba(88, 168, 108, 0.08);
  color: #316d45;
}
.nav-pill.active {
  background: rgba(88, 168, 108, 0.12);
  color: #316d45;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 60;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 55;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  color: #334155;
  font-weight: 500;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}
.mobile-nav-link.hidden { display: none; }
.mobile-nav-link:hover {
  background: rgba(88, 168, 108, 0.06);
  color: #316d45;
}
.mobile-nav-link.active {
  background: rgba(88, 168, 108, 0.1);
  color: #316d45;
  border-left-color: #58a86c;
  font-weight: 600;
}

/* Hamburger animation */
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #334155;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.white-lotus { filter: brightness(0) invert(1); }

@keyframes lotus-hd {
  0%, 100% { transform: scale(1) translateZ(0); filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(49, 109, 69, 0.15)); }
  50% { transform: scale(1.02) translateZ(0); filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(49, 109, 69, 0.25)); }
}
.lotus-hd { animation: lotus-hd 8s ease-in-out infinite; will-change: transform; }

/* Auth button styles */
.auth-btn { transition: all 0.2s ease; }
.auth-btn:hover { transform: translateY(-1px); }

/* Language switcher dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-dropdown-btn:hover { background: rgba(88, 168, 108, 0.08); color: #316d45; }
.lang-dropdown-menu {
  position: absolute; right: 0; top: 100%; margin-top: 0.5rem;
  min-width: 10rem; padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
  border-radius: 0.75rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(49, 109, 69, 0.1);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.2s ease; z-index: 50;
}
.lang-dropdown-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.875rem; cursor: pointer;
  transition: all 0.2s; color: #475569;
}
.lang-option:hover { background: rgba(88, 168, 108, 0.08); color: #316d45; }
.lang-option.active { background: rgba(88, 168, 108, 0.12); color: #316d45; font-weight: 600; }
.lang-option-mobile.active { background: rgba(88, 168, 108, 0.12); border-color: #58a86c; color: #316d45; font-weight: 600; }

/* Glass surface used for cards on top of the backdrop */
.glass {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(49, 109, 69, 0.1);
}
.glass-lift { transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease, background-color 0.45s ease; }
.glass-lift:hover { transform: translateY(-4px); background-color: rgba(255, 255, 255, 0.95); box-shadow: 0 25px 50px -25px rgba(49, 109, 69, 0.35); border-color: rgba(88, 168, 108, 0.3); }
html { scroll-behavior: smooth; }
header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(26, 46, 31, 0.18); }


.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: #316d45;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: #58a86c; }

.hi-btn-primary, .hi-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: 9999px; padding: 1rem 1.75rem; font-size: 0.95rem; font-weight: 600;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hi-btn-primary { background: #316d45; color: #fff; box-shadow: 0 12px 30px -10px rgba(49, 109, 69, 0.55); }
.hi-btn-primary:hover { background: #1a2e1f; transform: translateY(-1px); }
.hi-btn-secondary { background: rgba(255, 255, 255, 0.7); color: #1a2e1f; border: 1px solid rgba(49, 109, 69, 0.2); }
.hi-btn-secondary:hover { background: #fff; border-color: rgba(49, 109, 69, 0.4); transform: translateY(-1px); }

.cred { display: flex; align-items: flex-start; gap: 0.85rem; }
.cred-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 9999px; background: #e8f5eb; color: #316d45; }
.cred-title { font-weight: 600; color: #0f172a; font-size: 0.92rem; line-height: 1.3; }
.cred-sub { font-size: 0.8rem; color: #64748b; margin-top: 0.15rem; }

.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.hi-chip {
  white-space: nowrap; border-radius: 9999px; padding: 0.6rem 1.1rem; font-size: 0.85rem; font-weight: 500;
  color: #334155; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(49, 109, 69, 0.14); transition: all 0.2s ease;
}
.hi-chip:hover { border-color: rgba(49, 109, 69, 0.4); color: #316d45; }
.hi-chip.is-active { background: #1a2e1f; border-color: #1a2e1f; color: #fff; }

.hi-badge {
  display: inline-flex; align-items: center; border-radius: 9999px; padding: 0.3rem 0.75rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; backdrop-filter: blur(8px);
}
.hi-badge-green { background: rgba(232, 245, 235, 0.95); color: #316d45; }
.hi-badge-sand { background: rgba(255, 251, 235, 0.96); color: #b45309; border: 1px solid #fde68a; }
.hi-badge-slate { background: rgba(255, 255, 255, 0.92); color: #475569; }

.tick { position: relative; padding-left: 1.6rem; }
.tick::before {
  content: ""; position: absolute; left: 0; top: 0.15rem; width: 1.05rem; height: 1.05rem; border-radius: 9999px;
  background: #e8f5eb url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23316d45" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M6 12.5l4 4 8-9"/></svg>') center / 0.65rem no-repeat;
}

.card-link {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 1.75rem; background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(49, 109, 69, 0.1); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.card-link:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.96); box-shadow: 0 25px 50px -25px rgba(26, 46, 31, 0.35); border-color: rgba(49, 109, 69, 0.22); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8f5eb; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card-link:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.6rem 1.5rem; }
.card-title { margin-top: 0.7rem; font-family: 'Playfair Display', ui-serif, Georgia; font-size: 1.5rem; line-height: 1.2; color: #0f172a; }
.card-desc { margin-top: 0.6rem; font-size: 0.92rem; line-height: 1.65; color: #475569; }
.card-foot { margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-price { font-size: 0.85rem; font-weight: 600; color: #316d45; }
.card-arrow {
  display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  border-radius: 9999px; border: 1px solid rgba(49, 109, 69, 0.2); color: #316d45; transition: all 0.3s ease;
}
.card-link:hover .card-arrow { background: #316d45; border-color: #316d45; color: #fff; }
.prog-card.is-hidden { display: none; }

.step { position: relative; padding-top: 1.5rem; border-top: 1px solid rgba(49, 109, 69, 0.15); }
.step-num { font-family: 'Playfair Display', ui-serif, Georgia; font-style: italic; font-size: 2.6rem; color: #58a86c; line-height: 1; }
.step-title { margin-top: 1rem; font-size: 1.15rem; font-weight: 600; color: #0f172a; }
.step-desc { margin-top: 0.5rem; color: #475569; line-height: 1.7; }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 0.9rem; background: #e8f5eb; color: #316d45; }
.feature-title { font-weight: 600; color: #0f172a; }
.feature-desc { font-size: 0.9rem; color: #64748b; margin-top: 0.15rem; }

.faq { border-radius: 1.25rem; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(49, 109, 69, 0.1); transition: border-color 0.2s ease; }
.faq[open] { border-color: rgba(49, 109, 69, 0.25); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; font-weight: 600; color: #0f172a;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem;
  border-radius: 9999px; background: #e8f5eb; color: #316d45; font-size: 1.15rem; font-weight: 400; transition: transform 0.25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq > p { padding: 0 1.5rem 1.4rem; color: #475569; line-height: 1.7; }

.footer-head { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #0f172a; margin-bottom: 1rem; }
.footer-links { display: grid; gap: 0.65rem; font-size: 0.9rem; }
.footer-links a:hover { color: #316d45; }
.social { display: flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 9999px; border: 1px solid rgba(49, 109, 69, 0.18); color: #316d45; transition: all 0.2s ease; }
.social:hover { background: #316d45; color: #fff; border-color: #316d45; }

/* Platform preview tabs + mock app */
.ptab { position: relative; width: 100%; display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.1rem; border-radius: 1.25rem; border: 1px solid transparent; text-align: left; overflow: hidden; transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.ptab:hover { background: rgba(255, 255, 255, 0.55); }
.ptab.is-active { background: rgba(255, 255, 255, 0.9); border-color: rgba(49, 109, 69, 0.14); box-shadow: 0 18px 40px -24px rgba(26, 46, 31, 0.35); }
.ptab .feature-icon { transition: background 0.3s ease, color 0.3s ease; }
.ptab.is-active .feature-icon { background: #316d45; color: #fff; }
.ptab-bar { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; height: 2px; border-radius: 2px; background: #58a86c; transform: scaleX(0); transform-origin: left; }
.ptab.is-active.is-timed .ptab-bar { animation: ptabTimer var(--ptab-ms, 6000ms) linear forwards; }
@keyframes ptabTimer { to { transform: scaleX(1); } }
.ppanel { animation: ppanelIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes ppanelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ppanel .mock-bar { width: var(--w); animation: mockBar 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes mockBar { from { width: 0; } }
.ppanel .mock-ring { animation: mockRing 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes mockRing { from { stroke-dashoffset: 97.4; } }
.ppanel .mock-line { stroke-dasharray: 400; animation: mockLine 1.4s ease-out; }
@keyframes mockLine { from { stroke-dashoffset: 400; } to { stroke-dashoffset: 0; } }
.mock-check { flex-shrink: 0; width: 1.4rem; height: 1.4rem; border-radius: 9999px; border: 1.5px solid #c8e6cf; background: #fff; }
.mock-check.sm { width: 1.05rem; height: 1.05rem; }
.mock-check.is-done { border-color: #58a86c; background: #58a86c url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 12.5l4 4 8-9"/></svg>') center / 65% no-repeat; }
@media (prefers-reduced-motion: reduce) {
  .ppanel, .ppanel .mock-bar, .ppanel .mock-ring, .ppanel .mock-line { animation: none; }
  .ptab.is-active.is-timed .ptab-bar { animation: none; }
}

#stickyCta.is-visible { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-link, .card-media img, .hi-btn-primary, .hi-btn-secondary { transition: none; }
}

/* Sticky header fix: pages set overflow-x:hidden on html AND body, which turns
   body into a scroll container and silently breaks position:sticky.
   overflow-x:clip still prevents sideways scrolling but keeps sticky working. */
@supports (overflow: clip) {
  html, body { overflow-x: clip !important; }
}

/* ===== One identical experience on every page ===== */
/* Reserve the scrollbar's space so the header never shifts sideways between
   long and short pages (or while a page's content is still loading). */
html { scrollbar-gutter: stable; }
/* Every page uses the same fixed silk backdrop (.page-backdrop). Older
   per-page copies of the photo and their overlays are switched off. */
.hero-bg-container { background: none !important; }
.hero-bg-container + .absolute.inset-0,
.hero-bg-container + .fixed.inset-0 { display: none !important; }
/* "Book Call" stays in the header for everyone, logged in or not. */
.site-header #bookCallBtn.hidden { display: inline-flex !important; }

/* Phones: Dashboard + profile live in the ☰ menu, so the bar stays logo · Book Call · ☰
   for everyone and never overflows. */
@media (max-width: 639px) { .site-header #userMenu { display: none !important; } }

/* ===================== MEMBER AREA ===================== */
/* Compact moon card for the dashboard's "Today's ritual" column */
.moon-compact { border-radius: 2rem !important; }
.moon-compact > .relative.z-10 { flex-direction: column !important; align-items: center !important; text-align: center; gap: 0.9rem !important; }
.moon-compact > .relative.z-10 > div { border-left: 0 !important; padding-left: 0 !important; align-items: center !important; text-align: center !important; }
.moon-compact > .relative.z-10 > div:nth-child(2) { order: 3; }
.moon-compact #moonSpirit { font-size: 0.8rem; }
.moon-compact #moonCelestialAdvice { display: none !important; }
.moon-compact #moonCelestialDesc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Oracle tile */
.oracle-tile {
  background: radial-gradient(circle at 85% 15%, rgba(232, 206, 160, 0.35), transparent 55%), linear-gradient(150deg, #3d6a50 0%, #2a4a38 55%, #1f3a2c 100%);
  box-shadow: 0 25px 50px -28px rgba(26, 46, 31, 0.7), inset 0 0 0 1px rgba(214, 182, 128, 0.35);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s ease;
}
.oracle-tile:hover { transform: translateY(-3px); box-shadow: 0 30px 55px -26px rgba(26, 46, 31, 0.75), inset 0 0 0 1px rgba(214, 182, 128, 0.5); }

/* Progress bar grow-in */
.member-bar { width: var(--w); animation: memberBar 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes memberBar { from { width: 0; } }

/* Phone tab bar (member pages) */
.member-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 0.4rem 0.5rem calc(0.4rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(49, 109, 69, 0.1); box-shadow: 0 -10px 30px -18px rgba(26, 46, 31, 0.25);
}
.member-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; padding: 0.35rem 0; border-radius: 0.9rem; color: #64748b; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.01em; }
.member-tabbar a svg { width: 1.35rem; height: 1.35rem; }
.member-tabbar a.is-active { color: #316d45; }
.member-tabbar a.is-active svg { transform: translateY(-1px); }
.member-tabbar a.is-active::after { content: ""; width: 1.1rem; height: 3px; border-radius: 3px; background: #58a86c; margin-top: 0.1rem; }
@media (min-width: 768px) { .member-tabbar { display: none; } }
@media (max-width: 767px) { body.has-tabbar { padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .member-bar { animation: none; } .oracle-tile { transition: none; } }

/* ===== Programme page template (plan-*.html) ===== */
/* Progress strip filled by js/member-programme.js */
.hi-progress { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0.15rem 1rem; padding: 1rem 1.25rem; border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(49, 109, 69, 0.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); max-width: 26rem; }
.hi-progress-label { font-family: 'Playfair Display', ui-serif, Georgia; font-size: 1.25rem; color: #0f172a; }
.hi-progress-meta { justify-self: end; font-size: 0.75rem; color: #64748b; }
.hi-progress-track { grid-column: 1 / -1; margin-top: 0.6rem; height: 6px; border-radius: 9999px; background: #e8f5eb; overflow: hidden; }
.hi-progress-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: #58a86c; animation: memberBar 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
/* Sticky section tabs under the header */
.hi-tabs { position: sticky; top: 4.4rem; z-index: 30; display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding: 0.4rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(49, 109, 69, 0.12); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 12px 30px -20px rgba(26, 46, 31, 0.35); }
.hi-tabs::-webkit-scrollbar { display: none; }
.hi-tab { flex: 0 0 auto; white-space: nowrap; border-radius: 9999px; padding: 0.6rem 1.1rem; font-size: 0.88rem; font-weight: 600; color: #475569; transition: all 0.2s ease; }
.hi-tab:hover { color: #316d45; background: rgba(232, 245, 235, 0.7); }
.hi-tab.is-active, .hi-tab[aria-selected="true"] { background: #316d45; color: #fff; }
/* Day / week card */
.hi-day { border-radius: 1.5rem; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(49, 109, 69, 0.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color 0.2s ease, box-shadow 0.3s ease; }
.hi-day:hover, .hi-day[open] { border-color: rgba(49, 109, 69, 0.25); box-shadow: 0 20px 40px -28px rgba(26, 46, 31, 0.35); }
.hi-day-num { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; border-radius: 9999px; background: #e8f5eb; color: #316d45; font-family: 'Playfair Display', ui-serif, Georgia; font-style: italic; font-size: 1.15rem; }
/* "Need a hand?" closing card shared by all programme pages */
.hi-help { border-radius: 2rem; background: rgba(232, 245, 235, 0.7); border: 1px solid rgba(63, 140, 86, 0.2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
@media print { .site-header, .member-tabbar, .hi-tabs, footer, .page-backdrop, .grain { display: none !important; } }

/* Member header: #app-header is only as tall as the header it wraps, which stopped
   the sticky header from sticking. Let the header take part in the page flow directly. */
#app-header:not(.hidden) { display: contents; }
/* Progress strip stays hidden until js/member-programme.js has something to show */
.hi-progress.hidden { display: none !important; }
/* Floating cart button sits above the phone tab bar on member pages */
@media (max-width: 767px) { body.has-tabbar #cartButton { bottom: calc(5.4rem + env(safe-area-inset-bottom)) !important; } }
@media (max-width: 767px) { body.has-tabbar .ambient-hint { bottom: calc(5.6rem + env(safe-area-inset-bottom)) !important; } }

/* Signed-in header on public pages (js/site-header.js) */
.site-header #profileDropdownBtn.hi-avatar { padding: 0; overflow: hidden; background: linear-gradient(135deg, #70b583, #316d45); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(49,109,69,0.18), 0 6px 16px -8px rgba(26,46,31,0.45); }
.site-header #profileDropdownBtn.hi-avatar:hover { box-shadow: 0 0 0 2px rgba(88,168,108,0.45), 0 8px 18px -8px rgba(26,46,31,0.5); }
.hi-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; overflow: hidden; flex-shrink: 0; background: linear-gradient(135deg, #70b583, #316d45); }
.hi-avatar-lg { width: 3rem; height: 3rem; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(49,109,69,0.15); }
.hi-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hi-avatar-initials { color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }
.hi-avatar-lg .hi-avatar-initials { font-size: 1rem; }
#profileDropdown.hi-account-menu { width: 16.5rem; padding: 0.5rem; border-radius: 1.1rem; }
.hi-account-menu > a, .hi-account-menu > button { border-radius: 0.7rem; }
.hi-account-head { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.6rem 0.8rem; }
.hi-account-menu .hi-account-head { border-bottom: 1px solid #f1f5f9; margin-bottom: 0.35rem; }
.hi-account-links a { border-radius: 0.7rem; }
.site-header #profileDropdownBtn.hi-avatar:focus:not(:focus-visible) { outline: none; }
.hi-account-card { border: 1px solid rgba(49,109,69,0.15); border-radius: 1rem; background: rgba(232,245,235,0.6); }
/* Phones: the photo stays visible (the My Journey pill lives in the menu) */
@media (max-width: 639px) {
  html.hi-signed-in .site-header #desktopMyPlan { display: none !important; }
  .site-header #profileDropdownBtn.hi-avatar { width: 2.4rem; height: 2.4rem; }
}

/* Signed-in header order: language · Book Call (quiet) · My Journey (primary) · photo (far right) */
html.hi-signed-in .site-header .lang-dropdown { order: 1; }
html.hi-signed-in .site-header #bookCallBtn { order: 2; background: rgba(255,255,255,0.6); color: #316d45; box-shadow: inset 0 0 0 1.5px rgba(49,109,69,0.3); }
html.hi-signed-in .site-header #bookCallBtn:hover { background: #e8f5eb; transform: none; }
html.hi-signed-in .site-header #userMenu { order: 3; }
html.hi-signed-in .site-header #hamburgerBtn { order: 4; }
html.hi-signed-in .site-header #desktopMyPlan { background: #316d45; color: #fff; padding-left: 1.15rem; padding-right: 1.15rem; box-shadow: 0 8px 20px -10px rgba(49,109,69,0.6); }
html.hi-signed-in .site-header #desktopMyPlan:hover { background: #1a2e1f; }

/* Decided before first paint by the inline <head> check, so the header never rearranges:
   menu + photo shown, Login hidden, and the cached photo/initials painted by CSS until JS takes over. */
html.hi-signed-in .site-header #userMenu { display: flex !important; }
html.hi-signed-in .site-header #loginBtn { display: none !important; }
html.hi-signed-in .site-header #bookCallBtn { transition: none; }
html.hi-signed-in .site-header #profileDropdownBtn { padding: 0; overflow: hidden; border: 2px solid #fff; background: var(--hi-avatar, linear-gradient(135deg, #70b583, #316d45)) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(49,109,69,0.18), 0 6px 16px -8px rgba(26,46,31,0.45); }
html.hi-signed-in .site-header #profileDropdownBtn:not(.hi-avatar) > svg { display: none; }
html.hi-signed-in .site-header #profileDropdownBtn:not(.hi-avatar)::after { content: var(--hi-initials, ""); color: #fff; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; }


/* ===== Oracle ritual (mydashboard.html #oracleRitual) — calm, warm, one continuous flow ===== */
html.or-lock, html.or-lock body { overflow: hidden !important; }
.or-overlay { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0s linear 0.7s; }
.or-overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.7s ease; }
.or-backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 38%, rgba(255, 250, 242, 0.8), rgba(239, 228, 214, 0.86) 60%, rgba(214, 198, 176, 0.9));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.or-panel { position: relative; width: 100%; max-width: 31rem; max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; outline: none;
  padding: 2.75rem 2.25rem 2.25rem; text-align: center; border-radius: 2rem; background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(200, 164, 106, 0.22); box-shadow: 0 50px 90px -45px rgba(60, 45, 25, 0.5);
  transform: translateY(14px); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), max-width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.or-overlay.is-open .or-panel { transform: none; }
.or-overlay[data-step="read"] .or-panel { max-width: 57rem; }
.or-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 2.6rem; height: 2.6rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  color: #64748b; background: rgba(255, 255, 255, 0.75); transition: background 0.3s ease, color 0.3s ease; }
.or-close:hover { background: #fff; color: #1a2e1f; }

.or-stage-read { display: none; }
.or-overlay[data-step="read"] .or-stage-draw { display: none; }
.or-overlay[data-step="read"] .or-stage-read { display: block; animation: orFade 0.8s ease both; }

.or-eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #8a6a3b; }
.or-eyebrow img { width: 1.5rem; height: auto; }
.or-title { margin-top: 0.9rem; font-family: 'Playfair Display', ui-serif, Georgia, serif; font-size: 2rem; line-height: 1.15; color: #1a2e1f; }
.or-sub { margin: 0.6rem auto 0; max-width: 22rem; color: #64748b; font-size: 0.95rem; line-height: 1.65; }
.or-focus { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.or-chip { padding: 0.5rem 1.05rem; border-radius: 9999px; font-size: 0.85rem; font-weight: 500; color: #475569; background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(49, 109, 69, 0.14); transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease; }
.or-chip:hover { border-color: rgba(49, 109, 69, 0.35); color: #316d45; }
.or-chip.is-active { background: #316d45; border-color: #316d45; color: #fff; }

/* The deck */
.or-intro, .or-cta { transition: opacity 0.7s ease, max-height 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.9s ease; max-height: 24rem; overflow: hidden; }
.or-deck { position: relative; display: block; width: 9.25rem; aspect-ratio: 953 / 1484; margin: 2.25rem auto 0; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.9s ease; -webkit-tap-highlight-color: transparent; }
.or-cardback, .or-face-back { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 1rem;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.16), transparent 58%), linear-gradient(160deg, #3d6a50 0%, #2a4a38 55%, #1f3a2c 100%);
  box-shadow: 0 22px 34px -22px rgba(26, 46, 31, 0.6); }
.or-cardback::after, .or-face-back::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(214, 182, 128, 0.55); border-radius: 0.65rem; pointer-events: none; }
.or-cardback img, .or-face-back img { width: 46%; height: auto; opacity: 0.92; }
.or-cardback-2 { transform: rotate(-4deg) translate(-6px, 4px); opacity: 0.85; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.or-cardback-3 { transform: rotate(5deg) translate(7px, 6px); opacity: 0.7; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.or-cardback-1 { animation: orFloat 6s ease-in-out infinite; }
.or-deck:hover .or-cardback-2, .or-deck:focus-visible .or-cardback-2 { transform: rotate(-8deg) translate(-14px, 4px); }
.or-deck:hover .or-cardback-3, .or-deck:focus-visible .or-cardback-3 { transform: rotate(9deg) translate(15px, 6px); }
.or-halo { position: absolute; inset: -38%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(232, 206, 160, 0.6), rgba(232, 206, 160, 0) 64%);
  opacity: 0.35; transform: scale(0.85); }
.or-cta { margin-top: 1.75rem; padding: 0 1rem 1.25rem; margin-bottom: -1.25rem; }
.or-breath { display: none; }

/* Breathe: everything else softly falls away, the deck rests in the centre and the light breathes */
.or-overlay[data-step="breathe"] .or-intro, .or-overlay[data-step="breathe"] .or-cta { opacity: 0; max-height: 0; margin-top: 0; }
.or-overlay[data-step="breathe"] .or-deck { transform: scale(1.12); margin-top: 3rem; cursor: default; }
.or-overlay[data-step="breathe"] .or-cardback-1 { animation: none; }
.or-overlay[data-step="breathe"] .or-halo { animation: orBreath 7s ease-in-out forwards; }
.or-overlay[data-step="breathe"] .or-breath { display: block; animation: orFade 1s ease 0.4s both; }
.or-breath-text { position: relative; height: 2.2rem; margin-top: 3rem; font-family: 'Playfair Display', ui-serif, Georgia, serif; font-style: italic; font-size: 1.4rem; color: #316d45; }
.or-in, .or-out { position: absolute; inset: 0; opacity: 0; }
.or-overlay[data-step="breathe"] .or-in { animation: orIn 7s ease-in-out forwards; }
.or-overlay[data-step="breathe"] .or-out { animation: orOut 7s ease-in-out forwards; }
.or-skip { margin-top: 1.5rem; font-size: 0.8rem; color: #94a3b8; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(148, 163, 184, 0.5); transition: color 0.3s; }
.or-skip:hover { color: #475569; }

/* Reading */
.or-reading { display: grid; grid-template-columns: minmax(0, 17.5rem) minmax(0, 1fr); gap: 2.75rem; align-items: start; text-align: left; padding: 0.5rem 0.5rem 0; }
.or-flip { position: relative; width: 100%; aspect-ratio: 953 / 1484; perspective: 1800px; }
.or-flip::before { content: ""; position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(circle, rgba(240, 214, 170, 0.65), transparent 64%);
  filter: blur(18px); opacity: 0; transition: opacity 1.8s ease 0.7s; }
.or-flip.is-turned::before { opacity: 1; }
.or-flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.7s cubic-bezier(0.45, 0.05, 0.25, 1); }
.or-flip.is-turned .or-flip-inner { transform: rotateY(180deg); }
.or-flip.no-anim::before, .or-flip.no-anim .or-flip-inner { transition: none; }
.or-face { position: absolute; inset: 0; border-radius: 1.1rem; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: 0 34px 55px -30px rgba(60, 40, 20, 0.6); }
.or-face-front { transform: rotateY(180deg); background: #fbf7f1; }
.or-face-front img { display: block; width: 100%; height: 100%; object-fit: cover; }
.or-message { padding-top: 0.75rem; }
.or-overlay.is-revealing .or-message { animation: orRise 1.1s ease 1.5s both; }
.or-eyebrow-plain { display: block; }
.or-cardname { margin-top: 0.55rem; font-family: 'Playfair Display', ui-serif, Georgia, serif; font-size: 2.2rem; line-height: 1.12; color: #1a2e1f; }
.or-cardname::after { content: ""; display: block; width: 2.5rem; height: 2px; margin-top: 1.1rem; border-radius: 2px; background: #c8a46a; opacity: 0.7; }
.or-waiting { display: flex; align-items: center; gap: 0.4rem; margin-top: 1.5rem; color: #8a6a3b; }
.or-waiting.hidden { display: none; }
.or-waiting span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #c8a46a; animation: orDot 1.8s ease-in-out infinite; }
.or-waiting span:nth-child(2) { animation-delay: 0.3s; }
.or-waiting span:nth-child(3) { animation-delay: 0.6s; }
.or-waiting em { margin-left: 0.5rem; font-size: 0.92rem; }
.or-text { margin-top: 1.25rem; }
.or-text p { margin-top: 0.9rem; color: #475569; font-size: 1rem; line-height: 1.8; }
.or-text p:first-child { margin-top: 0; }
.or-text strong { color: #1a2e1f; font-weight: 600; }
.or-reflection { margin-top: 1.5rem; padding: 1.05rem 1.25rem; border-radius: 1rem; background: rgba(239, 228, 214, 0.55); border-left: 3px solid #c8a46a; }
.or-reflection span { display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #8a6a3b; }
.or-text .or-reflection p { margin-top: 0.4rem; font-family: 'Playfair Display', ui-serif, Georgia, serif; font-style: italic; font-size: 1.12rem; line-height: 1.55; color: #1a2e1f; }
.or-unfold { animation: orRise 1s ease both; }
.or-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; }
.or-again { font-size: 0.9rem; font-weight: 600; color: #316d45; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(49, 109, 69, 0.3); transition: text-decoration-color 0.3s; }
.or-again:hover { text-decoration-color: currentColor; }
.or-credit { margin-top: 1.75rem; font-size: 0.7rem; letter-spacing: 0.04em; color: #a8a29e; }

/* Dashboard tile thumbnail once today's card is drawn */
.oracle-tile.has-card [data-or-tile="icon"] { background: transparent; box-shadow: none; }
.or-tile-thumb { width: 2.5rem; height: 3.9rem; object-fit: cover; border-radius: 0.4rem; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(214, 182, 128, 0.6); }

@keyframes orFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes orRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes orFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes orBreath { 0% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 0.95; transform: scale(1.28); } 100% { opacity: 0.45; transform: scale(0.9); } }
@keyframes orIn { 0% { opacity: 0; } 12% { opacity: 1; } 44% { opacity: 1; } 52% { opacity: 0; } 100% { opacity: 0; } }
@keyframes orOut { 0%, 50% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: 1; } }
@keyframes orDot { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }

/* Phones: a bottom sheet above the tab bar */
@media (max-width: 640px) {
  .or-overlay { padding: 0; align-items: flex-end; }
  .or-panel, .or-overlay[data-step="read"] .or-panel { max-width: none; max-height: 94dvh; border-radius: 1.75rem 1.75rem 0 0; padding: 2.4rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom)); transform: translateY(40px); }
  .or-title { font-size: 1.65rem; }
  .or-reading { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; padding: 0; }
  .or-flip { width: 11.5rem; margin: 0.5rem auto 0; }
  .or-cardname { font-size: 1.8rem; }
  .or-cardname::after { margin-left: auto; margin-right: auto; }
  .or-waiting { justify-content: center; }
  .or-text { text-align: left; }
  .or-actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .or-overlay, .or-overlay *, .or-cardback-1 { animation: none !important; transition: none !important; }
}
