/* ================================================================
   CALM SPACE — Anxiety & Stress Relief
   Main Stylesheet
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   ---------------------------------------------------------------- */
:root {
  /* Brand Colours */
  --primary:        #5B9BD5;
  --primary-light:  #7BB3E8;
  --primary-dark:   #3A7BC8;
  --secondary:      #6DB89B;
  --secondary-dark: #4A9A7D;
  --accent:         #9B8EC4;
  --accent-warm:    #E8A87C;

  /* Backgrounds */
  --bg:             #F4F7FB;
  --bg-white:       #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-subtle:      #F8FAFC;

  /* Text */
  --text:           #2D3748;
  --text-md:        #4A5568;
  --text-muted:     #718096;
  --text-light:     #A0AEC0;

  /* Borders */
  --border:         #E2E8F0;
  --border-light:   #EDF2F7;

  /* Status */
  --success:        #48BB78;
  --warning:        #ECC94B;
  --error:          #FC8181;
  --info:           #63B3ED;

  /* Premium gold */
  --premium:        #F6AD55;
  --premium-dark:   #ED8936;
  --premium-bg:     #FEFCE8;

  /* Spacing */
  --radius:         12px;
  --radius-lg:      20px;
  --radius-sm:      8px;
  --radius-pill:    999px;

  /* Shadows */
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:         0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:      0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-premium: 0 4px 16px rgba(246,173,85,0.3);

  /* Transitions */
  --transition:     0.2s ease;
  --transition-md:  0.3s ease;

  /* Header height */
  --header-h:       64px;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.3;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

button { cursor: pointer; font-family: inherit; }

textarea, input {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.hidden { display: none !important; }

/* ----------------------------------------------------------------
   3. LAYOUT
   ---------------------------------------------------------------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------------------------------------------------------
   4. BUTTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91,155,213,0.4);
  text-decoration: none;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}
.btn-outline:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text);
  border-color: var(--text-light);
}

.btn-premium {
  background: linear-gradient(135deg, var(--premium), var(--premium-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-premium);
}
.btn-premium:hover {
  box-shadow: 0 6px 20px rgba(246,173,85,0.45);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn-danger-ghost {
  background: transparent;
  color: var(--error);
  border-color: var(--error);
  opacity: 0.75;
}
.btn-danger-ghost:hover {
  background: var(--error);
  color: #fff;
  opacity: 1;
}

.btn-lg  { padding: 13px 30px; font-size: 1rem; }
.btn-sm  { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }

.btn-inline-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 4px;
}
.btn-inline-link:hover { color: #fff; }

/* ----------------------------------------------------------------
   5. FORM ELEMENTS
   ---------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label,
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-md);
}

.form-group textarea,
.form-group input[type="text"] {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  resize: vertical;
  transition: border-color var(--transition);
  min-height: 60px;
}
.form-group textarea:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91,155,213,0.15);
}

/* ----------------------------------------------------------------
   6. HEADER
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-leaf { font-size: 1.6rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
}
.logo-tagline {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  color: var(--text-md);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
}
.main-nav a:hover {
  background: var(--bg-subtle);
  color: var(--primary);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 12px 0;
  box-shadow: var(--shadow);
}
.mobile-nav-link {
  display: block;
  padding: 12px 24px;
  color: var(--text-md);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}
.mobile-nav-link:hover {
  background: var(--bg-subtle);
  text-decoration: none;
}
.mobile-nav-link.premium-link {
  color: var(--premium-dark);
  font-weight: 600;
  border-bottom: none;
}

/* Premium banner */
.premium-banner {
  background: linear-gradient(90deg, #48BB78, #38a169);
  color: #fff;
  padding: 10px 0;
  text-align: center;
  font-size: 0.875rem;
}
.premium-banner p { margin: 0; }

/* ----------------------------------------------------------------
   7. HERO SECTION
   ---------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #EBF4FF 0%, #F0FFF4 45%, #FAF5FF 100%);
  padding: 80px 0 70px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(107,155,213,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(91,155,213,0.1);
  color: var(--primary-dark);
  border: 1px solid rgba(91,155,213,0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-title em {
  color: var(--primary);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.hero-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hf-icon { font-size: 1rem; }

/* Hero Visual / Calm Orb */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calm-orb {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-inner {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(255,255,255,0.95) 0%,
    rgba(107,155,213,0.6) 50%,
    rgba(109,184,155,0.4) 100%
  );
  box-shadow: 0 0 60px rgba(107,155,213,0.3), inset 0 0 30px rgba(255,255,255,0.4);
  animation: orbPulse 5s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  animation: orbRingPulse 5s ease-in-out infinite;
}
.orb-ring-1 {
  width: 200px; height: 200px;
  border-color: rgba(91,155,213,0.25);
  animation-delay: 0.5s;
}
.orb-ring-2 {
  width: 250px; height: 250px;
  border-color: rgba(91,155,213,0.15);
  animation-delay: 1s;
}
.orb-ring-3 {
  width: 300px; height: 300px;
  border-color: rgba(91,155,213,0.08);
  animation-delay: 1.5s;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%       { transform: scale(1.05); opacity: 1; }
}
@keyframes orbRingPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.04); opacity: 0.7; }
}

