/* =========================================================
   PulseWave — shared styles for hub-and-spoke content pages
   Loaded on every /apps/pulsewave/** page except index.html
   (index.html keeps its inline page-scoped CSS for now).
   Depends on: /assets/css/main.css (variables + .nav + .footer + .btn-*)
   ========================================================= */

/* ── Breadcrumbs ─────────────────────────────────────────── */
.pw-crumb {
  font-size: .8125rem;
  color: var(--text-3);
  padding: 100px 0 0;
}
.pw-crumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pw-crumb__list li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pw-crumb__list li::before {
  content: '/';
  color: var(--text-3);
  opacity: .5;
}
.pw-crumb__list li:first-child::before { content: none; }
.pw-crumb__list a {
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--t);
}
.pw-crumb__list a:hover { color: var(--pw); }
.pw-crumb__list [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ── Spoke hero (lighter than landing hero) ──────────────── */
.pw-spoke-hero {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(8,145,178,.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(6,182,212,.05) 0%, transparent 55%),
    var(--bg);
  padding: 32px 0 56px;
  border-bottom: 1px solid var(--border);
}
.pw-spoke-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pw-light);
  border: 1px solid #a5f3fc;
  color: var(--pw-dark);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}
.pw-spoke-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 18px;
  max-width: 820px;
}
.pw-spoke-hero__lede {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 720px;
  margin: 0;
}

/* ── Quick-answer box (LLM citation magnet) ──────────────── */
.pw-quick-answer {
  margin: 32px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
  border: 1.5px solid #a5f3fc;
  border-left: 4px solid var(--pw);
  border-radius: var(--r-lg);
}
.pw-quick-answer__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pw-dark);
  margin-bottom: 10px;
}
.pw-quick-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
}

/* ── Body content (prose) ────────────────────────────────── */
.pw-prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 0;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text);
}
.pw-prose > * + * { margin-top: 1.25em; }
.pw-prose h2 {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.25;
  margin-top: 2.4em;
  margin-bottom: .6em;
  color: var(--text);
  scroll-margin-top: 80px;
}
.pw-prose h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: .4em;
}
.pw-prose p { color: var(--text-2); }
.pw-prose a {
  color: var(--pw);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.pw-prose a:hover { color: var(--pw-dark); }
.pw-prose ul, .pw-prose ol {
  padding-left: 1.4em;
  color: var(--text-2);
}
.pw-prose ul li, .pw-prose ol li { margin: .4em 0; }
.pw-prose strong { color: var(--text); font-weight: 700; }
.pw-prose cite {
  font-style: normal;
  color: var(--text-3);
  font-size: .9rem;
}

/* ── Step list (how-to instructions) ─────────────────────── */
.pw-steps {
  list-style: none;
  counter-reset: pw-step;
  padding: 0;
  margin: 1.4em 0;
}
.pw-steps li {
  counter-increment: pw-step;
  position: relative;
  padding: 18px 22px 18px 64px;
  margin: 10px 0;
  background: var(--bg-alt, #fafafa);
  border: 1px solid var(--border);
  border-radius: var(--r-md, 14px);
}
.pw-steps li::before {
  content: counter(pw-step);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pw);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Citation block ──────────────────────────────────────── */
.pw-citation {
  margin: 1.6em 0;
  padding: 18px 22px;
  background: #fafafa;
  border-left: 3px solid var(--text-3);
  border-radius: 0 var(--r-md, 12px) var(--r-md, 12px) 0;
  font-size: .9375rem;
  color: var(--text-2);
}
.pw-citation strong { color: var(--text); }
.pw-citation a { color: var(--pw); }

/* ── CTA strip ───────────────────────────────────────────── */
.pw-cta-strip {
  margin: 64px 0 0;
  padding: 44px 36px;
  background: linear-gradient(135deg, var(--pw-dark) 0%, var(--pw) 100%);
  border-radius: var(--r-xl);
  text-align: center;
  color: #fff;
}
.pw-cta-strip__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.pw-cta-strip__sub {
  margin: 0 0 22px;
  color: rgba(255,255,255,.78);
  font-size: 1rem;
}
.pw-cta-strip .btn {
  background: #fff;
  color: var(--pw-dark);
  border-color: #fff;
}
.pw-cta-strip .btn:hover { background: #f0fdfa; }

/* ── Related links grid (internal linking engine) ────────── */
.pw-related {
  margin: 64px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
}
.pw-related__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 20px;
  font-size: .8125rem;
  letter-spacing: .12em;
}
.pw-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.pw-related__card {
  display: block;
  padding: 18px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.pw-related__card:hover {
  border-color: var(--pw);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8,145,178,.08);
}
.pw-related__eyebrow {
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pw);
  margin: 0 0 6px;
}
.pw-related__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* ── FAQ accordion (matches index.html behavior) ─────────── */
.pw-faq {
  margin: 48px 0 0;
}
.pw-faq__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 20px;
}
.pw-faq-item {
  border-bottom: 1px solid var(--border);
}
.pw-faq-item:first-child { border-top: 1px solid var(--border); }
.pw-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 20px 32px 20px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  position: relative;
  line-height: 1.45;
}
.pw-faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--pw);
  font-weight: 400;
  transition: transform var(--t);
}
.pw-faq-item.open .pw-faq-q::after { content: '−'; }
.pw-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t) ease, padding var(--t) ease;
  color: var(--text-2);
  line-height: 1.7;
}
.pw-faq-item.open .pw-faq-a {
  max-height: 600px;
  padding: 0 0 20px;
}

