/* ============================================================
   Kindspring — styles.css
   1. CSS Custom Properties
   2. Reset & Base
   3. Typography
   4. Layout utilities
   5. Header & Navigation
   6. Hero sections
   7. Spring mechanic
   8. Content sections (intro, why, how, quote)
   9. Resource hub (find-your-light)
  10. Footer
  11. Animations
  12. Responsive / Mobile
   ============================================================ */

/* 1. CSS Custom Properties */
:root {
  /* Core */
  --color-bg: #FFFBF5;
  --color-bg-alt: #FFF4E6;
  --color-text: #2C1A0E;
  --color-text-secondary: #6B4C35;

  /* Spring palette */
  --color-spring: #FF8C42;
  --color-spring-light: #FFB347;
  --color-spring-glow: #FFE0B2;

  /* Resource category colors */
  --color-crisis: #E53935;
  --color-therapist: #FB8C00;
  --color-community: #F9A825;
  --color-learn: #43A047;
  --color-wellness: #00ACC1;
  --color-meditation: #5E35B1;
  --color-understand: #1E88E5;
  --color-specialized: #D81B60;
  --color-quickwins: #00897B;
  --color-grief: #546E7A;
  --color-lgbtq: #6A1B9A;

  /* UI */
  --color-text-muted: #7A5C43;  /* was #9E7B62 — 3.68:1 → now 5.92:1 (WCAG AA pass) */
  --color-border: #F0DCC8;
  --color-link: #D4621A;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Inter', sans-serif;
  --container-max: 960px;
  --header-height: 64px;
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

/* 3. Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }

p {
  color: var(--color-text-secondary);
}

a {
  color: var(--color-link);
  text-decoration: underline;
}

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

/* 4. Layout utilities */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 2.5rem 0;
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 5. Header & Navigation */
.header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  display: flex;
  align-items: center;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__logo:hover .nav__logo-img {
  opacity: 0.8;
}

.nav__logo-name {
  display: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-spring);
  margin-left: 0.6rem;
}

.nav__logo-orb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFB347;
  box-shadow: 0 0 10px rgba(255, 140, 66, 0.6);
  flex-shrink: 0;
  display: inline-block;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__menu a:hover,
.nav__menu a.is-active {
  color: var(--color-spring);
}

.nav__menu a.is-active {
  font-weight: 600;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-spring);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
}

.skip-link:focus {
  top: 0;
}

/* Accessibility: Focus Styles (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 3px;
  border-radius: 3px;
}

.nav__menu a:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 4px;
  border-radius: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 3px;
}

.resource-item:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.2);
}

.quickwin-card:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 2px;
}

.footer__social a:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 3px;
}

.footer__legal a:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 2px;
}

/* Hamburger → X animation */
.nav__hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 6. Hero sections */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  max-width: none;
}

.page-hero {
  background: var(--color-bg-alt);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  margin: 0 auto;
}

/* 7. Spring mechanic */
.spring {
  width: 300px;
  max-width: 80vw;
  aspect-ratio: 1;
  margin: 2rem auto;
  position: relative;
  cursor: pointer;
  outline: none;
}

.spring:focus-visible .spring__orb {
  box-shadow:
    0 0 40px rgba(255, 140, 66, 0.4),
    0 0 80px rgba(255, 180, 71, 0.2),
    0 0 0 4px rgba(255, 140, 66, 0.4);
}

.spring__orb {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle,
    #FFE0B2 0%,
    #FFB347 30%,
    #FF8C42 55%,
    rgba(255, 140, 66, 0.6) 70%,
    rgba(255, 140, 66, 0.2) 85%,
    transparent 100%
  );
  animation: spring-breathe 16s linear infinite;
  box-shadow:
    0 0 40px rgba(255, 140, 66, 0.4),
    0 0 80px rgba(255, 180, 71, 0.2),
    0 0 120px rgba(255, 224, 178, 0.1);
}

.spring__orb.is-bursting {
  animation: spring-burst 1.5s ease-out forwards;
}

.particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-spring-light);
  animation: particle-radiate 1.5s ease-out forwards;
  animation-delay: var(--delay, 0ms);
  pointer-events: none;
}

