/* MindRelax — Design Tokens & Rich UI System */

:root {
  --color-bg: #f8fafc;
  --color-surface: rgba(255, 255, 255, 0.88);
  --color-surface-solid: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-border: #e2e8f0;
  --color-border-glow: rgba(13, 148, 136, 0.25);
  
  --color-primary: #0d9488;
  --color-primary-hover: #0f766e;
  --color-primary-light: #ccfbf1;
  --color-primary-contrast: #ffffff;

  --color-accent-blue: #0284c7;
  --color-accent-blue-light: #e0f2fe;
  --color-accent-purple: #7c3aed;
  --color-accent-purple-light: #ede9fe;
  --color-accent-amber: #d97706;
  --color-accent-amber-light: #fef3c7;
  --color-accent-rose: #e11d48;
  --color-accent-rose-light: #ffe4e6;

  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-text-light: #94a3b8;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 16px -2px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 25px rgba(13, 148, 136, 0.22);

  --max-w: 1200px;
  --max-w-narrow: 820px;
}

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: var(--color-primary-hover);
}

/* Cursor Follower (Desktop Only) */
.cursor-follower-ring {
  position: fixed;
  top: -24px;
  left: -24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(13, 148, 136, 0.45);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, transform 0.04s linear;
  will-change: transform;
}

.cursor-follower-dot {
  position: fixed;
  top: -4px;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  pointer-events: none;
  z-index: 10000;
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.8);
  will-change: transform;
}

.cursor-follower-ring.cursor-hover {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  border-color: rgba(99, 102, 241, 0.7);
  background-color: rgba(99, 102, 241, 0.06);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0d9488, #6366f1);
  z-index: 999;
  transition: width 0.1s linear;
}