/* ============================================================
   PREMIUM BUTTONS — accessibility-first + polished interactions
   Scoped to PulseWave so other apps keep their own button rules.
   Approach:
     • Default state    — rich gradient cyan → navy, ~7:1 contrast min
     • Hover state      — deep midnight navy + glowing cyan ring
                           (objectively >14:1, perceptually unmistakable)
     • Active state     — pressed feel
     • Focus-visible    — keyboard-accessible cyan ring
     • Optional shine   — slow diagonal sheen on hover (premium polish)
   ============================================================ */

a.btn-pw,
button.btn-pw,
.btn-pw {
  position: relative;
  overflow: hidden;                                /* contain the shine sweep */
  isolation: isolate;
  background: linear-gradient(135deg, #0891b2 0%, #155e75 55%, #164e63 100%);
  color: #fff;
  border: 1px solid #164e63;
  box-shadow:
    0 2px 6px rgba(8,15,30,.18),
    0 8px 22px rgba(8,145,178,.28),
    inset 0 1px 0 rgba(255,255,255,.18);
  text-shadow: 0 1px 0 rgba(0,0,0,.22);
  transition:
    background-color .25s ease,
    color .2s ease,
    border-color .25s ease,
    box-shadow .3s ease,
    transform .2s ease;
}

/* Diagonal shine that lives off-canvas until hover */
a.btn-pw::before,
button.btn-pw::before,
.btn-pw::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg,
              transparent 30%,
              rgba(255,255,255,.18) 50%,
              transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}

/* HOVER — premium: very dark navy, cyan glow ring, lift, shine sweeps across.
   White on #0b1f2d ≈ 14:1 contrast (well past WCAG AAA). */