.spring__affirmation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%) scale(0.5);
  background: linear-gradient(160deg, #FFF6E0 0%, #FFE4A0 100%);
  border: 1px solid rgba(255, 179, 71, 0.4);
  border-radius: 16px;
  padding: 1rem 0.875rem;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.5;
  color: var(--color-text);
  box-shadow:
    0 0 24px rgba(255, 140, 66, 0.35),
    0 4px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  width: clamp(200px, 75%, 320px);
  white-space: normal;
  text-align: center;
  z-index: 10;
  pointer-events: none;
}

/* --- Affirmation animation variants (one picked at random each click) --- */
.spring__affirmation.aff-anim-1 {
  animation: aff-center 1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.spring__affirmation.aff-anim-2 {
  animation: aff-rise   1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.spring__affirmation.aff-anim-3 {
  animation: aff-drop   1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.spring__affirmation.aff-anim-4 {
  animation: aff-pop    1.0s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.spring__affirmation.is-hiding {
  animation: aff-fade-out 0.7s ease forwards;
}

.spring__breath-cue {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  min-height: 1.4em;
  margin: 0.5rem 0 0;
}

.spring__hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  font-style: italic;
}

/* 8. Content sections */
.intro {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--color-bg-alt);
}

.intro__title {
  margin-bottom: 0.75rem;
}

.intro__text {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  max-width: 55ch;
  margin: 0 auto;
  line-height: 1.75;
}

.cta-pair {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.cta-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.cta-card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-spring);
}

.cta-card p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.cta-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.cta-section {
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 0.75rem;
}

.cta-section p {
  margin: 0 auto 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--font-body);
}

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

.btn--primary:hover {
  background: #e07030;
  border-color: #e07030;
  transform: translateY(-1px);
  color: white;
}

.btn--outline {
  background: transparent;
  color: var(--color-spring);
  border-color: var(--color-spring);
}

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

.btn--large {
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
  border-radius: 10px;
}

/* Why page */
.why-section {
  padding: 3.5rem 0;
}

.why-section h2 {
  margin-bottom: 1rem;
}

.why-section p {
}

.why-section p + p {
  margin-top: 0.9rem;
}

.why-section + .why-section {
  border-top: 1px solid var(--color-border);
}

.quote-block {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-spring);
  border-radius: 0 12px 12px 0;
  padding: 2rem 2.5rem;
  margin: 2rem 0 3rem;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-text);
  line-height: 1.6;
  max-width: none;
}

.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: normal;
}

/* How page */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.mode-card {
  background: white;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.mode-card__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-spring-glow), var(--color-spring-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 0 auto 1rem;
}

.mode-card h3 {
  margin-bottom: 0.6rem;
  color: var(--color-spring);
}

.mode-card p {
  font-size: 0.95rem;
  margin: 0 auto;
}

.questions-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.questions-list li {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
}

.how-guide-list {
  list-style: none;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.how-guide-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.how-guide-list li span.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.crisis-callout {
  background: #FFF5F5;
  border: 2px solid var(--color-crisis);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}

.crisis-callout h3 {
  color: var(--color-crisis);
  margin-bottom: 0.5rem;
}

.crisis-callout p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  max-width: none;
}

.crisis-callout a {
  color: var(--color-crisis);
  font-weight: 600;
}

/* 9. Resource hub */
.find-help-hero {
  background: #FFF4E6;
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.find-help-hero h1 {
  margin-bottom: 0.5rem;
}

.find-help-hero p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin: 0 auto;
}

.resources-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Jump-to-section pill links (shared by FYL and Understand Others) */
.section-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 1.5rem 1.5rem 0.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-jumps a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.section-jumps a:hover {
  background: var(--color-spring);
  border-color: var(--color-spring);
  color: white;
}

.section-jumps a:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 3px;
}

.resources-section {
  padding: 0.75rem 0 1.25rem;
}

.resources-section + .resources-section {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

.resources-section ul,
.resources-section ol {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.resources-section li {
  margin-bottom: 0.55rem;
  line-height: 1.6;
}

.resources-section > .btn,
.supporters-section > .btn {
  margin-top: 0.25rem;
  margin-bottom: 1.25rem;
}

.resources-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 0.75rem 0 0.75rem;
  border-bottom: 2px solid var(--category-color, var(--color-spring));
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.resources-header::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--category-color, var(--color-spring));
  flex-shrink: 0;
}