/* Accessible Skip Link & Focus States */
.skip-link {
  position: absolute;
  top: -50px;
  left: 10px;
  background: var(--color-primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
  font-weight: 600;
}

.skip-link:focus {
  top: 10px;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.lead {
  font-size: 1.18rem;
  color: var(--color-text);
  line-height: 1.65;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  max-width: var(--max-w-narrow);
}

/* Site Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.brand-logo-glow {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.35);
  transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo-glow {
  transform: rotate(5deg) scale(1.05);
}

.brand-name {
  background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--color-text-light);
  border-left: 1px solid var(--color-border);
  padding-left: 0.85rem;
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Soundscape Ambient Widget */
.soundscape-widget {
  position: relative;
}

.soundscape-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.soundscape-toggle-btn:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
}

.soundscape-toggle-btn.playing {
  background: linear-gradient(135deg, #0d9488, #0284c7);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.sound-wave-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.sound-wave-icon .bar {
  width: 2.5px;
  background: currentColor;
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.soundscape-toggle-btn.playing .bar-1 {
  animation: soundWave 0.8s ease-in-out infinite alternate;
}
.soundscape-toggle-btn.playing .bar-2 {
  animation: soundWave 0.6s ease-in-out 0.2s infinite alternate;
}
.soundscape-toggle-btn.playing .bar-3 {
  animation: soundWave 0.7s ease-in-out 0.4s infinite alternate;
}

@keyframes soundWave {
  0% { height: 4px; }
  100% { height: 14px; }
}

.soundscape-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  width: 260px;
  background-color: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  z-index: 200;
}

.soundscape-dropdown.active {
  display: block;
  animation: fadeInDown 0.15s ease-out;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.soundscape-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.soundscape-badge {
  font-size: 0.7rem;
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.sound-buttons-grid {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.sound-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.sound-mode-btn:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-hover);
}

.sound-mode-btn.active {
  background: #0d9488;
  color: #ffffff;
}

.sound-volume-control {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sound-volume-control input[type="range"] {
  flex-grow: 1;
  accent-color: var(--color-primary);
}

/* Nav Links */
.primary-nav .nav-list {
  display: flex;
  list-style: none;
  gap: 0.75rem;
}

.nav-link {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
}

/* Safety Notice Banner */
.safety-banner {
  background: #fffbeb;
  border-bottom: 1px solid #fef3c7;
  padding: 0.55rem 0;
  font-size: 0.85rem;
  color: #92400e;
}

.safety-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.safety-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.safety-icon {
  stroke: #d97706;
  flex-shrink: 0;
}

.safety-link {
  color: #b45309;
  font-weight: 600;
  text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 0.85rem 0;
  background: rgba(241, 245, 249, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--color-text-muted);
}

.breadcrumb-separator {
  color: var(--color-text-light);
  margin-left: 0.4rem;
}

.breadcrumb-item.current span {
  color: var(--color-text);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.4);
  color: #ffffff;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(13, 148, 136, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--color-border);
  color: var(--color-text);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-fullwidth {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(204, 251, 241, 0.8);
  color: var(--color-primary-hover);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0d9488;
  box-shadow: 0 0 8px #0d9488;
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-badge-private {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-weight: 600;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 850;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #0f172a 30%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: transform 0.2s ease, color 0.2s ease;
}

.feature-pill:hover {
  transform: translateY(-2px);
  color: var(--color-text);
}

/* Hero Glass Pod */
.hero-glass-pod {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(13, 148, 136, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card-icon-pulse {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--color-primary);
  opacity: 0.4;
  animation: pulseExpand 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

.pulse-ring-2 {
  animation-delay: 1.5s;
}

@keyframes pulseExpand {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
  z-index: 2;
}

.pod-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.pod-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.pod-footer-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}

/* Mood Compass Section */
.section-mood {
  padding: 2.5rem 0 3.5rem;
}

.mood-widget-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.mood-chips-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.mood-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  background: var(--color-surface-solid);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.mood-chip:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  color: var(--color-primary-hover);
}

.mood-chip.selected {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.mood-chip-emoji {
  font-size: 1.25rem;
}

.mood-recommendation-box {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f0fdfa 0%, #ede9fe 100%);
  border: 1px solid #99f6e4;
  animation: slideFadeIn 0.3s ease;
}

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections & Cards */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(248, 250, 252, 0.75);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: 2rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 2rem;
}

.cards-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.cards-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* 3D Tilt Cards */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.4);
}

/* Alpeniq-style light sheen effect across cards */
.card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -80%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 80%
  );
  transform: rotate(25deg) translateX(-100%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

[data-theme="dark"] .card::after {
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 80%
  );
}

.card:hover::after {
  transform: rotate(25deg) translateX(520%);
  opacity: 1;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--color-surface-muted);
  color: var(--color-text-muted);
  margin-bottom: 0.85rem;
  align-self: flex-start;
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.card-title a {
  color: var(--color-text);
}

.card-title a:hover {
  color: var(--color-primary);
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.card-features-mini {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mini-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.mini-feature-item .check-icon {
  color: var(--color-primary);
  font-weight: 800;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.duration-badge {
  color: var(--color-text-light);
  font-weight: 500;
}

.card-link {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Topic Chips */
.topics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.topic-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.topic-chip:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
  transform: translateY(-2px);
}

/* Interactive Breathing Box */
.breathing-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.breathing-visual-container {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.breathing-circle-aura {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, rgba(99, 102, 241, 0) 70%);
  animation: auraPulse 6s infinite alternate ease-in-out;
}

@keyframes auraPulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 0.8; }
}

.breathing-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #99f6e4 0%, #0d9488 60%, #0f766e 100%);
  box-shadow: 0 0 45px rgba(13, 148, 136, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  transition: transform 4s ease-in-out;
  transform: scale(1);
  z-index: 2;
  user-select: none;
}

.breathing-instruction {
  font-size: 1.65rem;
  font-weight: 750;
  color: var(--color-text);
  margin-top: 1.5rem;
  min-height: 2.5rem;
  transition: color 0.3s ease;
}

.breathing-timer {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.breathing-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pattern-selector {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pattern-btn {
  background-color: var(--color-surface-muted);
  border: 1.5px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pattern-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

/* Grounding Exercise Interactive */
.grounding-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.grounding-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 0.6rem;
}

.grounding-step-indicator {
  flex: 1;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  background-color: var(--color-surface-muted);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.grounding-step-indicator.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary-hover);
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.grounding-step-indicator.completed {
  background-color: #ecfdf5;
  color: #065f46;
}

.grounding-step-card {
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.grounding-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.grounding-item-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--color-surface-solid);
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}

.grounding-item-row:focus-within {
  border-color: var(--color-primary);
}

.grounding-item-row input[type="checkbox"] {
  width: 1.3rem;
  height: 1.3rem;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.grounding-item-row input[type="text"] {
  flex-grow: 1;
  border: none;
  font-size: 0.95rem;
  outline: none;
  color: var(--color-text);
  background: transparent;
}

/* Memory Match 3D Interactive Board */
.memory-game-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.memory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.memory-stats {
  display: flex;
  gap: 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  max-width: 580px;
  margin: 0 auto;
  perspective: 1000px;
}

.memory-card {
  aspect-ratio: 1;
  background-color: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  user-select: none;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.memory-card:hover:not(.flipped):not(.matched) {
  border-color: var(--color-primary);
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.memory-card.flipped {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transform: rotateY(180deg);
}

.memory-card.matched {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #10b981;
  cursor: default;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* Quiz Interactive Player */
.quiz-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.quiz-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background-color: var(--color-surface-muted);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0d9488, #6366f1);
  transition: width 0.3s ease;
}

.quiz-options-group {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin: 1.5rem 0;
}

.quiz-option-label {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  padding: 1.25rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--color-surface-solid);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.quiz-option-label:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
  transform: translateX(4px);
}

.quiz-option-label.selected {
  border-color: var(--color-primary);
  background-color: #f0fdfa;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.18);
}

.quiz-option-radio {
  margin-top: 0.25rem;
  accent-color: var(--color-primary);
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.quiz-result-card {
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
  border: 1.5px solid #99f6e4;
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-md);
}

.quiz-tier-badge {
  display: inline-block;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.quiz-result-list {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Article Reader */
.article-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-top: 0.85rem;
}

.article-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
}

.article-content h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-callout {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 1.65rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-sm);
}

.article-callout-title {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--color-primary-hover);
  margin-bottom: 0.75rem;
}

.practical-steps-list {
  list-style: none;
}

.practical-steps-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.95rem;
}

.practical-steps-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 850;
}

.references-section {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.references-list {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.references-list li {
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

/* Video Facade Component */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.video-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-facade-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0f172a;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.video-facade-container:hover .video-thumbnail {
  opacity: 1;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.video-facade-container:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 0 25px rgba(13, 148, 136, 0.7);
}

.video-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-channel {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.video-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.video-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  flex-grow: 1;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.video-privacy-badge {
  font-size: 0.75rem;
  color: var(--color-text-light);
  background-color: var(--color-surface-muted);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Footer */
.site-footer {
  background-color: #0b1120;
  color: #cbd5e1;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid #1e293b;
  margin-top: 4.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.75rem;
  margin-bottom: 3.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-brand-title {
  color: #ffffff;
}

.footer-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.safety-box {
  background-color: rgba(30, 41, 59, 0.7);
  border-left: 3px solid #f59e0b;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: #cbd5e1;
}

.safety-text {
  margin-bottom: 0.5rem;
}

.safety-emergency {
  color: #fde68a;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  text-decoration: none;
}

.privacy-control-widget {
  margin-top: 1.5rem;
  background-color: rgba(30, 41, 59, 0.6);
  padding: 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
}

.privacy-control-title {
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.privacy-control-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.status-msg {
  display: block;
  font-size: 0.8rem;
  color: #34d399;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* Sleep Timer Select */
.sleep-timer-select {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}

/* Instant Micro-Resets Bar */
.section-micro-resets {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.micro-resets-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.micro-resets-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}

.micro-resets-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-micro-reset {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: var(--color-surface-solid);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-micro-reset:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary-hover);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Daily Intention Deck */
.daily-intention-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md), 0 0 30px rgba(13, 148, 136, 0.08);
}

.daily-intention-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.daily-intention-quote {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
  font-style: italic;
  transition: all 0.25s ease;
}

/* Thought Organizer Styles */
.particle-overlay-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
}

.thought-organizer-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.thought-input-panel {
  background: var(--color-surface-muted);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.thought-form-label {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.thought-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  background: var(--color-surface-solid);
  margin-bottom: 1rem;
  transition: border-color 0.2s ease;
}

.thought-textarea:focus {
  border-color: var(--color-primary);
}

.category-radio-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.category-radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.thought-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.thought-column {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.thought-col-header h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.thought-col-header p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.thought-bubbles-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.thought-bubble-card {
  background: var(--color-surface-solid);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.thought-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.thought-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.badge-control {
  background: #ccfbf1;
  color: #0f766e;
}

.badge-beyond {
  background: #ede9fe;
  color: #6366f1;
}

.btn-delete-thought {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text-light);
  cursor: pointer;
}

.thought-bubble-text {
  font-size: 0.98rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.micro-action-box {
  background: #f8fafc;
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}

.micro-action-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary-hover);
  margin-bottom: 0.35rem;
}

.micro-action-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-size: 0.88rem;
  outline: none;
}

.micro-action-input:focus {
  border-color: var(--color-primary);
}

/* PMR Styles */
.pmr-interactive-container {
  margin: 2rem 0;
}

.pmr-card-shell {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
}

.pmr-card-shell.phase-tense {
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 100%);
  border-color: #fecdd3;
}

.pmr-card-shell.phase-release {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #bbf7d0;
}

.pmr-flow-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2.25rem 0 1rem;
}

.pmr-flow-step {
  background: var(--color-surface-muted);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.pmr-flow-step .step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 0.4rem;
}

.pmr-state-badge {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 750;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.badge-tense {
  background: #ffe4e6;
  color: #be123c;
}

.badge-release {
  background: #dcfce7;
  color: #15803d;
}

.pmr-countdown-display {
  font-size: 3.5rem;
  font-weight: 850;
  color: var(--color-text);
  line-height: 1;
  margin: 0.5rem 0;
}

.pmr-dots-row {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pmr-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all 0.25s ease;
}

.pmr-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(13, 148, 136, 0.6);
}

.pmr-dot.done {
  background: #10b981;
}

/* Zen Garden Styles */
.zen-garden-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.zen-canvas {
  width: 100%;
  height: 420px;
  display: block;
  cursor: crosshair;
}

.zen-controls-bar {
  padding: 1.25rem 1.75rem;
  background: var(--color-surface-solid);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.zen-bowls-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ====================================================
   Alpeniq-Inspired Scroll Reveal & Micro-Interactions
   ==================================================== */

/* Progressive Enhancement: Elements are only hidden if JS and IntersectionObserver are active */
html.has-scroll-reveal .scroll-reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

html.has-scroll-reveal .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Subtle Hero Floating Animation (similar to alpeniq-hero-float) */
@keyframes alpeniqGentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.gentle-float {
  display: inline-block;
  animation: alpeniqGentleFloat 4.5s ease-in-out infinite;
}

/* Subtle Brand Pulse Glow */
@keyframes alpeniqSoftGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
  50% {
    box-shadow: 0 0 14px 2px rgba(2, 132, 199, 0.18);
  }
}

.brand-logo-glow,
.sp-badge {
  animation: alpeniqSoftGlow 3.5s ease-in-out infinite;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .breathing-circle {
    transition: none !important;
  }
  .cursor-follower-ring, .cursor-follower-dot {
    display: none !important;
  }
}

/* ====================================================
   Comprehensive Mobile Responsiveness & Touch Optimization
   ==================================================== */

@keyframes slideDownMobile {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  /* Global card grids collapse to 1 column */
  .cards-grid,
  .cards-grid-2col,
  .cards-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Thought Organizer Mobile Fix */
  .thought-columns-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .thought-column {
    width: 100% !important;
    padding: 1.25rem !important;
  }

  .category-radio-row {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .category-radio-label {
    width: 100% !important;
    padding: 0.85rem 1rem !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .thought-bubbles-container {
    min-height: 80px !important;
  }

  .thought-bubble-card {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem 1.15rem !important;
  }

  .thought-action-btn {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }

  /* PMR (Progressive Muscle Relaxation) Mobile Fix */
  .pmr-flow-preview {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .pmr-card-shell {
    padding: 1.5rem 1rem !important;
  }

  .pmr-timer-circle {
    width: min(65vw, 220px) !important;
    height: min(65vw, 220px) !important;
  }

  /* Zen Garden Controls Mobile */
  .zen-controls-bar {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .zen-controls-bar .btn,
  .zen-controls-bar .zen-select {
    width: 100% !important;
    min-height: 44px !important;
  }

  /* Breathing Companion Mobile Scale */
  .breathing-circle-outer {
    width: min(68vw, 240px) !important;
    height: min(68vw, 240px) !important;
  }

  .breathing-circle {
    width: min(54vw, 190px) !important;
    height: min(54vw, 190px) !important;
  }

  .rhythm-selector-pills {
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.5rem !important;
  }

  .rhythm-btn {
    width: 100% !important;
    text-align: center !important;
    padding: 0.75rem 1rem !important;
    min-height: 44px !important;
  }

  /* Interactive Mood Compass */
  .mood-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .mood-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 0.65rem 0.5rem !important;
    font-size: 0.85rem !important;
    min-height: 44px !important;
  }

  /* Micro-resets bar smooth touch scroll */
  .micro-resets-buttons {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    flex-wrap: nowrap !important;
    padding-bottom: 0.5rem !important;
  }

  .btn-micro-reset {
    flex-shrink: 0 !important;
    scroll-snap-align: start !important;
    min-height: 44px !important;
  }

  /* Soundscape Dropdown on Mobile */
  .soundscape-dropdown {
    right: -10px !important;
    left: auto !important;
    width: calc(100vw - 32px) !important;
    max-width: 330px !important;
  }

  .sound-buttons-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem !important;
  }

  .sound-mode-btn {
    padding: 0.6rem 0.4rem !important;
    font-size: 0.8rem !important;
    min-height: 44px !important;
  }
}

@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }

  .cursor-follower-ring, 
  .cursor-follower-dot {
    display: none !important;
  }

  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
  }

  .nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 1rem;
    z-index: 1001;
  }

  [data-theme="dark"] .primary-nav {
    background: rgba(15, 23, 42, 0.98);
  }

  .primary-nav.open {
    display: block !important;
    animation: slideDownMobile 0.22s ease-out;
  }

  .primary-nav .nav-list {
    flex-direction: column !important;
    gap: 0.4rem !important;
  }

  .nav-link {
    display: block !important;
    padding: 0.85rem 1rem !important;
    font-size: 1.05rem !important;
    border-radius: var(--radius-sm) !important;
    min-height: 44px !important;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem) !important;
    line-height: 1.18 !important;
  }

  .hero-subtitle {
    font-size: 1rem !important;
  }

  .section-title {
    font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .memory-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.45rem !important;
    max-width: 100% !important;
  }

  .memory-card {
    aspect-ratio: 1 / 1 !important;
    font-size: 1.4rem !important;
    min-height: unset !important;
  }

  .hero-card {
    padding: 1.5rem 1.25rem !important;
  }

  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Safe interactive button targets */
  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
