/* Steady Break - Anger Management Toolkit
   Steady teal palette - calm, grounded, research-backed */

/* ==========================================================================
   CSS Variables (Design Tokens)
   ========================================================================== */

:root {
  /* Colors - Steady Teal (PRIMARY - calm, grounded, steady) */
  --steel-50:  #E8F6FA;
  --steel-100: #C8EBF4;
  --steel-200: #93D5E6;
  --steel-300: #5EC0D8;
  --steel-400: #38ABCA;
  --steel-500: #2C9AB7;
  --steel-600: #247D95;
  --steel-700: #1C6073;
  --steel-800: #144351;
  --steel-900: #0C262F;

  /* Colors - Charcoal (neutral, grounded, readable) */
  --charcoal-50:  #F7FAFC;
  --charcoal-100: #EDF2F7;
  --charcoal-200: #E2E8F0;
  --charcoal-300: #CBD5E0;
  --charcoal-400: #A0AEC0;
  --charcoal-500: #718096;
  --charcoal-600: #4A5568;
  --charcoal-700: #2D3748;
  --charcoal-800: #1A202C;
  --charcoal-900: #171923;

  /* Colors - Teal (accent - progress, success, calm state) */
  --teal-300: #4FD1C5;
  --teal-400: #38B2AC;
  --teal-500: #319795;
  --teal-600: #2C7A7B;
  --teal-700: #285E61;

  /* Colors - Amber (warning - heated state in tools) */
  --amber-300: #F6AD55;
  --amber-400: #D69E2E;
  --amber-500: #B7791F;
  --amber-600: #975A16;

  /* Colors - Action (CTA - steady teal, unified with brand) */
  --action-500: #2C9AB7;
  --action-600: #247D95;
  --action-700: #1C6073;

  /* Semantic */
  --color-primary: var(--steel-500);
  --color-primary-hover: var(--steel-600);
  --color-accent: var(--action-500);
  --color-accent-hover: var(--action-600);
  --color-background: #FAF8F2;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F5F1EA;
  --color-text: var(--charcoal-700);
  --color-text-secondary: var(--charcoal-600);
  --color-text-muted: var(--charcoal-500);
  --color-border: var(--charcoal-200);

  /* Tool backgrounds */
  --bg-tool: var(--charcoal-800);
  --bg-tool-card: var(--charcoal-700);

  /* Tool color journey tokens (evidence-based):
     All phases use teal/blue-green. No warm colors during active interventions.
     Warm colors increase physiological arousal (Weijs et al., 2023).
     Teal/blue-green reduces arousal across all phases. */
  --anger-phase1: #2C9AB7;
  --anger-phase1-glow: rgba(44,154,183,0.3);
  --anger-cooling: #319795;
  --anger-cooling-glow: rgba(49,151,149,0.3);
  --anger-calm: #38B2AC;
  --anger-calm-glow: rgba(56,178,172,0.4);
  --anger-cool: #2C9AB7;
  --anger-cool-glow: rgba(44,154,183,0.3);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-heading: 'Lora', Georgia, serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3.25rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
  --space-5xl: 6rem;
  --space-6xl: 8rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,0.1), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-glow-teal: 0 0 20px rgba(56,178,172,0.15), 0 0 40px rgba(56,178,172,0.08);
  --shadow-glow-brand: 0 0 20px rgba(44,154,183,0.2), 0 0 40px rgba(44,154,183,0.1);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.06);

  /* Layout */
  --max-width: 1100px;
  --content-width: 680px;
  --nav-height: 64px;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--color-accent);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--steel-500);
  outline-offset: 2px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--charcoal-800);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-5xl) 0;
}

.section-dark {
  background-color: var(--charcoal-800);
  color: var(--charcoal-100);
}

.section-dark h2,
.section-dark h3 {
  color: white;
}

.section-alt {
  background-color: var(--color-surface-alt);
}