a.btn-pw:hover,
button.btn-pw:hover,
.btn-pw:hover,
a.btn-pw:focus-visible,
button.btn-pw:focus-visible,
.btn-pw:focus-visible {
  background: linear-gradient(135deg, #0b1f2d 0%, #0c2d3f 100%);
  background-color: #0b1f2d;                       /* solid fallback */
  color: #fff;
  border-color: #22d3ee;                           /* glowing cyan ring */
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(34,211,238,.65),
    0 12px 32px rgba(8,145,178,.45),
    0 0 36px rgba(34,211,238,.35),
    inset 0 1px 0 rgba(255,255,255,.22);
  text-shadow: 0 1px 0 rgba(0,0,0,.4);
}
a.btn-pw:hover::before,
button.btn-pw:hover::before,
.btn-pw:hover::before { transform: translateX(120%); }

/* ACTIVE — pressed feel */
a.btn-pw:active,
button.btn-pw:active,
.btn-pw:active {
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(34,211,238,.5),
    0 4px 10px rgba(8,15,30,.35),
    inset 0 2px 6px rgba(0,0,0,.3);
}

/* Keyboard focus — same as hover, but always show the ring */
a.btn-pw:focus-visible,
button.btn-pw:focus-visible,
.btn-pw:focus-visible {
  outline: none;
}

/* GHOST button on dark hero — premium glassmorphism */
.pw-shero .btn-ghost,
.pw-shero a.btn-ghost,
.pw-shero button.btn-ghost {
  position: relative;
  background: rgba(255,255,255,.07);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: background-color .25s ease, border-color .25s ease,
              box-shadow .3s ease, transform .2s ease, color .2s ease;
}
.pw-shero .btn-ghost:hover,
.pw-shero a.btn-ghost:hover,
.pw-shero button.btn-ghost:hover,
.pw-shero .btn-ghost:focus-visible,
.pw-shero a.btn-ghost:focus-visible,
.pw-shero button.btn-ghost:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: #67e8f9;
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(103,232,249,.45),
    0 10px 26px rgba(8,15,30,.45),
    0 0 32px rgba(103,232,249,.22);
  outline: none;
}
.pw-shero .btn-ghost:active,
.pw-shero a.btn-ghost:active { transform: translateY(0); }

/* CTA STRIP — inverted card on cyan gradient. Stays on its own scale. */
.pw-cta-strip .btn-pw,
.pw-cta-strip a.btn-pw {
  background: #fff;
  color: var(--pw-dark);
  border-color: #fff;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.pw-cta-strip .btn-pw::before,
.pw-cta-strip a.btn-pw::before {
  background: linear-gradient(115deg,
              transparent 30%,
              rgba(8,145,178,.16) 50%,
              transparent 70%);
}
.pw-cta-strip .btn-pw:hover,
.pw-cta-strip a.btn-pw:hover,
.pw-cta-strip .btn-pw:focus-visible,
.pw-cta-strip a.btn-pw:focus-visible {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #083344;                                  /* deepest navy → ~13:1 */
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(8,145,178,.35),
    0 10px 28px rgba(0,0,0,.22),
    0 0 0 4px rgba(255,255,255,.15);
}

/* Reduced-motion — kill shine + lift, keep color change */
@media (prefers-reduced-motion: reduce) {
  a.btn-pw, button.btn-pw, .btn-pw,
  .pw-shero .btn-ghost {
    transition: background-color .15s, color .15s, border-color .15s;
  }
  a.btn-pw:hover, button.btn-pw:hover, .btn-pw:hover,
  .pw-shero .btn-ghost:hover {
    transform: none;
  }
  a.btn-pw::before { display: none; }
}

/* ============================================================
   HYPE UPGRADES — device showcase, interactive demo, research card
   ============================================================ */

/* ── Spoke hero (dark, device-led variant) ───────────────── */
.pw-shero {
  position: relative;
  background: #06101e;
  color: #fff;
  padding: 140px 0 100px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pw-shero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%,   rgba(8,145,178,.42) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 90% 10%,  rgba(6,182,212,.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 50% 110%, rgba(12,74,110,.55) 0%, transparent 55%);
}
.pw-shero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.pw-shero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.pw-shero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(8,145,178,.18);
  border: 1px solid rgba(8,145,178,.4);
  color: #67e8f9;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 9999px;
  margin-bottom: 22px;
}
.pw-shero__eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 10px #22d3ee;
  animation: pw-pulse 2s ease-in-out infinite;
}
@keyframes pw-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.pw-shero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.06;
  margin: 0 0 22px;
}
.pw-shero__title em {
  font-style: normal;
  background: linear-gradient(135deg, #67e8f9 0%, #22d3ee 40%, #0ea5e9 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pw-shero__lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin: 0 0 28px;
  max-width: 540px;
}
.pw-shero__meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.pw-shero__meta-item {
  display: flex; flex-direction: column;
}
.pw-shero__meta-value {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
}
.pw-shero__meta-label {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ── Phone mockup (CSS-only iPhone bezel) ────────────────── */
.pw-shero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
}
.pw-phone {
  position: relative;
  width: 280px;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(155deg, #1f2937 0%, #0b0f14 100%);
  box-shadow:
    0 50px 100px rgba(0,0,0,.65),
    0 0 80px rgba(8,145,178,.35),
    inset 0 0 0 1px rgba(255,255,255,.08);
  animation: pw-float 5s ease-in-out infinite;
  z-index: 2;
}
.pw-phone::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 95px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 3;
}
.pw-phone__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  background: #000;
}
@keyframes pw-float {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%     { transform: translateY(-14px) rotate(-1.5deg); }
}