/* ----------------------------------------------------------------
   8. SECTION HEADERS
   ---------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   9. ADS
   ---------------------------------------------------------------- */
.ad-container {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

.ad-label {
  text-align: center;
  font-size: 0.68rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ad-demo-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.85rem;
  min-height: 70px;
  max-width: 768px;
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   10. TOOLS SECTION
   ---------------------------------------------------------------- */
.tools-section {
  padding: 60px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tool-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition-md), transform var(--transition-md);
}
.tool-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-wide {
  grid-column: span 2;
}

.tool-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 24px 0;
}

.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--icon-bg, #EBF4FF);
  color: var(--icon-color, #5B9BD5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tool-heading h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  font-weight: 600;
}
.tool-heading p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tool-body {
  padding: 20px 24px;
}

.tool-intro-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tool-info {
  padding: 16px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.tool-info strong { color: var(--text-md); }

.tool-controls {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.completion-box {
  text-align: center;
  padding: 20px 0;
}
.completion-emoji {
  font-size: 3rem;
  margin-bottom: 10px;
}
.completion-box h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.completion-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   11. BREATHING TOOL
   ---------------------------------------------------------------- */
.pattern-select {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.pattern-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}
.pattern-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pattern-btn {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--bg-white);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.pattern-btn:hover { border-color: var(--primary); color: var(--primary); }
.pattern-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.breath-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 220px;
  margin: 0 0 16px;
}

.breath-rings {
  position: absolute;
  width: 220px;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.breath-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(91,155,213,0.15);
  transition: transform 4s ease-in-out;
}
.br-2 { width: 160px; height: 160px; }
.br-3 { width: 210px; height: 210px; }

.breath-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--primary-light), var(--primary-dark));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 4s ease-in-out, background 1s ease;
  box-shadow: 0 0 30px rgba(91,155,213,0.3);
  z-index: 1;
}

.breath-phase-text {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.breath-countdown {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  font-family: 'Lora', serif;
}

.breath-phases {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}
.phase-pip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}
.pip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.phase-pip.active .pip-dot {
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(91,155,213,0.2);
}
.phase-pip.active { color: var(--primary); }

.breath-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.breath-stats strong { color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------------
   12. GROUNDING TOOL
   ---------------------------------------------------------------- */
.grounding-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.grounding-bubbles {
  display: flex;
  gap: 8px;
}
.g-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  transition: all var(--transition);
}
.g-bubble.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(91,155,213,0.2);
}
.g-bubble.done {
  background: var(--secondary);
  color: #fff;
}

.grounding-progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.grounding-content {
  min-height: 200px;
}

.grounding-step {
  padding: 4px 0;
}
.grounding-step h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.grounding-step .sense-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}
.grounding-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.grounding-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grounding-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.grounding-input-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.grounding-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  background: var(--bg-subtle);
  transition: border-color var(--transition);
}
.grounding-input-row input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.grounding-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: space-between;
}

/* ----------------------------------------------------------------
   13. SOUNDS TOOL
   ---------------------------------------------------------------- */
.sound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.sound-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.sound-btn:hover {
  border-color: var(--primary);
  background: rgba(91,155,213,0.05);
}
.sound-btn.active {
  border-color: var(--primary);
  background: rgba(91,155,213,0.1);
  box-shadow: 0 0 0 3px rgba(91,155,213,0.15);
}
.sound-emoji { font-size: 1.6rem; }
.sound-name { font-size: 0.75rem; font-weight: 600; color: var(--text-md); }
.sound-status-text {
  font-size: 0.7rem;
  color: var(--text-light);
  background: var(--border);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
}
.sound-btn.active .sound-status-text {
  background: var(--primary);
  color: #fff;
}

