/* =========================
   Breather · homepage
   ========================= */

.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.hero-grid > * { min-width: 0; }

.hero-text { max-width: 580px; }

.hero-headline {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 1.25rem 0 1.5rem;
  max-width: 14ch;
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

/* hero visual: session card sitting on warm glow */
.hero-visual {
  position: relative;
  padding: 2rem;
  isolation: isolate;
  display: flex;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 65% at 72% 32%, rgba(244, 217, 168, 0.85), transparent 70%),
    radial-gradient(45% 55% at 20% 80%, rgba(236, 106, 75, 0.18), transparent 70%);
  filter: blur(6px);
  animation: glow-drift 14s ease-in-out infinite;
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-6px, 8px) scale(1.03); }
}

.session-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow:
    0 1px 2px rgba(35, 33, 32, 0.04),
    0 24px 60px -24px rgba(35, 33, 32, 0.18);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.session-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.session-time {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
  font-feature-settings: "tnum";
}

.session-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(236, 106, 75, 0.1);
  color: var(--coral);
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 500;
  flex-shrink: 0;
}

.session-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.3); }
}

.session-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
  font-variation-settings: "opsz" 96, "SOFT" 50;
}

.session-body {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.session-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.session-avatars { display: flex; }

.session-avatars span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  margin-left: -7px;
}

.session-avatars span:nth-child(1) { background: var(--coral); margin-left: 0; }
.session-avatars span:nth-child(2) { background: var(--ink); }
.session-avatars span:nth-child(3) { background: var(--mist); }
.session-avatars span:nth-child(4) { background: var(--coral-soft); color: var(--ink); }
.session-avatars .session-avatar-more {
  background: var(--paper-deep);
  color: var(--ink);
}

.session-join {
  font-size: 0.8rem;
  color: var(--coral);
  font-weight: 500;
  white-space: nowrap;
}

/* ---- hero stack: overlapping session card + breath widget with labels ---- */

.hero-stack {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 0.82;
}

.hero-card-frame {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-card-frame-session {
  top: 0;
  left: 0;
  z-index: 2;
  width: 58%;
}

.hero-card-frame-breath {
  bottom: 0;
  right: 0;
  z-index: 1;
  width: 52%;
}

.hero-card-label {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--coral);
  border-radius: var(--r-pill);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 6px 20px -10px rgba(35, 33, 32, 0.15);
}

.hero-card-frame-breath .hero-card-label {
  align-self: flex-end;
}

/* ---- breath widget (session mockup, used on homepage hero + desktop-app session section) ---- */

.breath-mock {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 24px 60px -24px rgba(35, 33, 32, 0.14);
}

.breath-meta {
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.75rem;
}

.breath-wave {
  display: block;
  width: 100%;
  height: auto;
}

.breath-phase {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.9rem;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-top: 0.9rem;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.breath-count {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--coral);
  text-align: center;
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
}

.breath-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.9rem;
  line-height: 1.45;
  font-variation-settings: "opsz" 96, "SOFT" 60;
}

/* Larger breath widget in the desktop-app session section (not cramped in a hero stack). */
.panel-pair .breath-mock {
  padding: 1.5rem 1.5rem 1.75rem;
}
.panel-pair .breath-mock .breath-meta {
  font-size: 0.7rem;
  margin-bottom: 0.85rem;
}
.panel-pair .breath-mock .breath-phase {
  font-size: 2.4rem;
  margin-top: 1.25rem;
}
.panel-pair .breath-mock .breath-count {
  font-size: 1.4rem;
  margin-top: 0.35rem;
}
.panel-pair .breath-mock .breath-tagline {
  font-size: 0.95rem;
  margin-top: 1.25rem;
}

/* ---- app notification card (hero + layer 2 visual) ---- */

.app-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow:
    0 1px 2px rgba(35, 33, 32, 0.04),
    0 24px 60px -24px rgba(35, 33, 32, 0.22);
  animation: float 6s ease-in-out infinite;
}
.app-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.app-icon {
  width: 34px;
  height: 34px;
  background: var(--coral);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-icon svg { width: 100%; height: 100%; }
.app-card-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.app-card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  font-weight: 500;
  margin-top: 0.3rem;
}
.app-card-line {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  font-variation-settings: "opsz" 96, "SOFT" 80;
}
.app-actions { display: flex; gap: 0.5rem; }
.app-btn {
  padding: 0.55rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
}
.app-btn-primary { background: var(--coral); color: var(--paper); }
.app-btn-ghost { color: var(--mist); }

/* ---- evidence banner ---- */

.evidence-band {
  padding: 1.5rem 0;
  background: var(--butter);
  margin: clamp(2rem, 4vw, 3rem) 0;
  position: relative;
  overflow: hidden;
}

.evidence-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 80% at 85% 50%, rgba(236, 106, 75, 0.08), transparent 70%);
  pointer-events: none;
}