/* Floating glow orbs behind the phone */
.pw-shero__orb {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.pw-shero__orb--1 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(34,211,238,.22) 0%, transparent 65%);
  top: 15%; left: -10%;
  filter: blur(8px);
  animation: pw-orb-drift 8s ease-in-out infinite;
}
.pw-shero__orb--2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(8,145,178,.28) 0%, transparent 65%);
  bottom: 5%; right: 0%;
  filter: blur(6px);
  animation: pw-orb-drift 10s ease-in-out infinite reverse;
}
@keyframes pw-orb-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(20px,-30px) scale(1.1); }
}

/* ── Interactive breathing demo — mirrors the app aesthetic ──
   Minimal thin ring, dark violet/teal mood, floating colored
   particles. The ring scales with the breath; particles drift
   independently for a meditative, lived-in feel.            */
.pw-demo {
  margin: 56px 0;
  padding: 64px 36px 56px;
  background:
    radial-gradient(ellipse 60% 55% at 20% 20%, rgba(59,130,246,.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 50% at 85% 25%, rgba(20,184,166,.16) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 90%, rgba(139,92,246,.28) 0%, transparent 55%),
    linear-gradient(160deg, #0b0a1f 0%, #14132a 50%, #1a1530 100%);
  border-radius: var(--r-xl);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pw-demo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
}
.pw-demo__label {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 14px;
}
.pw-demo__title {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 8px;
  color: #fff;
}
.pw-demo__sub {
  position: relative;
  color: rgba(255,255,255,.55);
  margin: 0 0 44px;
  font-size: .95rem;
}

/* Stage */
.pw-demo__stage {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Thin breathing ring — the actual breath indicator */
.pw-demo__orb {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.55);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04),
    inset 0 0 40px rgba(255,255,255,.06),
    0 0 60px rgba(167,139,250,.18);
  animation: pw-demo-breath 9s ease-in-out infinite;
  transform-origin: center;
}
/* Phase scale: 0-2s inhale 1 → grows, 2-3s top-up → peak, 3-7s exhale → shrinks, 7-9s rest → small */
@keyframes pw-demo-breath {
  0%   { transform: scale(.55); opacity: .55; }
  22%  { transform: scale(1.05); opacity: .9; }
  33%  { transform: scale(1.25); opacity: 1; }
  78%  { transform: scale(.55); opacity: .55; }
  100% { transform: scale(.55); opacity: .55; }
}

/* Center label (matches the app's "MIN" / count text in the ring) */
.pw-demo__inner {
  position: absolute;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  color: rgba(255,255,255,.6);
  pointer-events: none;
}

/* Background concentric guides — very subtle */
.pw-demo__rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-demo__rings span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.pw-demo__rings span:nth-child(1) { width: 220px; height: 220px; }
.pw-demo__rings span:nth-child(2) { width: 280px; height: 280px; }

/* Floating colored particles — decorative, drift independently */
.pw-demo__particles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}
.pw-demo__particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(.5px);
  opacity: .85;
  will-change: transform;
}
/* Larger soft blobs (background-ish) */
.pw-demo__particle--teal {
  width: 86px; height: 86px;
  top: 4%; right: 6%;
  background: radial-gradient(circle at 35% 35%, rgba(45,212,191,.55), rgba(13,148,136,.35) 60%, transparent 75%);
  filter: blur(6px);
  animation: pw-drift-1 11s ease-in-out infinite;
}
.pw-demo__particle--blue {
  width: 110px; height: 110px;
  bottom: 18%; left: -4%;
  background: radial-gradient(circle at 40% 40%, rgba(96,165,250,.45), rgba(37,99,235,.3) 60%, transparent 75%);
  filter: blur(8px);
  animation: pw-drift-2 13s ease-in-out infinite;
}
/* Crisp small dots (foreground) */
.pw-demo__particle--violet {
  width: 12px; height: 12px;
  top: 38%; right: 4%;
  background: #a78bfa;
  box-shadow: 0 0 14px rgba(167,139,250,.7);
  animation: pw-drift-3 9s ease-in-out infinite;
}
.pw-demo__particle--coral {
  width: 14px; height: 14px;
  bottom: 22%; right: 24%;
  background: linear-gradient(135deg, #fb7185 0%, #f97316 100%);
  box-shadow: 0 0 16px rgba(251,113,133,.6);
  animation: pw-drift-4 10s ease-in-out infinite;
}
.pw-demo__particle--cyan {
  width: 6px; height: 6px;
  top: 24%; left: 22%;
  background: #67e8f9;
  box-shadow: 0 0 10px rgba(103,232,249,.8);
  animation: pw-drift-5 7s ease-in-out infinite;
}
.pw-demo__particle--lilac {
  width: 5px; height: 5px;
  bottom: 32%; left: 32%;
  background: #c4b5fd;
  box-shadow: 0 0 8px rgba(196,181,253,.8);
  animation: pw-drift-6 8s ease-in-out infinite;
}
@keyframes pw-drift-1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-14px,18px); } }
@keyframes pw-drift-2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-16px); } }
@keyframes pw-drift-3 { 0%,100% { transform: translate(0,0); }  50% { transform: translate(-8px,12px); } }
@keyframes pw-drift-4 { 0%,100% { transform: translate(0,0); }  50% { transform: translate(10px,-8px); } }
@keyframes pw-drift-5 { 0%,100% { transform: translate(0,0); }  50% { transform: translate(6px,10px); } }
@keyframes pw-drift-6 { 0%,100% { transform: translate(0,0); }  50% { transform: translate(-10px,-6px); } }
.pw-demo__phase {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  height: 28px;
  min-width: 220px;
  margin: 0 auto;
}
/* Each phase span owns its own slice of the 9s cycle.
   Windows (matching the orb animation): 0-2s · 2-3s · 3-7s · 7-9s.
   ~180ms fade in / out, hard 0% outside the slice — no overlap, no gap. */