.section-title {
  font-size: var(--font-size-4xl);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-4xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-subtitle {
  color: var(--charcoal-400);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 248, 242, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}

.nav-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--charcoal-800);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo:hover {
  color: var(--charcoal-800);
}

.nav-logo svg {
  color: var(--steel-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--charcoal-600);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--charcoal-800);
}

.nav-cta {
  background: var(--color-accent);
  color: white !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-lg);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  color: white !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal-700);
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44,154,183,0.25), 0 2px 4px rgba(44,154,183,0.1);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background-color: var(--steel-100);
  color: var(--steel-700);
}

.btn-secondary:hover {
  background-color: var(--steel-200);
  color: var(--steel-800);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: white;
  transform: translateY(-1px);
}

.btn-large {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-xl);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, #1A202C 0%, #243B53 100%);
  color: white;
  padding: calc(var(--nav-height) + var(--space-5xl)) 0 var(--space-5xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(56,178,172,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero h1 {
  color: white;
  font-size: var(--font-size-5xl);
  font-weight: 800;
  margin-bottom: var(--space-xl);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--charcoal-400);
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Tool Cards
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.tool-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--steel-500));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel-300);
  color: inherit;
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--steel-50), #D9E2EC);
  box-shadow: var(--shadow-inset);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--steel-500);
}

.tool-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.tool-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.tool-card-tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-500);
  margin-top: var(--space-lg);
}

/* ==========================================================================
   Stats / Research Section
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--teal-400);
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--charcoal-400);
  line-height: 1.4;
}

.stat-source {
  font-size: var(--font-size-xs);
  color: var(--charcoal-500);
  margin-top: var(--space-xs);
}

/* ==========================================================================
   Article Cards
   ========================================================================== */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel-300);
  color: inherit;
}

.article-card-category {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-500);
  margin-bottom: var(--space-md);
}

.article-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.article-card p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.article-card-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-lg);
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */

.newsletter-section {
  background: #2B6C84;
  color: white;
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  display: none;
}

.newsletter-section h2 {
  color: white;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-lg);
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form input[type="email"]:focus {
  border-color: white;
  outline: none;
}

.newsletter-form button {
  padding: var(--space-md) var(--space-xl);
  background: white;
  color: var(--steel-600);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--charcoal-100);
  transform: translateY(-1px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--charcoal-800);
  color: var(--charcoal-400);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-top: var(--space-lg);
}

.footer h4 {
  color: white;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

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

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--charcoal-400);
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--charcoal-700);
  padding-top: var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
}

.footer-bottom a {
  color: var(--charcoal-400);
}

.footer-bottom a:hover {
  color: white;
}

/* ==========================================================================
   Content Note / Disclaimer
   ========================================================================== */

.content-note {
  background: var(--charcoal-50);
  border-left: 3px solid var(--steel-400);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-2xl) 0;
  font-size: var(--font-size-sm);
  color: var(--charcoal-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.6;
}

.content-note strong {
  color: var(--charcoal-700);
}

/* ==========================================================================
   Tool Page Layout (Dark Background)
   ========================================================================== */

.tool-page {
  background: var(--bg-tool);
  color: var(--charcoal-100);
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.tool-page .nav {
  background: rgba(26, 32, 44, 0.95);
}

.tool-page .nav-logo {
  color: white;
}

.tool-page .nav-links a {
  color: var(--charcoal-400);
}

.tool-page .nav-links a:hover {
  color: white;
}

.tool-header {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.tool-header h1 {
  color: white;
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.tool-header p {
  color: var(--charcoal-400);
  font-size: var(--font-size-lg);
}

.tool-container {
  max-width: 500px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Breathing Circle */
.breathing-circle-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: var(--space-2xl) 0;
}

.breathing-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--steel-400), var(--steel-600));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.3),
    inset 0 4px 12px rgba(255,255,255,0.1),
    0 0 30px var(--anger-cool-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 4s cubic-bezier(0.42, 0, 0.58, 1);
  position: relative;
  z-index: 2;
}

