.alphastrands-meditation-page .store-layout--catalog-only {
  padding-bottom: 2rem;
}

.alphastrands-meditation-page .app-shell {
  width: min(100vw, 52rem);
  max-width: min(100vw, 52rem);
}

.at-root {
  max-width: 42rem;
  margin: 0 auto;
}

/* Global `.section-heading p` / `.muted-copy` use light text for dark heroes — force readable dark copy on white card */
.alphastrands-meditation-page .legal-card .section-heading p,
.alphastrands-meditation-page .legal-card .muted-copy {
  color: #1a1a1a;
}

.alphastrands-meditation-page .legal-card .at-body-readable {
  color: #1a1a1a;
  font-size: 0.95rem;
  line-height: 1.55;
}

.alphastrands-meditation-page .legal-card .at-intro-copy {
  color: #1a1a1a;
}

.alphastrands-meditation-page .legal-card .at-session-phase-hint,
.alphastrands-meditation-page .legal-card .at-session-phase-meta,
.alphastrands-meditation-page .legal-card .at-session-bpm-line {
  color: #1a1a1a;
}

.alphastrands-meditation-page .legal-card .at-session-phase-meta {
  color: #3d5a73;
}

.alphastrands-meditation-page .legal-card .at-body-readable a {
  color: #0b57d0;
  text-decoration: underline;
}

.alphastrands-meditation-page .legal-card .at-body-readable a:hover {
  color: #084298;
}

.alphastrands-meditation-page .legal-card .at-body-readable strong {
  color: #000000;
  font-weight: 700;
}

.at-title {
  margin: 0;
}

.at-intro-figure {
  margin: 0.85rem 0 1rem;
  text-align: center;
}

.at-intro-image {
  display: block;
  width: min(100%, 16rem);
  max-height: 16rem;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 0.75rem;
  box-shadow: 0 10px 28px rgba(23, 61, 94, 0.18);
}

.at-step {
  margin-top: 1.25rem;
}

.at-step-heading {
  margin: 0 0 0.5rem;
  font-family: Cinzel, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #173d5e;
}

.at-step-lead {
  margin: 0 0 1rem;
}

.at-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* Global .secondary-button is white-on-ghost for dark panels — unreadable on white .legal-card. */
.alphastrands-meditation-page .at-actions .primary-button,
.alphastrands-meditation-page .at-actions .secondary-button {
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  max-width: none;
}

.alphastrands-meditation-page .at-actions .secondary-button {
  color: #173d5e;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f2fa 55%, #dceaf5);
  border: 2px solid rgba(23, 61, 94, 0.38);
  box-shadow:
    0 3px 0 rgba(23, 61, 94, 0.12),
    0 6px 14px rgba(23, 61, 94, 0.08);
}

.alphastrands-meditation-page .at-actions .secondary-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffffff 0%, #eef6fc 55%, #e2eef8);
  border-color: rgba(23, 61, 94, 0.5);
}

.alphastrands-meditation-page .at-actions .secondary-button:active:not(:disabled) {
  transform: translateY(2px);
  filter: brightness(0.97);
}

.alphastrands-meditation-page .at-actions .secondary-button:focus-visible {
  outline: 2px solid rgba(100, 160, 200, 0.95);
  outline-offset: 2px;
}

.at-finger-hint {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border-left: 4px solid rgba(23, 61, 94, 0.65);
  background: rgba(207, 234, 255, 0.55);
}

.at-finger-hint-title {
  margin: 0 0 0.45rem;
  font-family: Cinzel, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #173d5e;
}

.at-finger-hint-body {
  margin: 0;
  line-height: 1.55;
}

.at-finger-hint-body strong {
  color: #102a42;
}

.at-saved-baseline-banner {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(23, 61, 94, 0.22);
  background: rgba(255, 251, 235, 0.85);
  box-shadow: 0 4px 14px rgba(23, 61, 94, 0.06);
}

.at-saved-baseline-banner.hidden {
  display: none;
}

.at-saved-baseline-title {
  margin: 0 0 0.5rem;
  font-family: Cinzel, serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #173d5e;
}

.at-saved-baseline-copy {
  margin: 0 0 0.75rem;
}

.at-saved-baseline-copy strong {
  font-size: 1.15rem;
  color: #102a42;
}

.alphastrands-meditation-page .at-actions--saved-banner {
  margin-top: 0.65rem;
}

.at-label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.at-result-manual-form {
  margin-top: 0.75rem;
}

.at-result-manual-form .at-actions {
  margin-top: 1rem;
}