.pw-demo__phase span {
  position: absolute; left: 0; right: 0;
  opacity: 0;
  will-change: opacity;
}
.pw-demo__phase span:nth-child(1) { animation: pw-phase-1 9s linear infinite; }   /* Inhale 1   · 0–2s   = 0–22.2% */
.pw-demo__phase span:nth-child(2) { animation: pw-phase-2 9s linear infinite; }   /* Top-up     · 2–3s   = 22.2–33.3% */
.pw-demo__phase span:nth-child(3) { animation: pw-phase-3 9s linear infinite; }   /* Long exhale· 3–7s   = 33.3–77.8% */
.pw-demo__phase span:nth-child(4) { animation: pw-phase-4 9s linear infinite; }   /* Rest       · 7–9s   = 77.8–100% */

@keyframes pw-phase-1 {
  0%, 100%     { opacity: 0; }
  2%, 20%      { opacity: 1; }
  22.2%        { opacity: 0; }
}
@keyframes pw-phase-2 {
  0%, 22.2%    { opacity: 0; }
  24%, 31%     { opacity: 1; }
  33.3%, 100%  { opacity: 0; }
}
@keyframes pw-phase-3 {
  0%, 33.3%    { opacity: 0; }
  35%, 76%     { opacity: 1; }
  77.8%, 100%  { opacity: 0; }
}
@keyframes pw-phase-4 {
  0%, 77.8%    { opacity: 0; }
  80%, 98%     { opacity: 1; }
  100%         { opacity: 0; }
}
.pw-demo__hint {
  position: relative;
  margin: 22px 0 0;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  font-style: italic;
}
@media (prefers-reduced-motion: reduce) {
  .pw-demo__orb,
  .pw-demo__rings span,
  .pw-demo__phase span,
  .pw-demo__particle,
  .pw-phone,
  .pw-shero__orb { animation: none !important; }
  .pw-demo__orb { transform: scale(1); opacity: .9; }
  .pw-demo__phase span:nth-child(3) { opacity: 1; }
}