.breathing-circle.inhale {
  transform: scale(1.15);
  background: radial-gradient(circle at 40% 35%, var(--steel-300), var(--steel-500));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.2),
    inset 0 4px 12px rgba(255,255,255,0.15),
    0 0 50px rgba(74, 124, 155, 0.5);
}

.breathing-circle.hold1 {
  transform: scale(1.15);
  background: radial-gradient(circle at 40% 35%, var(--steel-300), var(--steel-500));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.2),
    inset 0 4px 12px rgba(255,255,255,0.15),
    0 0 50px rgba(74, 124, 155, 0.5);
}

.breathing-circle.exhale {
  transform: scale(0.85);
  background: radial-gradient(circle at 40% 35%, var(--steel-500), var(--steel-700));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.35),
    inset 0 4px 12px rgba(255,255,255,0.05),
    0 0 20px rgba(74, 124, 155, 0.2);
}

.breathing-circle.hold2 {
  transform: scale(0.85);
  background: radial-gradient(circle at 40% 35%, var(--steel-500), var(--steel-700));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.35),
    inset 0 4px 12px rgba(255,255,255,0.05),
    0 0 20px rgba(74, 124, 155, 0.2);
}

.breathing-circle.complete {
  background: radial-gradient(circle at 40% 35%, var(--teal-400), var(--teal-600));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.2),
    inset 0 4px 12px rgba(255,255,255,0.15),
    0 0 60px rgba(56, 178, 172, 0.5);
}

/* Anger Reset specific states - teal progression (no amber) */
.breathing-circle.phase1 {
  background: radial-gradient(circle at 40% 35%, var(--steel-300), var(--steel-500));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.25),
    inset 0 4px 12px rgba(255,255,255,0.1),
    0 0 40px var(--anger-phase1-glow);
}

.breathing-circle.inhale.cooling {
  transform: scale(1.15);
  background: radial-gradient(circle at 40% 35%, var(--teal-300), var(--teal-500));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.2),
    inset 0 4px 12px rgba(255,255,255,0.15),
    0 0 50px var(--anger-calm-glow);
}

.breathing-circle.exhale.cooling {
  transform: scale(0.85);
  background: radial-gradient(circle at 40% 35%, var(--teal-500), var(--teal-700));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.3),
    inset 0 4px 12px rgba(255,255,255,0.05),
    0 0 20px var(--anger-cooling-glow);
}

.breathing-circle.cooling {
  background: radial-gradient(circle at 40% 35%, var(--teal-400), var(--teal-600));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.25),
    inset 0 4px 12px rgba(255,255,255,0.1),
    0 0 40px rgba(56, 178, 172, 0.3);
}

.breathing-circle.cooled {
  background: radial-gradient(circle at 40% 35%, var(--steel-400), var(--steel-600));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.25),
    inset 0 4px 12px rgba(255,255,255,0.1),
    0 0 30px var(--anger-cool-glow);
}

.breathing-glow {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 124, 155, 0.2) 0%, transparent 70%);
  z-index: 1;
  transition: all 4s cubic-bezier(0.42, 0, 0.58, 1);
}

.breathing-glow.inhale {
  background: radial-gradient(circle, rgba(74, 124, 155, 0.3) 0%, transparent 70%);
}

.breathing-glow.exhale {
  background: radial-gradient(circle, rgba(74, 124, 155, 0.1) 0%, transparent 70%);
}

.breathing-glow.ambient-pulse {
  animation: ambientPulse 4s ease-in-out infinite;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.breathing-text {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: white;
  text-align: center;
}

.breathing-count {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-top: var(--space-xs);
}

.breathing-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.breathing-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--steel-300);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  opacity: 0;
}

/* Tool start button */
.tool-start-btn {
  margin-top: var(--space-2xl);
  padding: var(--space-lg) var(--space-3xl);
  background: var(--color-accent);
  color: white;
  font-size: var(--font-size-lg);
  font-weight: 700;
  font-family: var(--font-family);
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tool-start-btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(44, 154, 183, 0.3);
}