.at-bpm-input {
  max-width: 8rem;
}

.at-error {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: rgba(220, 80, 80, 0.12);
  color: #8b1a1a;
  font-size: 0.95rem;
}

.at-error.hidden {
  display: none;
}

.at-camera-stage {
  position: relative;
  margin: 1rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a12;
  aspect-ratio: 4 / 3;
  max-height: 320px;
}

.at-measure-timer-wrap {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  min-width: min(88%, 220px);
  padding: 12px 18px 14px;
  text-align: center;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.at-measure-timer-wrap.hidden {
  display: none;
}

.at-measure-timer-display {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2.75rem, 11vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.at-measure-timer-label {
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.at-camera-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.at-camera-ring {
  position: absolute;
  inset: 12%;
  border: 3px solid rgba(120, 200, 255, 0.75);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(100, 180, 255, 0.35);
}

.at-camera-ring.hidden {
  display: none;
}

.at-camera-ring.at-camera-ring--active {
  animation: at-pulse-ring 1.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .at-camera-ring.at-camera-ring--active {
    animation: none;
    opacity: 0.85;
  }
}

@keyframes at-pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

.at-camera-canvas {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.at-measure-status {
  min-height: 1.4em;
  margin: 0.5rem 0 0;
  font-weight: 500;
  color: #1a1a1a;
}

.at-bpm-display {
  margin: 0.75rem 0;
  font-size: 1.25rem;
}

.at-bpm-display strong {
  font-size: 2rem;
  font-weight: 700;
  color: #173d5e;
}

.at-bpm-display--confirmed strong {
  font-size: 2.25rem;
}

.at-meditation-stub {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border-left: 4px solid rgba(100, 160, 200, 0.85);
  background: rgba(207, 234, 255, 0.35);
}

.at-meditation-stub-heading {
  margin: 0 0 0.5rem;
  font-family: Cinzel, serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #173d5e;
}

.at-step.hidden {
  display: none;
}

/* Primary / secondary as links inside white cards (setup + session) */
.alphastrands-meditation-page .at-actions .at-begin-session-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
}

.alphastrands-meditation-page .at-actions .at-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
  flex: 1 1 140px;
  width: auto;
  min-width: 0;
  max-width: none;
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  color: #173d5e;
  background: linear-gradient(180deg, #f7fbff 0%, #e8f2fa 55%, #dceaf5);
  border: 2px solid rgba(23, 61, 94, 0.38);
  box-shadow:
    0 3px 0 rgba(23, 61, 94, 0.12),
    0 6px 14px rgba(23, 61, 94, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition:
    transform 0.08s ease,
    filter 0.08s ease;
}

.alphastrands-meditation-page .at-actions .at-secondary-link:hover {
  background: linear-gradient(180deg, #ffffff 0%, #eef6fc 55%, #e2eef8);
  border-color: rgba(23, 61, 94, 0.5);
}

.alphastrands-meditation-page .at-actions .at-secondary-link:active {
  transform: translateY(2px);
  filter: brightness(0.97);
}

.alphastrands-meditation-page .at-actions .at-secondary-link:focus-visible {
  outline: 2px solid rgba(100, 160, 200, 0.95);
  outline-offset: 2px;
}

.at-actions--confirmed {
  margin-bottom: 0.5rem;
}

/* Session page */
.at-session-panel.hidden {
  display: none;
}

.at-session-bpm-line {
  margin: 0 0 1rem;
  font-weight: 600;
}

.at-session-bpm-line strong {
  font-size: 1.35rem;
  color: #173d5e;
}

.at-session-block {
  margin-top: 0.5rem;
}

.at-session-timer {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, rgba(23, 61, 94, 0.06), rgba(23, 61, 94, 0.1));
  border: 1px solid rgba(23, 61, 94, 0.18);
}

.at-session-timer-display {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #173d5e;
}

.at-session-phase-title {
  margin: 0 0 0.5rem;
  font-family: Cinzel, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #173d5e;
}

.at-session-phase-hint {
  margin: 0 0 0.75rem;
}

.at-session-phase-meta {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #3d5a73;
}

.at-session-done .at-step-heading {
  margin-top: 0;
}

/* Wider readable column for Strands article */
.alphastrands-session-page .at-root--strands {
  max-width: 46rem;
}

.at-session-run-wrap {
  margin-top: 0.5rem;
}

.at-session-youtube {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(23, 61, 94, 0.04), rgba(23, 61, 94, 0.08));
  border: 1px solid rgba(23, 61, 94, 0.16);
}

.at-session-youtube .at-step-heading,
.at-session-youtube .at-body-readable,
.at-session-youtube .at-body-readable a {
  color: #173d5e;
}

.at-session-youtube .at-body-readable a {
  color: #0b57d0;
  text-decoration: underline;
}

.at-session-youtube .at-body-readable a:hover {
  color: #084298;
}

.at-session-youtube-lead {
  margin: 0 0 0.75rem;
  color: #1a1a1a;
}

.at-session-youtube-fallback {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: #3d5a73;
}

.at-session-youtube-fallback a {
  color: #0b57d0;
}

/* ~half the height of the previous 9:16 portrait box; 16:9 fits YouTube thumbnails */
.at-youtube-embed {
  position: relative;
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  min-height: 7.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0a0a0f;
  box-shadow: 0 10px 32px rgba(23, 61, 94, 0.2);
}

.at-youtube-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.at-youtube-poster:hover .at-youtube-play-btn,
.at-youtube-poster:focus-visible .at-youtube-play-btn {
  filter: brightness(1.1);
  transform: translate(-50%, -50%) scale(1.05);
}

.at-youtube-poster:focus-visible {
  outline: 3px solid rgba(100, 160, 200, 0.85);
  outline-offset: 2px;
}

.at-youtube-thumb {
  position: absolute;
  inset: 0;
  display: block;
  background-color: #1a1a1a;
  background-image: url("https://i.ytimg.com/vi/ZKf2E-neWqk/hqdefault.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.at-youtube-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 4.25rem;
  height: 3rem;
  margin: 0;
  border: 0;
  border-radius: 0.65rem;
  background: #e62117;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}

.at-youtube-play-btn::after {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.95rem;
  border-color: transparent transparent transparent #ffffff;
}

.at-youtube-iframe {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.at-youtube-embed--playing .at-youtube-poster {
  display: none;
}

.at-youtube-embed--playing .at-youtube-iframe {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

.at-session-run-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 1.25rem;
  padding: 0.75rem 0 1rem;
  background: linear-gradient(180deg, #ffffff 70%, rgba(255, 255, 255, 0.92) 100%);
  border-bottom: 1px solid rgba(23, 61, 94, 0.12);
}

.at-session-timer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.at-session-run-sticky .at-session-timer {
  margin-top: 0;
  flex: 0 0 auto;
}

.at-actions--session-end {
  margin: 0;
  flex: 1 1 8rem;
}

.at-actions--session-end .secondary-button {
  width: 100%;
  min-height: 48px;
}

.at-session-alpha-check {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(23, 61, 94, 0.05), rgba(23, 61, 94, 0.1));
  border: 1px solid rgba(23, 61, 94, 0.2);
  scroll-margin-top: 0.75rem;
}

.at-session-alpha-check.hidden {
  display: none;
}

.at-session-alpha-result.hidden {
  display: none;
}

.at-session-alpha-measure.hidden {
  display: none;
}

/* AlphaStrands long-read */
.at-strands-manifesto {
  padding: 0.5rem 0 2rem;
  scroll-margin-top: 0.5rem;
}

.at-strands-title {
  margin: 0 0 0.35rem;
  font-family: Cinzel, serif;
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  font-weight: 700;
  color: #102a42;
  line-height: 1.25;
}

.at-strands-title--session {
  font-size: clamp(1.1rem, 4vw, 1.35rem);
}

.at-strands-session-lead {
  margin: 0 0 1rem;
}

.at-strands-manifesto--intro {
  padding-top: 0;
}

.at-actions--intro-link {
  margin-top: 1rem;
}

.at-actions--intro-nav {
  margin-top: 2rem;
}

.at-strands-subtitle {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: #173d5e;
  line-height: 1.45;
}

.at-strands-h3 {
  margin: 1.35rem 0 0.5rem;
  font-family: Cinzel, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #173d5e;
}

.at-strands-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
  color: #1a1a1a;
  line-height: 1.55;
}

.at-strands-list li {
  margin-bottom: 0.45rem;
}

.at-strands-ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
  color: #1a1a1a;
  line-height: 1.55;
}

.at-strands-ol > li {
  margin-bottom: 0.85rem;
}

.at-strands-sublist {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}

.at-strands-sublist li {
  margin-bottom: 0.25rem;
}

.at-strands-closing-quote {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border-left: 4px solid rgba(100, 160, 200, 0.85);
  background: rgba(207, 234, 255, 0.35);
  font-style: italic;
  font-weight: 600;
  color: #102a42;
}