.sound-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}
.volume-icon { font-size: 1rem; flex-shrink: 0; }
.volume-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.volume-value {
  font-size: 0.8rem;
  color: var(--text-muted);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.now-playing-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(91,155,213,0.08);
  border-radius: var(--radius-sm);
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* Equaliser bars animation */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}
.eq-bars span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
  animation: eqBounce 0.8s ease-in-out infinite;
}
.eq-bars span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.eq-bars span:nth-child(3) { height: 12px; animation-delay: 0.3s; }
.eq-bars span:nth-child(4) { height: 18px; animation-delay: 0.1s; }
.eq-bars span:nth-child(5) { height: 10px; animation-delay: 0.25s; }

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.6) translateY(2px); }
  50%       { transform: scaleY(1) translateY(0); }
}

/* ----------------------------------------------------------------
   14. JOURNAL TOOL
   ---------------------------------------------------------------- */
.journal-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.journal-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.journal-tab:hover { color: var(--primary); }
.journal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.entry-badge {
  background: var(--primary);
  color: #fff;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
}

.journal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.journal-grid .full-width { grid-column: span 2; }

.journal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.journal-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.journal-entry {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-white);
}
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--bg-subtle);
  transition: background var(--transition);
}
.entry-header:hover { background: var(--border-light); }
.entry-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.entry-preview { font-size: 0.85rem; color: var(--text); flex: 1; padding: 0 12px; }
.entry-toggle { font-size: 0.75rem; color: var(--text-light); flex-shrink: 0; }

.entry-body {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: none;
}
.entry-body.expanded { display: block; }
.entry-field {
  margin-bottom: 12px;
}
.entry-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 3px;
}
.entry-field p {
  font-size: 0.875rem;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.5;
}
.entry-delete {
  margin-top: 10px;
  background: none;
  border: 1px solid var(--error);
  color: var(--error);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  cursor: pointer;
  opacity: 0.7;
  transition: all var(--transition);
}
.entry-delete:hover { opacity: 1; background: var(--error); color: #fff; }

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
}
.empty-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.empty-state p { font-size: 0.9rem; }

/* ----------------------------------------------------------------
   15. PMR TOOL
   ---------------------------------------------------------------- */
.pmr-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pmr-preview span {
  font-size: 0.8rem;
  padding: 4px 11px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.pmr-progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}
.pmr-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 3px;
  transition: width 0.5s ease;
}