.tool-start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.tool-start-btn.hidden {
  visibility: hidden;
  pointer-events: none;
}

/* Tool completion prompt */
.tool-complete-prompt {
  text-align: center;
  margin-top: var(--space-3xl);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: opacity 0.5s ease, max-height 0.5s ease, visibility 0.5s;
}

.tool-complete-prompt.visible {
  opacity: 1;
  max-height: 300px;
  visibility: visible;
}

.tool-complete-prompt h3 {
  color: white;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-xl);
}

.tool-complete-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* Tool description section (below the tool) */
.tool-about {
  background: var(--charcoal-900);
  padding: var(--space-4xl) 0;
}

.tool-about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.tool-about h2 {
  color: white;
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xl);
}

.tool-about p {
  color: var(--charcoal-400);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.tool-about a {
  color: var(--teal-400);
}

.tool-about a:hover {
  color: var(--teal-300);
}

/* ==========================================================================
   Ambient Background (Anger Reset)
   ========================================================================== */

.ambient-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 40%, rgba(26,32,44,1) 0%, var(--charcoal-800) 100%);
  transition: background 3s ease;
  pointer-events: none;
}

.ambient-background.phase-name {
  background: radial-gradient(ellipse at 50% 40%, hsla(192, 60%, 15%, 1) 0%, var(--charcoal-800) 100%);
}

.ambient-background.phase-cool {
  background: radial-gradient(ellipse at 50% 40%, hsla(174, 60%, 12%, 1) 0%, var(--charcoal-800) 100%);
}

.ambient-background.phase-choose {
  background: radial-gradient(ellipse at 50% 40%, hsla(192, 50%, 18%, 1) 0%, var(--charcoal-800) 100%);
}

/* ==========================================================================
   Canvas Particles (Anger Reset + Breathing)
   ========================================================================== */

.reset-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 3;
}

/* ==========================================================================
   Anger Reset Tool (Multi-phase)
   ========================================================================== */

.reset-phase-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
}

.reset-phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--charcoal-600);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.reset-phase-connector {
  width: 32px;
  height: 2px;
  background: var(--charcoal-600);
  transition: background 0.5s ease;
}

.reset-phase-connector.filled {
  background: var(--steel-500);
}

.reset-phase-dot.active {
  background: var(--teal-400);
  box-shadow: 0 0 10px rgba(56, 178, 172, 0.6);
  transform: scale(1.2);
}

.reset-phase-dot.complete {
  background: var(--steel-500);
}

.reset-prompt {
  text-align: center;
  max-width: 360px;
  margin: var(--space-xl) auto;
  font-size: var(--font-size-lg);
  color: var(--charcoal-300);
  line-height: 1.5;
  transition: opacity 0.15s ease, transform 0.15s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reset-prompt.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

.reset-prompt.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.reset-timer {
  font-size: var(--font-size-sm);
  color: var(--charcoal-500);
  text-align: center;
  margin-top: var(--space-lg);
}

.reset-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 320px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease, visibility 0.4s;
}

.reset-choices.visible {
  opacity: 1;
  max-height: 300px;
  visibility: visible;
}

.reset-choice-btn {
  padding: var(--space-md) var(--space-lg);
  background: var(--charcoal-700);
  color: var(--charcoal-200);
  border: 1px solid var(--charcoal-600);
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.reset-choice-btn:hover {
  background: var(--charcoal-600);
  border-color: var(--charcoal-500);
}

/* ==========================================================================
   Worksheet Tool
   ========================================================================== */

/* Worksheet step progress */
.worksheet-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2xl);
  gap: 0;
}