/* ── Step cards (icon-led, replaces plain numbered list) ─── */
.pw-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.pw-step-card {
  position: relative;
  padding: 22px 20px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t), transform var(--t);
}
.pw-step-card:hover {
  border-color: var(--pw);
  transform: translateY(-3px);
}
.pw-step-card__num {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--text-3);
}
.pw-step-card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--pw-light);
  border: 1px solid #a5f3fc;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  color: var(--pw);
}
.pw-step-card__title {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
  line-height: 1.3;
}
.pw-step-card__desc {
  margin: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-2);
}

/* ── Research card (paper preview style) ─────────────────── */
.pw-research {
  margin: 32px 0;
  padding: 28px 32px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 22px;
  align-items: start;
  box-shadow: 0 4px 24px rgba(0,0,0,.04);
  transition: box-shadow var(--t), transform var(--t);
}
.pw-research:hover {
  box-shadow: 0 12px 36px rgba(8,145,178,.12);
  transform: translateY(-2px);
}
.pw-research__journal {
  width: 80px; height: 100px;
  background: linear-gradient(140deg, var(--pw-dark) 0%, var(--pw) 100%);
  border-radius: 8px;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 8px;
  position: relative;
  box-shadow: 0 4px 12px rgba(8,145,178,.25);
}
.pw-research__journal::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  pointer-events: none;
}
.pw-research__body { display: flex; flex-direction: column; gap: 8px; }
.pw-research__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pw);
}
.pw-research__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.pw-research__authors {
  font-size: .85rem;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}
.pw-research__meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 6px;
}
.pw-research__chip {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--pw-light);
  color: var(--pw-dark);
  border: 1px solid #a5f3fc;
  text-decoration: none !important;
}
.pw-research__chip--doi {
  background: #fff;
  border-color: var(--border);
  color: var(--text-2);
}