.pmr-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* CSS body figure */
.pmr-figure {
  flex-shrink: 0;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fig-head {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.fig-shoulders {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.fig-arm {
  width: 12px; height: 38px;
  border-radius: 6px;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.fig-torso {
  width: 30px; height: 44px;
  border-radius: 6px;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.fig-hips {
  width: 36px; height: 12px;
  border-radius: 4px;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.fig-legs { display: flex; gap: 4px; }
.fig-leg {
  width: 14px; height: 50px;
  border-radius: 6px;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}

/* Highlighted body parts */
.pmr-highlight {
  background: var(--primary) !important;
  box-shadow: 0 0 10px rgba(91,155,213,0.5) !important;
}

.pmr-info { flex: 1; }

.pmr-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.pmr-step-name {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.pmr-instruction {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  min-height: 40px;
  line-height: 1.5;
}

.pmr-phase-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--border);
  color: var(--text-muted);
  margin-bottom: 14px;
  transition: all var(--transition);
}
.pmr-phase-badge.tense  { background: #FEB2B2; color: #C53030; }
.pmr-phase-badge.hold   { background: #FEF3C7; color: #92400E; }
.pmr-phase-badge.release{ background: #C6F6D5; color: #276749; }
.pmr-phase-badge.ready  { background: var(--bg-subtle); color: var(--text-muted); }

/* PMR Timer Circle */
.pmr-timer {
  position: relative;
  width: 76px;
  height: 76px;
}
.pmr-timer svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.timer-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 6;
}
.timer-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
}
.pmr-timer-num {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Lora', serif;
  color: var(--text);
}

/* ----------------------------------------------------------------
   16. THOUGHT CHALLENGER
   ---------------------------------------------------------------- */
.thoughts-step { padding: 4px 0; }
.thoughts-step textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  resize: vertical;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg-subtle);
  margin-bottom: 14px;
  transition: border-color var(--transition);
}
.thoughts-step textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.hint-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.distortions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.distortion-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}
.distortion-chip:hover { border-color: var(--primary); }
.distortion-chip.selected {
  background: rgba(91,155,213,0.1);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.distortion-chip input[type="checkbox"] {
  flex-shrink: 0;
  accent-color: var(--primary);
  margin-top: 2px;
}
.distortion-label { font-size: 0.82rem; font-weight: 600; }
.distortion-desc { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.challenge-card {
  background: var(--bg-subtle);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.challenge-card h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.challenge-card ul {
  margin: 0;
  padding-left: 16px;
}
.challenge-card li {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.5;
}

.thought-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.thought-comparison {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
.thought-box {
  flex: 1;
  min-width: 140px;
  padding: 14px 16px;
  border-radius: var(--radius);
}
.thought-before { background: #FFF5F5; border: 1px solid #FEB2B2; }
.thought-after  { background: #F0FFF4; border: 1px solid #9AE6B4; }
.thought-box-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.thought-before .thought-box-label { color: #C53030; }
.thought-after .thought-box-label  { color: #276749; }
.thought-box p { font-size: 0.875rem; color: var(--text); line-height: 1.5; margin: 0; }
.thought-arrow {
  font-size: 1.5rem;
  color: var(--text-light);
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   17. TRACKER TOOL
   ---------------------------------------------------------------- */
.tracker-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

.tracker-scale-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-md);
  margin-bottom: 12px;
}

.scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.anxiety-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #68D391, #ECC94B, #FC8181);
  border-radius: 3px;
  outline: none;
  margin-bottom: 10px;
  cursor: pointer;
}
.anxiety-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s;
}
.anxiety-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

.anxiety-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}
.bubble-num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: 'Lora', serif;
  color: var(--primary);
}
.bubble-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-md);
}

.tracker-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.chart-header h4 { font-size: 0.95rem; }

.chart-wrap {
  position: relative;
  height: 180px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.chart-wrap canvas { width: 100%; height: 100%; display: block; }
.chart-wrap .empty-state { padding: 30px 16px; }

.chart-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.cs-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
}
.cs-val {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Lora', serif;
  color: var(--primary);
}
.cs-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ----------------------------------------------------------------
   18. PRICING SECTION
   ---------------------------------------------------------------- */
.pricing-section {
  background: linear-gradient(135deg, #EBF4FF 0%, #F0FFF4 100%);
  padding: 80px 0;
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 2px solid var(--border);
  position: relative;
}

.pricing-premium {
  border-color: var(--premium);
  box-shadow: var(--shadow-premium);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--premium), var(--premium-dark));
  color: #fff;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.plan-chip {
  display: inline-block;
  padding: 3px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.premium-chip {
  background: var(--premium-bg);
  color: var(--premium-dark);
}

.plan-name { font-size: 1.5rem; margin-bottom: 10px; }

.plan-price {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: 'Lora', serif;
  color: var(--text);
  margin-bottom: 20px;
}
.plan-period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.plan-features {
  list-style: none;
  margin-bottom: 24px;
}
.plan-features li {
  padding: 7px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border-light);
}
.plan-features li:last-child { border-bottom: none; }
.feat-yes { color: var(--text); }
.feat-no  { color: var(--text-light); }

.plan-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* ----------------------------------------------------------------
   19. CRISIS SECTION
   ---------------------------------------------------------------- */
.crisis-section {
  background: #fff;
  padding: 60px 0;
}

.crisis-box {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #FFF5F7;
  border: 2px solid #FEB2B2;
  border-radius: var(--radius-lg);
  padding: 32px;
}

.crisis-icon { font-size: 2.5rem; flex-shrink: 0; }

.crisis-content h3 { font-size: 1.3rem; margin-bottom: 8px; }
.crisis-content > p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.crisis-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.crisis-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #FEB2B2;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}
.crisis-link:hover {
  border-color: #FC8181;
  box-shadow: 0 2px 8px rgba(252,129,129,0.2);
  transform: translateY(-1px);
  text-decoration: none;
}
.crisis-link > span:first-child { font-size: 1.4rem; flex-shrink: 0; }
.crisis-link div { display: flex; flex-direction: column; gap: 2px; }
.crisis-link strong { font-size: 0.88rem; color: var(--text); }
.crisis-link div > span { font-size: 0.78rem; color: var(--text-muted); }

/* ----------------------------------------------------------------
   20. FOOTER
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
  max-width: 280px;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  font-family: 'Inter', sans-serif;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
}
.disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin-bottom: 10px;
}
.copyright {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ----------------------------------------------------------------
   21. MODAL
   ---------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { transform: scale(0.94) translateY(10px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.modal-close:hover { background: var(--error); color: #fff; border-color: var(--error); }

.modal-head {
  padding: 32px 32px 24px;
  text-align: center;
  background: linear-gradient(135deg, #FEFCE8, #FFF9EB);
  border-bottom: 1px solid var(--border);
}
.modal-icon { font-size: 2.5rem; margin-bottom: 10px; }
.modal-head h3 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-head p  { font-size: 0.88rem; color: var(--text-muted); }

.modal-body { padding: 24px 32px; }

.modal-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.mf-item {
  font-size: 0.88rem;
  color: var(--text-md);
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.mf-item:last-child { border-bottom: none; }

.modal-price-display {
  text-align: center;
  margin-bottom: 20px;
}
.modal-price-big {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: 'Lora', serif;
  color: var(--text);
}
.modal-price-sub { font-size: 1rem; color: var(--text-muted); }

.modal-or {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 14px 0;
  position: relative;
}
.modal-or::before,
.modal-or::after {
  content: '';
  position: absolute;
  top: 50%; width: 40%;
  height: 1px;
  background: var(--border);
}
.modal-or::before { left: 0; }
.modal-or::after  { right: 0; }

.modal-small-print {
  font-size: 0.73rem;
  color: var(--text-light);
  margin-top: 14px;
  line-height: 1.5;
  text-align: center;
}
.modal-small-print code {
  font-family: monospace;
  background: var(--bg-subtle);
  padding: 1px 4px;
  border-radius: 3px;
}

/* ----------------------------------------------------------------
   22. TOAST
   ---------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  white-space: nowrap;
  max-width: 90vw;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success { background: var(--success); }
.toast.warning { background: var(--warning); color: var(--text); }
.toast.error   { background: var(--error); }
.toast.info    { background: var(--info); }

/* ----------------------------------------------------------------
   23. RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-features { justify-content: center; }
  .hero-visual { order: -1; }
  .calm-orb { width: 200px; height: 200px; }
  .orb-inner { width: 100px; height: 100px; }
  .orb-ring-1 { width: 130px; height: 130px; }
  .orb-ring-2 { width: 165px; height: 165px; }
  .orb-ring-3 { width: 200px; height: 200px; }

  .tools-grid { grid-template-columns: 1fr; }
  .tool-wide  { grid-column: span 1; }

  .tracker-layout { grid-template-columns: 1fr; }
  .chart-stats    { grid-template-columns: repeat(2, 1fr); }

  .journal-grid { grid-template-columns: 1fr; }
  .journal-grid .full-width { grid-column: span 1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: span 2; }

  .crisis-links { grid-template-columns: 1fr; }

  .pricing-cards { flex-direction: column; max-width: 360px; }
}

@media (max-width: 600px) {
  html { font-size: 15px; }

  .hero { padding: 50px 0; }
  .hero-title { font-size: 1.9rem; }

  .sound-grid { grid-template-columns: repeat(2, 1fr); }

  .distortions-grid { grid-template-columns: 1fr; }

  .thought-comparison { flex-direction: column; }
  .thought-arrow { display: none; }

  .pmr-body { flex-direction: column; }
  .pmr-figure { flex-direction: row; width: 100%; gap: 6px; align-items: center; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  .modal-box { border-radius: var(--radius) var(--radius) 0 0; margin-top: auto; }
  .modal-overlay { align-items: flex-end; padding: 0; }

  .crisis-box { flex-direction: column; gap: 12px; padding: 20px; }
}

@media (max-width: 420px) {
  .pattern-buttons { gap: 4px; }
  .pattern-btn { font-size: 0.72rem; padding: 4px 9px; }
  .breath-visual { height: 190px; }
  .breath-circle { width: 110px; height: 110px; }
}