.ws-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--charcoal-600);
  color: var(--charcoal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ws-step-dot.active {
  background: var(--teal-400);
  color: white;
  box-shadow: 0 0 10px rgba(56, 178, 172, 0.5);
}

.ws-step-dot.complete {
  background: var(--steel-500);
  color: white;
}

.ws-step-connector {
  width: 24px;
  height: 2px;
  background: var(--charcoal-600);
  transition: background 0.3s ease;
}

.ws-step-connector.filled {
  background: var(--steel-500);
}

.worksheet-form {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.worksheet-step {
  display: none;
  animation: fadeInStep 0.3s ease;
}

.worksheet-step.active {
  display: block;
}

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

.worksheet-step h3 {
  color: white;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
}

.worksheet-step p {
  color: var(--charcoal-400);
  margin-bottom: var(--space-xl);
}

.worksheet-input {
  width: 100%;
  padding: var(--space-lg);
  background: var(--charcoal-700);
  border: 1px solid var(--charcoal-600);
  border-radius: var(--radius-lg);
  color: white;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  resize: vertical;
}

.worksheet-input:focus {
  outline: none;
  border-color: var(--teal-400);
  box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.15);
}

.worksheet-input::placeholder {
  color: var(--charcoal-500);
}

/* Anger level slider */
.anger-slider-wrap {
  padding: var(--space-xl) 0;
}

.anger-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--teal-500), var(--amber-400), #E53E3E);
  outline: none;
}

.anger-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.anger-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.anger-slider-value {
  text-align: center;
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: white;
  margin-top: var(--space-lg);
}

.anger-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--charcoal-500);
  margin-top: var(--space-sm);
}

/* Trigger checkboxes */
.trigger-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.trigger-option {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--charcoal-700);
  border: 1px solid var(--charcoal-600);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--charcoal-200);
  font-size: var(--font-size-sm);
}

.trigger-option:hover {
  border-color: var(--charcoal-500);
}

.trigger-option input[type="checkbox"] {
  accent-color: var(--teal-400);
  width: 18px;
  height: 18px;
}

.trigger-option.selected {
  border-color: var(--teal-400);
  background: rgba(56, 178, 172, 0.1);
}

/* Suggestions */
.suggestion-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.suggestion-item {
  padding: var(--space-md) var(--space-lg);
  background: var(--charcoal-700);
  border: 1px solid var(--charcoal-600);
  border-radius: var(--radius-lg);
  color: var(--charcoal-200);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.selected {
  border-color: var(--teal-400);
  background: rgba(56, 178, 172, 0.1);
}

/* Generated worksheet card */
.worksheet-result {
  background: var(--charcoal-700);
  border: 1px solid var(--charcoal-600);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.worksheet-result h3 {
  color: white;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.worksheet-result-row {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--charcoal-600);
}

.worksheet-result-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.worksheet-result-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--charcoal-500);
  margin-bottom: var(--space-xs);
}

.worksheet-result-value {
  color: var(--charcoal-200);
  font-size: var(--font-size-base);
}

.worksheet-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2xl);
}

/* ==========================================================================
   Quiz Tool
   ========================================================================== */