.resources-section--crisis {
  --category-color: var(--color-crisis);
  background: #FFFAFA;
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(229, 57, 53, 0.15);
}

.resources-section--crisis .resources-header {
  padding-top: 0.5rem;
}

.resources-section--crisis .resource-item {
  border-left-width: 5px;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.resource-item {
  display: block;
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 2px solid transparent;
  border-left: 4px solid var(--category-color, var(--color-spring));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.resource-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--category-color, var(--color-spring));
  text-decoration: none;
  color: inherit;
}

.resource-item__name {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.resource-item__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
  line-height: 1.45;
}

.resource-item__phone {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--category-color, var(--color-spring));
}

.subcategory-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}

.section-intro {
  font-style: italic;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Quick wins */
.quickwins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.quickwin-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 2px solid transparent;
  border-left: 4px solid var(--color-quickwins);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
  background: white;
}

.quickwin-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--color-quickwins);
}

.quickwin-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.quickwin-card__body {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  display: none;
  margin-top: 0.5rem;
  max-width: none;
}

.quickwin-card.is-open .quickwin-card__body {
  display: block;
}

.quickwin-card__orb-note {
  margin-top: 0.75rem;
  font-style: italic;
  color: var(--color-text-muted);
}

.quickwin-card__toggle {
  font-size: 0.8rem;
  color: var(--color-quickwins);
  font-weight: 600;
  margin-top: 0.5rem;
  display: block;
}

/* 10. Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-spring);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  transform: translateY(8px);
  z-index: 200;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-spring-light);
  transform: translateY(-2px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.15s, visibility 0.15s;
    transform: none !important;
  }
}

/* 11. Footer */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.footer__tagline .tagline-bold {
  font-weight: 700;
}

.footer__tagline .tagline-period {
  font-size: 1.35em;
  font-weight: 700;
  line-height: 0;
  position: relative;
  top: 0.02em;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}

.footer__social a:hover {
  background: var(--color-spring);
  color: white;
  border-color: var(--color-spring);
}

.footer__legal {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer__legal a {
  color: var(--color-text-muted);
  text-decoration: none;
  margin: 0 0.25rem;
}

.footer__legal a:hover {
  color: var(--color-spring);
}

/* 11. Animations */
@keyframes spring-breathe {
  /* 0–25%: inhale */
  0% {
    transform: scale(0.80);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  /* 25–50%: hold full */
  25% {
    transform: scale(1.0);
    animation-timing-function: linear;
  }
  /* 50–75%: exhale */
  50% {
    transform: scale(1.0);
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  /* 75–100%: hold empty */
  75% {
    transform: scale(0.80);
    animation-timing-function: linear;
  }
  100% {
    transform: scale(0.80);
  }
}

@keyframes spring-burst {
  0%   { transform: scale(1); }
  25%  { transform: scale(1.2); box-shadow: 0 0 80px rgba(255,140,66,0.8), 0 0 160px rgba(255,180,71,0.4); }
  100% { transform: scale(0.80); }
}

/* aff-center: straight pop from the orb's core */
@keyframes aff-center {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-50%) scale(0.15); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1.08); }
  100% { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1); }
}

/* aff-rise: shoot up from below the orb */
@keyframes aff-rise {
  0%   { opacity: 0; transform: translateX(-50%) translateY(20%) scale(0.2); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-55%) scale(1.06); }
  100% { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1); }
}

/* aff-drop: fall into place from above */
@keyframes aff-drop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-120%) scale(0.2); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-46%) scale(1.06); }
  100% { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1); }
}

/* aff-pop: scale + gentle rotation burst */
@keyframes aff-pop {
  0%   { opacity: 0; transform: translateX(-50%) translateY(-50%) scale(0.1) rotate(-6deg); }
  50%  { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1.1)  rotate(2deg); }
  75%  { transform: translateX(-50%) translateY(-50%) scale(0.97) rotate(-1deg); }
  100% { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1)    rotate(0deg); }
}