.evidence-band-inner {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.evidence-band-inner p { margin: 0; }

.evidence-band-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  margin-right: 0.7rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.evidence-band a {
  color: var(--coral);
  font-weight: 500;
}

.evidence-band a:hover { color: var(--ink); }

/* ---- rhythm graphic ---- */

.rhythm-graphic {
  /* full width within container so it aligns with section-head */
}

.rhythm-row { margin-bottom: 0.75rem; }

.rhythm-caption {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.rhythm-dots {
  position: relative;
  height: 60px;
  border-bottom: 1px dashed var(--line-mid);
}

.rhythm-dots span {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 60px;
  background: var(--coral);
  border-radius: 2px;
}

.rhythm-dots span::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 16px;
  height: 16px;
  background: var(--coral);
  border-radius: 50%;
  opacity: 0.18;
}

.rhythm-bar {
  margin-top: 0.5rem;
  height: 36px;
  background: linear-gradient(90deg, var(--ink), #3a3533);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.rhythm-bar-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--paper);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rhythm-months {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.68rem;
  color: var(--mist);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .hero-text { max-width: 100%; }
  .hero-visual { padding: 1rem; }
  .session-card { max-width: 440px; }
}

@media (max-width: 720px) {
  /* unstack the hero mockups on narrow screens — vertical column, each full width */
  .hero-stack {
    aspect-ratio: auto;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .hero-stack .hero-card-frame {
    position: static;
    width: 100%;
  }
  .hero-stack .hero-card-frame-breath .hero-card-label {
    align-self: flex-start;
  }
}

@media (max-width: 600px) {
  .rhythm-months span:nth-child(even) { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn,
  .hero-ctas .btn-text {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .session-card, .app-card, .session-status-dot { animation: none; }
}

/* =========================
   homepage · two-rhythms pillars (visual)
   ========================= */

.pillar-with-visual {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.pillar-with-visual .pillar-label,
.pillar-with-visual .pillar-title,
.pillar-with-visual .pillar-body,
.pillar-with-visual .pillar-cta {
  padding-left: 2rem;
  padding-right: 2rem;
}

.pillar-with-visual .pillar-label {
  padding-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.pillar-with-visual .pillar-title {
  margin-bottom: 0.6rem;
}

.pillar-with-visual .pillar-body {
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

.pillar-with-visual .pillar-cta {
  padding-bottom: 1.75rem;
}

.pillar-visual {
  padding: 1.75rem 1rem;
  background: linear-gradient(160deg,
    rgba(244, 217, 168, 0.55) 0%,
    rgba(244, 217, 168, 0.15) 50%,
    rgba(236, 106, 75, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
}

.pillar-visual-app {
  background: linear-gradient(160deg,
    rgba(244, 217, 168, 0.35) 0%,
    rgba(236, 106, 75, 0.15) 60%,
    rgba(236, 106, 75, 0.04) 100%);
}

/* cards reused inside pillar visuals: no float, hover-lift instead */
.pillar-with-visual .session-card,
.pillar-with-visual .app-card {
  animation: none;
  transition: transform 0.35s ease;
}
.pillar-with-visual:hover .session-card,
.pillar-with-visual:hover .app-card {
  transform: translateY(-3px);
}

/* pillar visuals with crossfading slides — grid-stack so container height follows tallest slide */
.pillar-visual-multi {
  padding: 0;
  display: grid;
  grid-template-areas: "slide";
  aspect-ratio: auto;
}

.pillar-visual-multi > .pillar-slide {
  grid-area: slide;
  padding: 1.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pillar-fade 10s ease-in-out infinite;
}

.pillar-visual-multi > .pillar-slide:nth-child(2) {
  animation-delay: -5s;
}

@keyframes pillar-fade {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

/* call mockup (video tiles) — used on live-sessions and homepage layer 1 */
.call-mock {
  background: #1f1d1c;
  border-radius: var(--r-lg);
  padding: 1rem;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.25);
  width: 100%;
}
.call-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
.call-tile {
  aspect-ratio: 16 / 10;
  background: #2a2826;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.call-tile-initials {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 0.8rem;
}
.call-tile-name {
  position: absolute;
  left: 0.4rem;
  bottom: 0.3rem;
  font-size: 0.6rem;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  max-width: calc(100% - 0.8rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.call-tile-host {
  background: linear-gradient(135deg, var(--coral), #c0563d);
  outline: 2px solid var(--butter);
  outline-offset: -2px;
}
.call-tile-host .call-tile-initials { background: rgba(255,255,255,0.15); }
.call-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.25rem 0.1rem;
  color: #d0cdca;
  font-size: 0.7rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.call-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #fff;
  font-weight: 500;
}
.call-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e55;
}
.call-bar-title { color: #fff; font-weight: 500; }

/* pillar context: smaller tile initials and tighter layout */
.pillar-slide .call-mock { max-width: 460px; }

/* live-sessions section uses bigger type in tiles */
.section > .container > .call-mock .call-tile-initials { width: 48px; height: 48px; font-size: 0.95rem; }
.section > .container > .call-mock .call-tile-name { font-size: 0.68rem; left: 0.5rem; bottom: 0.4rem; padding: 0.15rem 0.5rem; }
.section > .container > .call-mock .call-bar { padding: 0.7rem 0.4rem 0.2rem; font-size: 0.76rem; }
.section > .container > .call-mock .call-live::before { width: 8px; height: 8px; }

@media (max-width: 560px) {
  .call-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .pillar-visual-multi > .pillar-slide {
    animation: none;
  }
  .pillar-visual-multi > .pillar-slide:nth-child(2) {
    display: none;
  }
}