.quiz-container {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.quiz-progress {
  margin-bottom: var(--space-2xl);
}

.quiz-progress-track {
  width: 100%;
  height: 3px;
  background: var(--charcoal-600);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--teal-400);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.quiz-question {
  /* Managed by JS slide transitions */
}

.quiz-question h3 {
  color: white;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

.quiz-question-number {
  font-size: var(--font-size-sm);
  color: var(--charcoal-500);
  margin-bottom: var(--space-xl);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.quiz-option {
  padding: var(--space-lg);
  background: var(--charcoal-700);
  border: 1px solid var(--charcoal-600);
  border-radius: var(--radius-lg);
  color: var(--charcoal-200);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.quiz-option:hover {
  border-color: var(--charcoal-500);
  background: var(--charcoal-600);
}

.quiz-option.selected {
  border-color: var(--teal-400);
  background: rgba(56, 178, 172, 0.1);
}

/* Quiz results */
.quiz-result {
  display: none;
  text-align: center;
}

.quiz-result.active {
  display: block;
  animation: fadeInStep 0.5s ease;
}

.quiz-result-type {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-400);
  margin-bottom: var(--space-md);
}

.quiz-result h2 {
  color: white;
  margin-bottom: var(--space-xl);
}

.quiz-result-description {
  color: var(--charcoal-300);
  font-size: var(--font-size-lg);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto var(--space-2xl);
}

.quiz-result-tools {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 400px;
  margin: 0 auto var(--space-2xl);
}

.quiz-result-tools h4 {
  color: var(--charcoal-400);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Thermometer Tool
   ========================================================================== */

.thermometer-container {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: var(--space-xl);
}

/* Visual thermometer gauge (desktop only) */
.thermometer-gauge {
  width: 60px;
  flex-shrink: 0;
  position: relative;
  border-radius: var(--radius-full);
  background: var(--charcoal-700);
  overflow: hidden;
}

.thermometer-gauge-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20%;
  background: linear-gradient(to top, #38B2AC, #ECC94B, #ED8936, #E53E3E);
  border-radius: 0 0 var(--radius-full) var(--radius-full);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.thermometer-gauge-indicator {
  position: absolute;
  left: -2px;
  right: -2px;
  height: 4px;
  background: white;
  border-radius: 2px;
  bottom: 20%;
  transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.thermometer-levels {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.thermometer-level {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.thermometer-level:hover {
  transform: translateX(4px);
}

.thermometer-level.active {
  transform: translateX(8px);
}

.thermometer-level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.thermometer-level-name {
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.thermometer-level-label {
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.thermometer-level-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease, padding-top 0.3s ease;
}

.thermometer-level.active .thermometer-level-detail {
  max-height: 500px;
  opacity: 1;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.thermometer-level-detail h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  color: inherit;
  opacity: 0.7;
}

.thermometer-level-detail p,
.thermometer-level-detail ul {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.thermometer-level-detail ul {
  list-style: none;
  padding: 0;
}

.thermometer-level-detail li {
  padding: var(--space-xs) 0;
}

/* Thermometer colors */
.thermo-calm { background: rgba(56, 178, 172, 0.15); color: var(--teal-300); }
.thermo-calm.active { border-color: var(--teal-400); background: rgba(56, 178, 172, 0.25); }
.thermo-annoyed { background: rgba(214, 158, 46, 0.1); color: #ECC94B; }
.thermo-annoyed.active { border-color: #ECC94B; background: rgba(214, 158, 46, 0.2); }
.thermo-frustrated { background: rgba(214, 158, 46, 0.2); color: var(--amber-300); }
.thermo-frustrated.active { border-color: var(--amber-400); background: rgba(214, 158, 46, 0.3); }
.thermo-angry { background: rgba(237, 137, 54, 0.2); color: #ED8936; }
.thermo-angry.active { border-color: #ED8936; background: rgba(237, 137, 54, 0.3); }
.thermo-rage { background: rgba(229, 62, 62, 0.2); color: #FC8181; }
.thermo-rage.active { border-color: #E53E3E; background: rgba(229, 62, 62, 0.3); }

/* ==========================================================================
   Article Page Layout
   ========================================================================== */

.article-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
}

.article-header {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto var(--space-3xl);
  padding: 0 var(--space-xl);
}

.article-header h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-lg);
}

.article-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-4xl);
}

.article-content h2 {
  font-size: var(--font-size-2xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.article-content h3 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.article-content p {
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.article-content blockquote {
  border-left: 3px solid var(--steel-400);
  padding-left: var(--space-xl);
  margin: var(--space-2xl) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

.article-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--color-accent-hover);
}

.article-content a.btn {
  color: white;
  text-decoration: none;
}

.article-content a.btn:hover {
  color: white;
}

/* Inline tool CTA in articles */
.inline-tool-cta {
  background: linear-gradient(135deg, var(--charcoal-800), #243B53);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-2xl) 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.inline-tool-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(56,178,172,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.inline-tool-cta h3 {
  color: white;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  position: relative;
}

.inline-tool-cta p {
  color: var(--charcoal-400);
  margin-bottom: var(--space-lg);
  position: relative;
}

.inline-tool-cta .btn {
  position: relative;
}

/* Table of contents */
.toc {
  background: var(--color-surface-alt);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-2xl);
  margin-bottom: var(--space-3xl);
  border: 1px solid var(--color-border);
}

.toc h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.toc ol {
  list-style: decimal;
  padding-left: var(--space-xl);
}

.toc li {
  margin-bottom: var(--space-sm);
}

.toc a {
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.toc a:hover {
  color: var(--color-accent);
}

/* Pull quote */
.pull-quote {
  font-family: var(--font-family-heading);
  font-style: italic;
  font-size: var(--font-size-xl);
  color: var(--steel-500);
  text-align: center;
  padding: var(--space-xl) var(--space-2xl);
  margin: var(--space-2xl) 0;
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
  line-height: 1.6;
}

/* Related articles at bottom */
.related-articles {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3xl);
  margin-top: var(--space-3xl);
}

.related-articles h3 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

/* Article newsletter CTA */
.article-newsletter {
  background: #2B6C84;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  margin: var(--space-3xl) 0;
  color: white;
}

.article-newsletter h3 {
  color: white;
  margin-bottom: var(--space-md);
}

.article-newsletter p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-lg);
}

/* Author blurb */
.author-blurb {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-align: center;
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-2xl);
}

/* ==========================================================================
   Blog Index Page
   ========================================================================== */

.blog-header {
  text-align: center;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-3xl);
}

.blog-header h1 {
  margin-bottom: var(--space-md);
}

.blog-header p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  max-width: 500px;
  margin: 0 auto;
}

.blog-category {
  margin-bottom: var(--space-4xl);
}

.blog-category h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xl);
  text-align: left;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.legal-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.legal-content h1 {
  margin-bottom: var(--space-2xl);
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.legal-content p {
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.legal-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

/* ==========================================================================
   About Page
   ========================================================================== */

.about-page {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-4xl);
}

.about-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.about-content h1 {
  margin-bottom: var(--space-2xl);
}

.about-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.about-content p {
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.about-content ul {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.about-content li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
}

.error-page h1 {
  font-size: 6rem;
  color: var(--charcoal-200);
  margin-bottom: var(--space-lg);
}

.error-page p {
  color: var(--color-text-secondary);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2xl);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.animate-target {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.animate-target:nth-child(1) { transition-delay: 0s; }
.animate-target:nth-child(2) { transition-delay: 0.1s; }
.animate-target:nth-child(3) { transition-delay: 0.15s; }
.animate-target:nth-child(4) { transition-delay: 0.2s; }
.animate-target:nth-child(5) { transition-delay: 0.25s; }

/* ==========================================================================
   Emotion Labels (Affect Labeling - Phase 1)
   ========================================================================== */

.emotion-labels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}

.emotion-label {
  padding: var(--space-sm) var(--space-lg);
  border: 1.5px solid rgba(56, 178, 172, 0.4);
  border-radius: var(--radius-full);
  background: rgba(56, 178, 172, 0.08);
  color: var(--teal-300);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 150ms ease;
  animation: emotionPulse 2s ease-in-out infinite;
}

.emotion-label:nth-child(1) { animation-delay: 0s; }
.emotion-label:nth-child(2) { animation-delay: 0.3s; }
.emotion-label:nth-child(3) { animation-delay: 0.6s; }
.emotion-label:nth-child(4) { animation-delay: 0.9s; }

@keyframes emotionPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 178, 172, 0.3); }
  70% { box-shadow: 0 0 0 8px rgba(56, 178, 172, 0); }
}

.emotion-label:hover,
.emotion-label:focus-visible {
  background: rgba(56, 178, 172, 0.15);
  border-color: var(--teal-400);
}

.emotion-label.selected {
  background: var(--teal-400);
  color: #fff;
  border-color: var(--teal-400);
  animation: none;
}

.emotion-hint {
  font-size: var(--font-size-xs);
  color: var(--charcoal-500);
  margin-top: var(--space-md);
}

/* ==========================================================================
   Progress Ring (replaces countdown timer)
   ========================================================================== */

.progress-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  pointer-events: none;
  z-index: 1;
}

.progress-ring circle {
  fill: none;
  stroke: var(--teal-400);
  stroke-width: 2px;
  opacity: 0.3;
  transition: stroke-dashoffset 1s linear;
}

/* ==========================================================================
   Completion Glow (replaces particle celebration)
   ========================================================================== */

.breathing-circle.completion-glow {
  background: radial-gradient(circle at 40% 35%, var(--teal-400), var(--teal-600));
  box-shadow:
    inset 0 -4px 12px rgba(0,0,0,0.2),
    inset 0 4px 12px rgba(255,255,255,0.15),
    0 0 40px rgba(56, 178, 172, 0.25),
    0 0 80px rgba(56, 178, 172, 0.1);
  transition: box-shadow 2s ease, background 2s ease;
}

/* ==========================================================================
   Cold Water Tip
   ========================================================================== */

.cold-tip {
  font-size: var(--font-size-lg);
  color: var(--charcoal-200);
  font-weight: 600;
}

.cold-tip-sub {
  font-size: var(--font-size-sm);
  color: var(--charcoal-500);
  margin-top: var(--space-sm);
}

/* ==========================================================================
   Haptic Toggle
   ========================================================================== */

.haptic-toggle {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: none;
  border: 1px solid var(--charcoal-600);
  border-radius: var(--radius-md);
  color: var(--charcoal-400);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-family);
}

.haptic-toggle:hover {
  border-color: var(--charcoal-500);
  color: var(--charcoal-300);
}

.haptic-toggle.active {
  border-color: var(--teal-400);
  color: var(--teal-400);
}

/* ==========================================================================
   20-minute recovery info
   ========================================================================== */

.recovery-info {
  font-size: var(--font-size-sm);
  color: var(--charcoal-400);
  margin-top: var(--space-sm);
  line-height: 1.5;
  max-width: 320px;
  display: none;
}

.recovery-info.visible {
  display: block;
}

/* ==========================================================================
   Print Styles (for worksheet)
   ========================================================================== */

@media print {
  .nav,
  .footer,
  .tool-start-btn,
  .tool-complete-prompt,
  .newsletter-section,
  .worksheet-nav,
  .btn {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .tool-page {
    background: white;
    color: black;
    padding-top: 0;
  }

  .worksheet-result {
    background: white;
    border: 2px solid #333;
    color: black;
    page-break-inside: avoid;
  }

  .worksheet-result h3 {
    color: black;
  }

  .worksheet-result-row {
    border-color: #ccc;
  }

  .worksheet-result-label {
    color: #666;
  }

  .worksheet-result-value {
    color: black;
  }

  .tool-header h1 {
    color: black;
    font-size: 24pt;
  }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@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;
  }

  .animate-target {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .breathing-circle {
    transition: none !important;
  }

  .breathing-glow {
    transition: none !important;
  }

  .breathing-particle {
    display: none;
  }

  /* Phase 6: Reduced motion for new visual features */
  .ambient-background {
    transition: none !important;
  }

  .thermometer-gauge-fill,
  .thermometer-gauge-indicator {
    transition: none !important;
  }

  .quiz-question,
  .worksheet-step {
    transition: none !important;
  }

  canvas {
    display: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 968px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-background);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--color-border);
  }

  .nav-links.active {
    display: flex;
  }

  .tool-page .nav-links {
    background: var(--charcoal-800);
    border-top-color: var(--charcoal-700);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .trigger-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.5rem;
  }

  .section {
    padding: var(--space-3xl) 0;
  }

  .hero {
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  }

  .breathing-circle-wrap {
    width: 180px;
    height: 180px;
  }

  .breathing-circle {
    width: 180px;
    height: 180px;
  }

  .thermometer-gauge {
    display: none;
  }
}