/* fade out on auto-dismiss */
@keyframes aff-fade-out {
  0%   { opacity: 1; transform: translateX(-50%) translateY(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-50%) scale(0.88); }
}

@keyframes particle-radiate {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--tx, 100px), var(--ty, 0px)) scale(0.3);
  }
}

/* 12. Responsive / Mobile */
@media (max-width: 768px) {
  .nav__menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 99;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__logo-name {
    display: block;
  }

  .cta-pair {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

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

  .questions-list {
    grid-template-columns: 1fr;
  }

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

  .start-section {
    padding: 2rem 1.25rem 2.25rem;
  }

  .start-card {
    width: calc(50% - 0.5rem);
    padding: 1.25rem 0.875rem 1rem;
  }

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

  .hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  .spring__affirmation {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.45;
    width: clamp(200px, 88%, 290px);
    border-radius: 12px;
  }

  .role-jumps {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 1.25rem 1.5rem 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .role-jumps::-webkit-scrollbar {
    display: none;
  }
  .role-jumps a {
    flex-shrink: 0;
    font-size: 0.8125rem;
    padding: 0.45rem 0.9rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .spring__orb { animation: none; }
  .spring__breath-cue { display: none; }
  .particle { animation: none; }
  .spring__affirmation,
  .spring__affirmation.aff-anim-1,
  .spring__affirmation.aff-anim-2,
  .spring__affirmation.aff-anim-3,
  .spring__affirmation.aff-anim-4,
  .spring__affirmation.is-hiding { animation: none; opacity: 1; }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * { transition-duration: 0.01ms !important; }
}

/* 13. Legal pages */
.legal-hero {
  background: var(--color-bg-alt);
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.legal-hero p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-text);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
}
.legal-content h3 {
  font-size: 1.05rem;
  color: var(--color-text);
  margin: 1.5rem 0 0.5rem;
}
.legal-content p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content ul, .legal-content ol {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin: 0.5rem 0 1rem 1.5rem;
}
.legal-content li {
  margin-bottom: 0.4rem;
}
.legal-content a {
  color: var(--color-link);
}
.legal-content strong {
  color: var(--color-text);
}
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}
.cookie-table th {
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-weight: 600;
  text-align: left;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
}
.cookie-table td {
  color: var(--color-text-secondary);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  vertical-align: top;
}
.cookie-table tr:nth-child(even) td {
  background: var(--color-bg-alt);
}
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0 2rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}
.toc li {
  margin-bottom: 0.3rem;
}

/* 14. 404 page */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: calc(100vh - var(--header-height) - 160px);
}
.not-found__orb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle,
    #FFE0B2 0%,
    #FFB347 30%,
    #FF8C42 55%,
    rgba(255, 140, 66, 0.4) 80%,
    transparent 100%
  );
  box-shadow: 0 0 30px rgba(255, 140, 66, 0.35), 0 0 60px rgba(255, 180, 71, 0.15);
  margin-bottom: 2rem;
  opacity: 0.6;
}
.not-found__code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 600;
  color: var(--color-spring);
  line-height: 1;
  margin-bottom: 0.25rem;
  opacity: 0.25;
}
.not-found h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}
.not-found p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 40ch;
  margin: 0 auto 2rem;
}
.not-found__links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* 15. Understand Others page */
.supporters-hero {
  background: var(--color-bg-alt);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.supporters-hero h1 {
  margin-bottom: 0.6rem;
}
.supporters-hero p {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin: 0 auto;
}
.role-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 2rem 1.5rem 1rem;
  max-width: var(--container-max);
  margin: 0 auto;
}
.role-jumps a {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.role-jumps a:hover {
  background: var(--color-spring);
  border-color: var(--color-spring);
  color: white;
}
.role-jumps a:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 3px;
}
.supporters-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.supporters-section {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--color-border);
}
.supporters-section:first-of-type {
  border-top: none;
  padding-top: 2rem;
}
.supporters-section h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--color-text);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--category-color, var(--color-spring));
  margin-bottom: 1.25rem;
}

.supporters-section h2::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--category-color, var(--color-spring));
  flex-shrink: 0;
}
.supporters-section .section-intro {
  margin-bottom: 1.5rem;
}
.subcategory-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.25rem 0 0.5rem;
}