/* ── In-app context section (screenshot + copy) ──────────── */
.pw-inapp {
  margin: 56px 0 0;
  padding: 48px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pw-inapp__copy h2 {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.pw-inapp__copy p { color: var(--text-2); line-height: 1.7; }
.pw-inapp__features {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pw-inapp__features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .9375rem;
  color: var(--text);
  line-height: 1.5;
}
.pw-inapp__features li::before {
  content: '';
  width: 18px; height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  background: var(--pw-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='%230891b2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.pw-inapp__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(8,145,178,.12) 0%, transparent 60%),
    linear-gradient(160deg, #f0fdfa 0%, #ecfeff 100%);
  border-radius: var(--r-xl);
  min-height: 460px;
}
.pw-inapp__phone {
  width: 220px;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(155deg, #1f2937 0%, #0b0f14 100%);
  box-shadow:
    0 30px 60px rgba(0,0,0,.25),
    0 0 60px rgba(8,145,178,.22);
  position: relative;
}
.pw-inapp__phone::before {
  content: '';
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 22px;
  background: #000;
  border-radius: 12px; z-index: 2;
}
.pw-inapp__phone img {
  display: block; width: 100%; height: auto;
  border-radius: 26px;
  background: #000;
}

/* ── Pillar (category) page — group headers + protocol rows ── */
.pw-group {
  margin: 56px 0 0;
}
.pw-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.pw-group__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
}
.pw-group__count {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pw-dark);
  background: var(--pw-light);
  border: 1px solid #a5f3fc;
  padding: 4px 10px;
  border-radius: 9999px;
}
.pw-rowlist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pw-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--t), padding var(--t);
}
.pw-row:hover {
  background: linear-gradient(90deg, #f0fdfa 0%, transparent 100%);
  padding-left: 12px;
  padding-right: 12px;
}
.pw-row__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
  letter-spacing: -.015em;
}
.pw-row:hover .pw-row__title { color: var(--pw-dark); }
.pw-row__desc {
  margin: 0;
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.55;
}
.pw-row__meta {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .04em;
  white-space: nowrap;
  align-self: center;
}
.pw-row__arrow {
  display: inline-block;
  margin-left: 8px;
  color: var(--pw);
  transition: transform var(--t);
}
.pw-row:hover .pw-row__arrow { transform: translateX(4px); }

/* Inert variant — used for catalogue rows whose spoke page doesn't exist yet.
   No hover lift, no arrow movement, neutral cursor. Still readable as content. */
.pw-row--inert {
  cursor: default;
}
.pw-row--inert:hover {
  background: none;
  padding-left: 0;
  padding-right: 0;
}
.pw-row--inert:hover .pw-row__title { color: var(--text); }
.pw-row--inert:hover .pw-row__arrow { transform: none; }
.pw-row--inert .pw-row__arrow { display: none; }

/* ── Comparison pages — table + verdict ──────────────────── */
.pw-disclosure {
  margin: 24px 0 36px;
  padding: 16px 22px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid var(--text-3);
  border-radius: 0 var(--r-md, 12px) var(--r-md, 12px) 0;
  font-size: .875rem;
  color: var(--text-2);
  line-height: 1.55;
}
.pw-disclosure strong { color: var(--text); }

.pw-verdict {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.pw-verdict__card {
  padding: 22px 24px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--bg);
}
.pw-verdict__label {
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 6px;
}
.pw-verdict__card--us .pw-verdict__label { color: var(--pw); }
.pw-verdict__card--them .pw-verdict__label { color: var(--text-3); }
.pw-verdict__head {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 10px;
}
.pw-verdict__p {
  font-size: .9375rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}

.pw-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 32px 0;
  font-size: .9375rem;
}
.pw-compare thead th {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  padding: 16px 18px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8125rem;
  letter-spacing: -.01em;
  color: var(--text);
  border-bottom: 1.5px solid var(--border);
}
.pw-compare thead th:first-child {
  background: #fff;
  color: var(--text-3);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pw-compare thead th.pw-compare__us {
  background: linear-gradient(180deg, var(--pw-light) 0%, #ecfeff 100%);
  color: var(--pw-dark);
  border-bottom-color: var(--pw);
}
.pw-compare tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-2);
  line-height: 1.55;
}
.pw-compare tbody tr:last-child td { border-bottom: none; }
.pw-compare tbody td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  font-size: .9375rem;
  background: #fafafa;
  border-right: 1px solid var(--border);
  width: 28%;
}
.pw-compare tbody td.pw-compare__us {
  background: #f0fdfa;
  border-left: 1px solid #a5f3fc;
  border-right: 1px solid #a5f3fc;
  color: var(--text);
}