/* 16. Utility classes */
.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-group--center {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.mt-md {
  margin-top: 1.5rem;
}
.intro-box {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.intro-box__text {
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.intro-box__note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ── Start Section ── */
.start-section {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: 1.75rem 1.5rem 2rem;
}

.start-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.start-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  background: white;
  border: 1.5px solid var(--color-border);
  border-radius: 16px;
  padding: 1.5rem 1.125rem 1.25rem;
  text-decoration: none;
  color: var(--color-text);
  width: 152px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
}

.start-card:hover {
  border-color: var(--color-spring);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.13);
  transform: translateY(-3px);
  color: var(--color-text);
}

.start-card:focus-visible {
  outline: 2px solid var(--color-spring);
  outline-offset: 3px;
}

.start-card__icon {
  width: 34px;
  height: 34px;
  color: var(--color-spring);
  flex-shrink: 0;
}

.start-card__label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.start-card--crisis {
  border-color: rgba(229, 57, 53, 0.3);
}

.start-card--crisis .start-card__icon {
  color: var(--color-crisis);
}

.start-card--crisis:hover {
  border-color: var(--color-crisis);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.12);
}

/* Label above section-jumps nav */
.jumps-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 2.25rem 0 0;
}
.callout-box {
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-spring);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: white;
}
.callout-box__text {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}
.callout-box .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
.side-callout {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-spring);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.side-callout p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.side-callout p:first-child {
  color: var(--color-text);
  font-weight: 600;
}
.side-callout p:last-child {
  margin: 0;
}
.info-box {
  background: var(--color-bg-alt);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.info-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.info-box p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.info-box p:last-child {
  margin: 0;
}
.section--bordered {
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
}
.section--bordered h2 {
  margin-bottom: 0.75rem;
}
.section--bordered > p {
  margin-bottom: 0;
}
.section--cta {
  padding: 1rem 0 4rem;
}
.section--cta h2 {
  margin-bottom: 0.75rem;
}
.section--cta > p {
  margin-bottom: 1.75rem;
}
.section-intro--spaced {
  margin-top: 0.75rem;
}
.quickwins-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* 17. Resource section color modifiers */
.resources-section--therapist  { --category-color: var(--color-therapist); }
.resources-section--understand { --category-color: var(--color-understand); }
.resources-section--community  { --category-color: var(--color-community); }
.resources-section--learn      { --category-color: var(--color-learn); }
.resources-section--wellness   { --category-color: var(--color-wellness); }
.resources-section--meditation { --category-color: var(--color-meditation); }
.resources-section--lgbtq      { --category-color: var(--color-lgbtq); }
.resources-section--specialized{ --category-color: var(--color-specialized); }
.resources-section--grief      { --category-color: var(--color-grief); }
.resources-section--spring     { --category-color: var(--color-spring); }
.resources-section--quickwins  { --category-color: var(--color-quickwins); }

/* 18. Supporter section color modifiers */
.supporters-section--therapist  { --category-color: var(--color-therapist); }
.supporters-section--community  { --category-color: var(--color-community); }
.supporters-section--learn      { --category-color: var(--color-learn); }
.supporters-section--wellness   { --category-color: var(--color-wellness); }
.supporters-section--understand { --category-color: var(--color-understand); }
.supporters-section--specialized{ --category-color: var(--color-specialized); }
.supporters-section--meditation { --category-color: var(--color-meditation); }
.supporters-section--crisis     { --category-color: var(--color-crisis); }
.supporters-section--lgbtq      { --category-color: var(--color-lgbtq); }
.supporters-section--grief      { --category-color: var(--color-grief); }
.supporters-section--quickwins  { --category-color: var(--color-quickwins); }
.supporters-section--spring     { --category-color: var(--color-spring); }
.supporters-section--grief      { --category-color: var(--color-grief); }

/* 19. How page dot color modifiers */
.dot--crisis     { background: var(--color-crisis); }
.dot--therapist  { background: var(--color-therapist); }
.dot--wellness   { background: var(--color-wellness); }
.dot--understand { background: var(--color-understand); }
.dot--grief      { background: var(--color-grief); }
.dot--learn      { background: var(--color-learn); }