@media (max-width: 700px) {
  .pw-verdict { grid-template-columns: 1fr; }
  .pw-compare thead th, .pw-compare tbody td { padding: 12px; font-size: .875rem; }
  .pw-compare tbody td:first-child { width: 38%; }

  .pw-compare--privacy {
    display: block;
    border: 0;
    overflow: visible;
    background: transparent;
  }
  .pw-compare--privacy thead { display: none; }
  .pw-compare--privacy tbody { display: grid; gap: 14px; }
  .pw-compare--privacy tbody tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  }
  .pw-compare--privacy tbody td,
  .pw-compare--privacy tbody td:first-child {
    display: grid;
    grid-template-columns: minmax(88px, 32%) 1fr;
    gap: 12px;
    width: auto;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    font-size: .82rem;
  }
  .pw-compare--privacy tbody td:first-child {
    display: block;
    padding: 15px 14px;
    color: var(--text);
    background: #f8fafc;
    font-size: .95rem;
    line-height: 1.35;
  }
  .pw-compare--privacy tbody td:last-child { border-bottom: 0; }
  .pw-compare--privacy tbody td:not(:first-child)::before {
    content: attr(data-label);
    align-self: start;
    color: var(--text-3);
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
  }
  .pw-compare--privacy tbody td:nth-child(2)::before { content: "PulseWave"; }
  .pw-compare--privacy tbody td:nth-child(3)::before { content: "Insight Timer"; }
  .pw-compare--privacy tbody td:nth-child(4)::before { content: "Headspace"; }
  .pw-compare--privacy tbody td:nth-child(5)::before { content: "Calm"; }
  .pw-compare--privacy tbody td:nth-child(6)::before { content: "Breathwrk"; }
  .pw-compare--privacy tbody td.pw-compare__us {
    border: 0;
    border-bottom: 1px solid #a5f3fc;
    background: #f0fdfa;
  }
}

/* ── Medical / wellness disclaimer block ─────────────────── */
.pw-medical {
  margin: 56px 0 0;
  padding: 24px 28px;
  background: #fff8f1;
  border: 1.5px solid #f5d9b5;
  border-left: 4px solid #d97706;
  border-radius: var(--r-lg);
  color: #57350a;
}
.pw-medical__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #b45309;
  margin: 0 0 10px;
}
.pw-medical__label::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M10 2L2 18h16L10 2z' stroke='%23b45309' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10 8v4' stroke='%23b45309' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.5' r='.9' fill='%23b45309'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.pw-medical__head {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #5a3413;
  margin: 0 0 10px;
}
.pw-medical p {
  font-size: .9375rem;
  line-height: 1.65;
  color: #6b3d18;
  margin: 0 0 10px;
}
.pw-medical p:last-child { margin-bottom: 0; }
.pw-medical strong { color: #4a2a0c; }
.pw-medical a { color: #b45309; text-decoration: underline; }
.pw-medical a:hover { color: #92400e; }
.pw-medical ul {
  margin: 8px 0 12px;
  padding-left: 20px;
  color: #6b3d18;
  font-size: .9375rem;
  line-height: 1.55;
}
.pw-medical ul li { margin: 4px 0; }

/* Crisis-resources sub-block (for AI / mental-health page) */
.pw-crisis {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f5d9b5;
}
.pw-crisis__head {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 800;
  color: #5a3413;
  margin: 0 0 8px;
}

/* ── Mobile adjustments ──────────────────────────────────── */
@media (max-width: 860px) {
  .pw-shero { padding: 110px 0 60px; }
  .pw-shero__inner { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .pw-shero__visual { min-height: 480px; }
  .pw-phone { width: 240px; }
  .pw-inapp { grid-template-columns: 1fr; gap: 32px; }
  .pw-inapp__visual { min-height: 380px; padding: 24px; }
  .pw-inapp__phone { width: 200px; }
  .pw-research { grid-template-columns: 1fr; padding: 22px; }
  .pw-research__journal { width: 100%; height: 60px; }
  .pw-demo { padding: 40px 22px; }
}
@media (max-width: 640px) {
  .pw-crumb { padding-top: 90px; }
  .pw-spoke-hero { padding: 24px 0 40px; }
  .pw-prose { padding: 36px 0; font-size: 1rem; }
  .pw-prose h2 { font-size: 1.375rem; }
  .pw-quick-answer { padding: 20px; }
  .pw-cta-strip { padding: 32px 22px; }
  .pw-shero__title { font-size: 2rem; }
  .pw-demo__stage { width: 180px; height: 180px; }
}
