* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg-light: #fbf9f7;
  --bg-soft: #f5f1ed;
  --text-deep: #2c3a2c;
  --text-soft: #5a6b5a;
  --primary-sage: #9bb88b;
  --primary-moon: #b8b9c0;
  --accent-dusty-blue: #7b9cb0;
  --accent-lavender: #c4b5d0;
  --border-soft: #e2dbd1;
  --card-bg: #ffffffd4;
  --quote-bg: #f0ece5;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.03);
  --font-serif: "Literata", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --container-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 280px;
  --border-radius-lg: 32px;
  --border-radius-md: 24px;
  --border-radius-sm: 16px;
}
body {
  background-color: var(--bg-light);
  font-family: var(--font-sans);
  color: var(--text-deep);
  line-height: 1.8;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: #1e2a1e;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 48px;
  margin-bottom: 0.75rem;
}
h2 {
  font-size: 32px;
  margin: 3.2rem 0 1.2rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.75rem;
  position: relative;
}
h2:before {
  content: "✦";
  color: var(--primary-sage);
  font-size: 1.4rem;
  position: absolute;
  left: -1.8rem;
  top: -0.2rem;
  opacity: 0.5;
}
h3 {
  font-size: 24px;
  margin: 2.2rem 0 1rem;
  font-weight: 600;
  color: #2f462f;
}
p {
  margin-bottom: 1.4rem;
  color: var(--text-deep);
}
a {
  color: var(--accent-dusty-blue);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
}
a:hover {
  border-bottom-color: var(--primary-sage);
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* ===== META & HEADER ===== */
.meta-category {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a28f84;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.meta-category i {
  color: var(--primary-terra);
  font-size: 14px;
}

.title-block {
  margin: 0.5rem 0 0.8rem;
}

.subhead {
  font-size: 24px;
  font-family: var(--font-serif-body);
  color: #8a7a70;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 15px;
  margin: 1.5rem 0 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: #7a6e66;
}

.byline i {
  color: var(--primary-terra);
  margin-right: 0.4rem;
}

.reading-time {
  display: flex;
  align-items: center;
}

/* Header & Navigation */
.site-header {
  background: rgba(253, 248, 245, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-deep);
  text-decoration: none;
}

.logo span {
  color: var(--primary-sage);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #5a524c;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-sage);
}

.main-wrapper {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
}
.article-grid {
  display: flex;
  gap: 3.5rem;
  position: relative;
}
.article-content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  background: transparent;
}
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: none;
}
.meta-category {
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #8d8a82;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.title-block {
  margin: 0.5rem 0 0.8rem;
}
.subhead {
  font-size: 22px;
  font-family: var(--font-serif);
  color: #6b7d6b;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 15px;
  margin: 1.5rem 0 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: #5b685b;
}
.byline i {
  color: var(--primary-sage);
  margin-right: 0.4rem;
}
.hero-container {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin: 1.5rem 0 2.5rem;
  box-shadow: var(--shadow-soft);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: rgba(44, 58, 44, 0.3);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  font-size: 0.9rem;
}
.emotional-hook {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #3a4a3a;
  background: rgba(155, 184, 139, 0.08);
  padding: 1.8rem;
  border-radius: var(--border-radius-md);
  border-left: 5px solid var(--primary-sage);
  margin: 2rem 0;
}
.technique-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 1.8rem;
  margin: 2rem 0;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}
.technique-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-sage);
}
.technique-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.expert-quote {
  margin: 2.8rem 0 2rem;
  padding: 0 1.5rem 0 2.2rem;
  border-left: 5px solid var(--primary-sage);
  position: relative;
}
.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.6;
  font-style: italic;
  color: #3d4d3d;
  margin-bottom: 0.6rem;
}
.quote-source {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #5f705f;
}
.citation-inline {
  font-size: 0.85rem;
  color: #6f7c6f;
  font-style: normal;
  margin-left: 0.25rem;
}

.internal-link {
  background: #eef2ea;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  display: inline-block;
  font-weight: 500;
  margin: 0.2rem 0;
  border: 1px solid #cbd6c0;
  transition: all 0.2s;
  text-decoration: none;
  color: #2c4a2c;
}
.internal-link:hover {
  background: #e2e9da;
  transform: translateY(-2px);
}
.reflection-box {
  background: #f0ebe4;
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 2.8rem 0;
  border-left: 6px solid var(--accent-dusty-blue);
}

/* ============================================================
   MIDNIGHT MIND — EMOTIONAL HOOK
   ============================================================ */

.midnight-hook {
  position: relative;
  margin: 2.5rem 0;
  padding: 3rem 2.5rem;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 20% 0%,
      rgba(123, 156, 176, 0.18) 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 100%,
      rgba(196, 181, 208, 0.15) 0%,
      transparent 55%
    ),
    linear-gradient(160deg, #1a2332 0%, #232f42 45%, #2b3a52 75%, #3a4d68 100%);
  box-shadow:
    0 20px 60px -20px rgba(26, 35, 50, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
  animation: midnight-breathe 8s ease-in-out infinite;
}

@keyframes midnight-breathe {
  0%,
  100% {
    box-shadow:
      0 20px 60px -20px rgba(26, 35, 50, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }
  50% {
    box-shadow:
      0 25px 70px -20px rgba(26, 35, 50, 0.55),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

/* Stars */
.midnight-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.midnight-stars .star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  opacity: 0.4;
  animation: star-twinkle 3.5s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.15);
  }
}

/* Moon glow */
.midnight-moon {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(255, 250, 230, 0.35) 0%,
    rgba(255, 250, 230, 0.12) 35%,
    transparent 70%
  );
  filter: blur(2px);
  z-index: 0;
  pointer-events: none;
  animation: moon-drift 14s ease-in-out infinite;
}

@keyframes moon-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-14px, 10px);
  }
}

/* Inner content */
.midnight-hook-inner {
  position: relative;
  z-index: 1;
}

.midnight-line-1,
.midnight-line-2 {
  color: #e8ecf2;
  font-size: 1.15rem;
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

.midnight-line-2 {
  margin-bottom: 0;
  color: #d4dbe6;
  font-size: 1.08rem;
}

.midnight-line-1 .midnight-em {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  display: inline-block;
  margin-right: 0.35rem;
  color: #f3f6fa;
  letter-spacing: -0.01em;
}

/* Fade-in on scroll */
.midnight-hook .midnight-line-1,
.midnight-hook .midnight-line-2 {
  opacity: 0;
  transform: translateY(14px);
  animation: midnight-rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.midnight-hook .midnight-line-1 {
  animation-delay: 0.15s;
}
.midnight-hook .midnight-line-2 {
  animation-delay: 0.45s;
}

@keyframes midnight-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   AUTHOR NOTE — ANIMATED FEATHER CARD
   ============================================================ */

.author-note {
  position: relative;
  margin: 2rem 0 2.5rem;
  padding: 1.8rem 1.8rem 1.8rem 5rem;
  border-radius: 60px;
  background: linear-gradient(135deg, #f3f0ea 0%, #eef4ee 100%);
  border: 1px solid #e0dbd1;
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  box-shadow: 0 6px 24px -12px rgba(155, 184, 139, 0.35);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.author-note:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -14px rgba(155, 184, 139, 0.5);
}

.author-note-icon {
  position: absolute;
  left: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9bb88b 0%, #7a9a6b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px -6px rgba(155, 184, 139, 0.7);
  animation: feather-float 4s ease-in-out infinite;
}

@keyframes feather-float {
  0%,
  100% {
    transform: translateY(-50%) rotate(0deg);
  }
  50% {
    transform: translateY(calc(-50% - 4px)) rotate(-6deg);
  }
}

.author-note-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a4a3a;
  position: relative;
  z-index: 1;
}

/* Shimmer sweep */
.author-note-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(155, 184, 139, 0.15) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: note-sweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes note-sweep {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

/* ============================================================
   SECTION FADE-IN ON SCROLL
   ============================================================ */

.section-fade[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.section-fade[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BRAIN SPLIT — QUIET vs TIRED
   ============================================================ */

.brain-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.brain-split.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.brain-half {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid #e2ddd5;
  box-shadow: 0 6px 20px -12px rgba(44, 58, 44, 0.15);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.brain-half:hover {
  transform: translateY(-4px);
  border-color: var(--primary-sage);
}

.brain-half-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  display: block;
  animation: brain-icon-bob 3s ease-in-out infinite;
}

@keyframes brain-icon-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.brain-quiet {
  border-left: 4px solid #7b9cb0;
}

.brain-tired {
  border-left: 4px solid var(--accent-lavender, #c4b5d0);
}

.brain-half p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a4a3a;
}

.brain-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: #9b8f82;
  font-size: 1rem;
  padding: 0 0.5rem;
}

/* ============================================================
   RELATED LINK — ANIMATED PILL
   ============================================================ */

.related-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: #f9f7f4;
  border-radius: 60px;
  border: 1px dashed #d9cfc1;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.related-link-row.is-visible {
  animation: related-glow 2.4s ease-in-out infinite;
}

@keyframes related-glow {
  0%,
  100% {
    border-color: #d9cfc1;
  }
  50% {
    border-color: var(--primary-sage);
  }
}

.related-link-row:hover {
  background: #f3efe8;
}

.related-arrow {
  animation: arrow-slide 1.8s ease-in-out infinite;
}

@keyframes arrow-slide {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.related-pill {
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.related-pill:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 720px) {
  .midnight-hook {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .midnight-line-1 .midnight-em {
    font-size: 1.25rem;
  }

  .midnight-line-1,
  .midnight-line-2 {
    font-size: 1rem;
  }

  .author-note {
    padding: 1.5rem 1.5rem 1.5rem 4.2rem;
    border-radius: 40px;
  }

  .author-note-icon {
    left: 1rem;
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .brain-split {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .brain-divider {
    padding: 0.25rem 0;
    font-size: 0.9rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .midnight-hook,
  .midnight-hook .midnight-line-1,
  .midnight-hook .midnight-line-2,
  .midnight-stars .star,
  .midnight-moon,
  .author-note-icon,
  .author-note-glow,
  .brain-half-icon,
  .related-arrow,
  .related-link-row.is-visible {
    animation: none !important;
  }

  .midnight-hook .midnight-line-1,
  .midnight-hook .midnight-line-2,
  .section-fade[data-reveal],
  .brain-split {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   SECTION 5 — CALM QUOTE RIBBON
   ============================================================ */

.calm-quote {
  position: relative;
  margin: 1.8rem 0;
  padding: 2rem 2rem 2rem 5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #f5f1eb 0%, #eef4ee 100%);
  border: 1px solid #e0dbd1;
  border-left: 6px solid var(--primary-sage);
  overflow: hidden;
  box-shadow: 0 10px 32px -18px rgba(155, 184, 139, 0.45);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.calm-quote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.calm-quote-mark {
  position: absolute;
  left: 1.4rem;
  top: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9bb88b 0%, #7a9a6b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 20px -8px rgba(155, 184, 139, 0.7);
  animation: calm-heartbeat 3.5s ease-in-out infinite;
}

@keyframes calm-heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.08);
  }
  40% {
    transform: scale(0.98);
  }
  60% {
    transform: scale(1.05);
  }
}

.calm-quote-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(155, 184, 139, 0.18) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: calm-sweep 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes calm-sweep {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

.calm-quote-body {
  position: relative;
  z-index: 1;
}

.calm-quote-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #2f3e2f;
}

.calm-quote-body p:last-child {
  margin-bottom: 0;
}

.calm-quote-body strong {
  color: #2c4a2c;
}

/* ============================================================
   TECHNIQUE FLOW CARDS (GENTLE BREATHING / PMR)
   ============================================================ */

.technique-flow {
  margin: 2rem 0;
  padding: 1.8rem 1.8rem 1.8rem 1.8rem;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2ddd5;
  box-shadow: 0 8px 28px -18px rgba(44, 58, 44, 0.15);
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  position: relative;
  overflow: hidden;
}

.technique-flow.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.technique-flow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-sage) 0%,
    #7b9cb0 50%,
    var(--accent-lavender, #c4b5d0) 100%
  );
  opacity: 0.85;
}

.technique-flow-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1rem;
}

.technique-flow-head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  color: #2f462f;
}

.technique-flow p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #3a4a3a;
}

.technique-flow p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   BREATHING ORB
   ============================================================ */

.breath-orb {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.breath-orb-inner,
.breath-orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.breath-orb-inner {
  background: radial-gradient(
    circle at 35% 35%,
    #cfe3c7 0%,
    #9bb88b 60%,
    #7a9a6b 100%
  );
  box-shadow:
    inset 0 4px 10px rgba(255, 255, 255, 0.5),
    0 6px 18px -6px rgba(155, 184, 139, 0.7);
  animation: breath-inhale 6s ease-in-out infinite;
}

@keyframes breath-inhale {
  0%,
  100% {
    transform: scale(0.82);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.breath-orb-ring {
  border: 2px solid rgba(155, 184, 139, 0.45);
  animation: breath-ring 6s ease-in-out infinite;
}

@keyframes breath-ring {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* ============================================================
   PMR BODY MAP (8 DOTS — HEAD TO TOE)
   ============================================================ */

.pmr-body-map {
  position: relative;
  width: 44px;
  height: 60px;
  flex-shrink: 0;
}

.pmr-dot {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-lavender, #c4b5d0);
  transform: translateX(-50%);
  top: calc(var(--i) * 7px);
  box-shadow: 0 0 0 0 rgba(196, 181, 208, 0.55);
  animation: pmr-pulse 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.35s);
}

.pmr-dot:nth-child(1) {
  background: #9bb88b;
}
.pmr-dot:nth-child(2) {
  background: #a8c39c;
}
.pmr-dot:nth-child(3) {
  background: #b6cfa8;
}
.pmr-dot:nth-child(4) {
  background: #b9c9c4;
}
.pmr-dot:nth-child(5) {
  background: #a9bcc7;
}
.pmr-dot:nth-child(6) {
  background: #a4b6c6;
}
.pmr-dot:nth-child(7) {
  background: #b8b3c9;
}
.pmr-dot:nth-child(8) {
  background: #c4b5d0;
}

@keyframes pmr-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(196, 181, 208, 0.55);
    transform: translateX(-50%) scale(1);
  }
  40% {
    box-shadow: 0 0 0 10px rgba(196, 181, 208, 0);
    transform: translateX(-50%) scale(1.25);
  }
}

/* ============================================================
   WORRY WINDOW — CLOCK + CARDS
   ============================================================ */

.worry-window {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1.5rem 0 2.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.worry-window.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.worry-clock {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.worry-clock-face {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fbf9f7 0%, #f3eee6 100%);
  border: 2px solid #e2dbd1;
  box-shadow:
    inset 0 4px 12px rgba(155, 184, 139, 0.1),
    0 12px 32px -16px rgba(44, 58, 44, 0.25);
  overflow: hidden;
}

/* Tick marks via conic pattern */
.worry-clock-face::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    #c9c1b4 0deg 2deg,
    transparent 2deg 30deg
  );
  opacity: 0.55;
  mask: radial-gradient(circle, transparent 60%, #000 62%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 62%);
}

.worry-clock-hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 3px;
  height: 60px;
  background: linear-gradient(180deg, var(--primary-sage), #6f8e7e);
  border-radius: 3px;
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(45deg);
  animation: worry-hand-sweep 20s linear infinite;
  z-index: 2;
}

@keyframes worry-hand-sweep {
  from {
    transform: translateX(-50%) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}

.worry-clock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-sage);
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 0 4px rgba(155, 184, 139, 0.2);
}

.worry-clock-label {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: #5a6b5a;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.9rem;
  border-radius: 40px;
  background: #f3efe8;
  border: 1px dashed #d4cbbc;
}

.worry-cards {
  display: grid;
  gap: 1.2rem;
}

.worry-card {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  padding: 1.5rem 1.6rem 1.5rem 4rem;
  border: 1px solid #e2ddd5;
  box-shadow: 0 8px 26px -18px rgba(44, 58, 44, 0.18);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.worry-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-sage);
  box-shadow: 0 16px 40px -20px rgba(155, 184, 139, 0.5);
}

.worry-card-icon {
  position: absolute;
  left: 1.2rem;
  top: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef4ee 0%, #dfeadd 100%);
  color: var(--primary-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid #d9e3d5;
}

.worry-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3a4a3a;
}

/* ============================================================
   RELATED LINK ROW (shared with earlier section — keep if new)
   ============================================================ */

.related-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: #f9f7f4;
  border-radius: 60px;
  border: 1px dashed #d9cfc1;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
  margin-top: 1.5rem;
}

.related-link-row.is-visible {
  animation: related-glow 2.4s ease-in-out infinite;
}

@keyframes related-glow {
  0%,
  100% {
    border-color: #d9cfc1;
  }
  50% {
    border-color: var(--primary-sage);
  }
}

.related-link-row:hover {
  background: #f3efe8;
}

.related-arrow {
  animation: arrow-slide 1.8s ease-in-out infinite;
}

@keyframes arrow-slide {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.related-pill {
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.related-pill:hover {
  transform: translateY(-2px) scale(1.02);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .worry-window {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .worry-clock {
    position: static;
    flex-direction: row;
    justify-content: center;
  }

  .worry-clock-face {
    width: 120px;
    height: 120px;
  }

  .worry-clock-hand {
    height: 44px;
  }
}

@media (max-width: 600px) {
  .calm-quote {
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    border-radius: 20px;
  }

  .calm-quote-mark {
    left: 1rem;
    width: 38px;
    height: 38px;
  }

  .technique-flow {
    padding: 1.4rem 1.2rem;
    border-radius: 20px;
  }

  .technique-flow-head {
    gap: 0.9rem;
  }

  .technique-flow-head h3 {
    font-size: 1.15rem;
  }

  .breath-orb {
    width: 48px;
    height: 48px;
  }

  .worry-card {
    padding: 1.2rem 1.2rem 1.2rem 3.6rem;
    border-radius: 18px;
  }

  .worry-card-icon {
    left: 1rem;
    top: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .calm-quote-mark,
  .calm-quote-glow,
  .breath-orb-inner,
  .breath-orb-ring,
  .pmr-dot,
  .worry-clock-hand,
  .related-arrow,
  .related-link-row.is-visible {
    animation: none !important;
  }

  .calm-quote,
  .technique-flow,
  .worry-window {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   SECTION 7 — MENTAL PARKING LOT
   ============================================================ */

.parking-lot {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.8rem;
  align-items: start;
  margin: 1.2rem 0 2.5rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, #faf7f2 0%, #f3efe8 100%);
  border-radius: 24px;
  border: 1px solid #e2ddd5;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.parking-lot.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.parking-lot-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.parking-sign {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(145deg, #7b9cb0 0%, #5d7e92 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -10px rgba(93, 126, 146, 0.7);
  animation: parking-sign-sway 4s ease-in-out infinite;
}

@keyframes parking-sign-sway {
  0%,
  100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(2deg);
  }
}

.parking-sign-letter {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.parking-slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 100%;
}

.parking-slot {
  height: 22px;
  border-radius: 4px;
  background: #e2ddd5;
  border: 1px dashed #c9c1b4;
  position: relative;
  overflow: hidden;
}

.parking-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(155, 184, 139, 0.5) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: slot-shimmer 3.5s ease-in-out infinite;
}

.parking-slot:nth-child(2)::before {
  animation-delay: 0.4s;
}
.parking-slot:nth-child(3)::before {
  animation-delay: 0.8s;
}
.parking-slot:nth-child(4)::before {
  animation-delay: 1.2s;
}

@keyframes slot-shimmer {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

.parking-lot-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #3a4a3a;
}

.parking-lot-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SECTION 8 — 4-6 BREATH PACER
   ============================================================ */

.breath-pacer {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
  margin: 1.2rem 0 2.5rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, #f5f8f4 0%, #eaf1e8 100%);
  border-radius: 24px;
  border: 1px solid #dbe6d8;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.breath-pacer.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.breath-pacer-visual {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.breath-pacer-ring,
.breath-pacer-core {
  position: absolute;
  border-radius: 50%;
}

.breath-pacer-ring-outer {
  inset: 0;
  border: 2px solid rgba(155, 184, 139, 0.35);
  animation: pacer-outer 10s ease-in-out infinite;
}

.breath-pacer-ring-mid {
  inset: 22px;
  border: 2px solid rgba(155, 184, 139, 0.55);
  animation: pacer-mid 10s ease-in-out infinite;
}

.breath-pacer-core {
  inset: 46px;
  background: radial-gradient(
    circle at 35% 35%,
    #cfe3c7 0%,
    #9bb88b 55%,
    #7a9a6b 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 4px 12px rgba(255, 255, 255, 0.55),
    0 10px 26px -10px rgba(155, 184, 139, 0.75);
  animation: pacer-core 10s ease-in-out infinite;
}

.breath-pacer-label {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 4s inhale + 6s exhale = 10s loop */
@keyframes pacer-core {
  0% {
    transform: scale(0.8);
  }
  40% {
    transform: scale(1.05);
  } /* end of 4s inhale */
  100% {
    transform: scale(0.8);
  } /* end of 6s exhale */
}

@keyframes pacer-mid {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

@keyframes pacer-outer {
  0% {
    transform: scale(0.92);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.15);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.92);
    opacity: 0.5;
  }
}

.breath-pacer-body p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #3a4a3a;
}

/* Bottom strip */
.breath-pacer-strip {
  display: grid;
  grid-template-columns: 1fr 0.4fr 1.4fr;
  align-items: center;
  gap: 0.5rem;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8eee5;
  border: 1px solid #dbe6d8;
}

.breath-pacer-inhale,
.breath-pacer-exhale,
.breath-pacer-hold {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2f462f;
}

.breath-pacer-inhale {
  background: linear-gradient(90deg, #cfe3c7 0%, #b8d4a8 100%);
  position: relative;
  overflow: hidden;
}

.breath-pacer-exhale {
  background: linear-gradient(90deg, #a9bcc7 0%, #7b9cb0 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.breath-pacer-inhale::before,
.breath-pacer-exhale::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: breath-bar 10s linear infinite;
}

.breath-pacer-exhale::before {
  animation-delay: 4s;
}

@keyframes breath-bar {
  0% {
    transform: translateX(-100%);
  }
  40% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.breath-pacer-hold {
  background: #dde5d9;
}

.breath-pacer-phase {
  letter-spacing: 0.02em;
}

.breath-pacer-count {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

/* ============================================================
   SECTION 9 — DIM THE LIGHTS
   ============================================================ */

.dim-the-lights {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.8rem;
  align-items: center;
  margin: 1.2rem 0 2.5rem;
  padding: 1.8rem;
  background: linear-gradient(135deg, #fdfaf3 0%, #f1ecdd 100%);
  border-radius: 24px;
  border: 1px solid #e6ddc9;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.dim-the-lights.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dim-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.dim-bulb {
  position: relative;
  width: 70px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dim-filament {
  position: absolute;
  top: 18px;
  width: 3px;
  height: 24px;
  border-radius: 2px;
  background: #d9a866;
  box-shadow: 0 0 12px #f0c890;
  animation: filament-flicker 3s ease-in-out infinite;
}

@keyframes filament-flicker {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 14px #f0c890;
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 8px #f0c890;
  }
}

.dim-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 220, 150, 0.55) 0%,
    rgba(255, 200, 110, 0.15) 45%,
    transparent 72%
  );
  animation: glow-pulse 5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.dim-slider {
  position: relative;
  width: 90px;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4a4a4a 0%, #d9a866 100%);
}

.dim-knob {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d9a866;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  animation: knob-drift 8s ease-in-out infinite;
}

@keyframes knob-drift {
  0%,
  100% {
    left: 30%;
  }
  50% {
    left: 70%;
  }
}

.dim-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #3a4a3a;
}

.dim-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SECTION 10 — HIDDEN TRIGGERS
   ============================================================ */

.hidden-triggers {
  position: relative;
  margin: 1.2rem 0 2.5rem;
  padding: 2rem;
  background: linear-gradient(135deg, #f7f2f6 0%, #efe6f0 100%);
  border-radius: 24px;
  border: 1px solid #e2d6e4;
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.hidden-triggers.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden-triggers-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hidden-triggers-ripple span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(196, 181, 208, 0.5);
  animation: hidden-ripple 6s ease-out infinite;
}

.hidden-triggers-ripple span:nth-child(2) {
  animation-delay: 2s;
}

.hidden-triggers-ripple span:nth-child(3) {
  animation-delay: 4s;
}

@keyframes hidden-ripple {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(22);
    opacity: 0;
  }
}

.hidden-triggers-body {
  position: relative;
  z-index: 1;
}

.hidden-triggers-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #3a3a4a;
}

.hidden-triggers-body p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SECTION 11 — GROUNDING STACK
   ============================================================ */

.grounding-stack {
  margin: 1.2rem 0 2.5rem;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.grounding-stack.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grounding-intro {
  margin-bottom: 1.6rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #3a4a3a;
}

.grounding-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.grounding-row {
  display: grid;
  grid-template-columns: 52px 44px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.1rem;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2ddd5;
  box-shadow: 0 6px 20px -14px rgba(44, 58, 44, 0.18);
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    border-color 0.3s ease;
  transition-delay: calc(var(--i) * 0.12s);
}

.grounding-stack.is-visible .grounding-row {
  opacity: 1;
  transform: translateX(0);
}

.grounding-row:hover {
  border-color: var(--primary-sage);
}

.grounding-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-sage);
  text-align: center;
  line-height: 1;
}

.grounding-icon {
  font-size: 1.35rem;
  text-align: center;
}

.grounding-sense {
  font-size: 0.98rem;
  color: #3a4a3a;
  font-weight: 500;
}

/* ============================================================
   SECTION 12 — GENTLE THRESHOLD
   ============================================================ */

.gentle-threshold {
  position: relative;
  margin: 1.2rem 0 3rem;
  padding: 2.2rem 2rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(123, 156, 176, 0.15) 0%,
      transparent 55%
    ),
    linear-gradient(160deg, #2b3547 0%, #3a4a5e 60%, #4a5c72 100%);
  color: #e8ecf2;
  box-shadow:
    0 20px 50px -22px rgba(43, 53, 71, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.gentle-threshold.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gentle-threshold-light {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 220, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: threshold-glow 9s ease-in-out infinite;
}

@keyframes threshold-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.gentle-threshold-body {
  position: relative;
  z-index: 1;
}

.gentle-threshold-body p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.8;
  color: #e0e6ef;
}

.gentle-threshold-body p:last-child {
  margin-bottom: 0;
}

.gentle-threshold-body strong {
  color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 820px) {
  .parking-lot,
  .breath-pacer,
  .dim-the-lights {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .parking-lot-illustration,
  .dim-visual {
    flex-direction: row;
    justify-content: center;
    gap: 1.4rem;
  }

  .parking-slots {
    max-width: 160px;
  }

  .breath-pacer-visual {
    width: 130px;
    height: 130px;
  }

  .breath-pacer-strip {
    grid-template-columns: 1fr 0.3fr 1.2fr;
  }
}

@media (max-width: 560px) {
  .parking-lot,
  .breath-pacer,
  .dim-the-lights,
  .hidden-triggers,
  .gentle-threshold {
    padding: 1.3rem;
    border-radius: 20px;
  }

  .grounding-row {
    grid-template-columns: 42px 36px 1fr;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
  }

  .grounding-num {
    font-size: 1.35rem;
  }

  .grounding-icon {
    font-size: 1.15rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .parking-sign,
  .parking-slot::before,
  .breath-pacer-ring,
  .breath-pacer-core,
  .breath-pacer-inhale::before,
  .breath-pacer-exhale::before,
  .dim-filament,
  .dim-glow,
  .dim-knob,
  .hidden-triggers-ripple span,
  .gentle-threshold-light {
    animation: none !important;
  }

  .parking-lot,
  .breath-pacer,
  .dim-the-lights,
  .hidden-triggers,
  .grounding-stack,
  .grounding-row,
  .gentle-threshold {
    opacity: 1 !important;
    transform: none !important;
  }
}

.faq-section {
  background: #f5f1eb;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
}
.faq-item {
  margin: 2rem 0;
  border-bottom: 1px dashed #d4cbbc;
  padding-bottom: 1.8rem;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-question {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #2f462f;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.faq-question i {
  color: var(--primary-sage);
}
.author-bio {
  background: #f0eae2;
  border-radius: var(--border-radius-lg);
  padding: 2.2rem;
  margin: 3rem 0 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #d9cfc1;
}
.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}
.author-info {
  flex: 1;
}
.author-info h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #1e3a1e;
}
.author-credentials {
  font-size: 0.95rem;
  color: #5f6e5f;
  margin-top: 0.8rem;
  border-top: 1px solid #d0c6b8;
  padding-top: 0.8rem;
}
.recommendation-engine {
  background: #f1ebe3;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0 2rem;
  border: 1px solid #dfd5c8;
}
.rec-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.rec-header h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #1e3a1e;
}
.rec-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.8rem 0;
}
.rec-tab {
  padding: 0.5rem 1.5rem;
  background: white;
  border-radius: 40px;
  border: 1px solid #cfc4b5;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.rec-tab.active {
  background: var(--primary-sage);
  color: white;
  border-color: var(--primary-sage);
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.rec-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  border: 1px solid #e1d7cc;
  cursor: pointer;
  transition: all 0.2s;
}
.rec-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-sage);
  box-shadow: 0 12px 24px rgba(155, 184, 139, 0.1);
}
.rec-title {
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.rec-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #6f7f6f;
}

/* ===== RECOMMENDATION ENGINE ===== */
.recommendations-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
  border-radius: 24px;
  padding: 2rem;
}

.recommendations-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
  position: relative;
}

.recommendations-section h3:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #6c5ce7;
  margin: 12px auto 0;
  border-radius: 2px;
}

#development-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recommendations-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  #development-recommendations {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .recommendations-section h3 {
    font-size: 1.25rem;
  }
}

.pillar-filter {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}
.pillar-chip {
  padding: 0.5rem 1.2rem;
  background: white;
  border-radius: 40px;
  cursor: pointer;
  border: 1px solid #cfc4b5;
  font-size: 0.9rem;
}
.sidebar-module {
  background: #f4f0ea;
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.sidebar-module h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #1e3a1e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-module ul {
  list-style: none;
  margin-bottom: 0;
}
.sidebar-module li {
  margin-bottom: 0.4rem;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  width: 100%;
}
.nav-link:hover {
  background: rgba(165, 184, 201, 0.15);
}
.newsletter-form {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-top: 1.2rem;
}
.newsletter-form input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border-radius: 60px;
  border: 1px solid #d3cbbc;
  background: #fcfaf8;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.newsletter-form button {
  background: var(--primary-sage);
  border: none;
  color: #1e2e1e;
  padding: 0.9rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}
.newsletter-form button:hover {
  background: #8aab7a;
}
.disclaimer-box {
  max-width: var(--content-width);
  margin: 2rem auto 2rem auto;
  background: #f9f7f4;
  border: 1px solid #e2ddd5;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  color: #5d5d5d;
  text-align: center;
}
.reference-list {
  margin: 2.5rem 0 2rem;
  padding: 1.5rem;
  background: #f5f1eb;
  border-radius: 24px;
  border-left: 4px solid var(--primary-sage);
}
.reference-list h4 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: #2c3a2c;
}
.reference-list p {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}
/* ============================================================
   UNIVERSAL FOOTER — full-bleed, responsive, article-safe
   Works whether footer is inside .main-wrapper or not
   ============================================================ */

/* 1) Force full viewport width, ignore any parent max-width */
.site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: #2c2826;
  color: #dacbc0;
  padding: 3rem 1.5rem 0;
  margin-top: 4rem;
  position: relative;
  overflow-x: hidden;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}

/* 2) Fluid 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Brand */
.footer-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-logo span {
  color: #c87a5a;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dacbc0;
  margin: 0;
}

/* Column headings */
.footer-col h4 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #c87a5a;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #dacbc0;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.footer-social .social-link:hover {
  background: #c87a5a;
  color: #fff;
}

/* Newsletter form */
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.footer-newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: rgba(218, 203, 192, 0.6);
}

.footer-newsletter-form input[type="email"]:focus {
  border-color: #c87a5a;
}

/* Newsletter submit button */
.footer-newsletter-form button,
.footer-col form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 40px;
  background: #6f8e7e;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.footer-newsletter-form button:hover,
.footer-col form button:hover {
  background: #6f8e7e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-newsletter-form button:active,
.footer-col form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.footer-newsletter-form button:focus-visible,
.footer-col form button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Trust badges */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #dacbc0;
  white-space: nowrap;
}

.trust-badge i {
  color: #c87a5a;
  flex-shrink: 0;
}

/* Disclaimer */
.footer-disclaimer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #dacbc0;
  text-align: left;
}

.footer-disclaimer i {
  color: #c87a5a;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  padding: 0.5rem 0 1rem;
  width: 100%;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.82rem;
  color: #dacbc0;
  opacity: 0.85;
}

/* Email contact bar */
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
}

.footer-contact i {
  color: #c87a5a;
  flex-shrink: 0;
}

.footer-contact a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  word-break: break-word;
}

.footer-contact a:hover {
  color: #c87a5a;
}

/* ============================================================
   RESPONSIVE — footer
   ============================================================ */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column, centered */
@media (max-width: 560px) {
  .site-footer {
    padding: 2.5rem 1rem 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .footer-container {
    padding: 1.5rem 1.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-trust {
    gap: 1rem;
  }

  .trust-badge {
    font-size: 0.65rem;
  }

  .footer-disclaimer {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
}

@media (max-width: 550px) {
  .footer-container {
    padding: 1.2rem 1rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-trust {
    gap: 0.8rem;
  }

  .trust-badge {
    font-size: 0.6rem;
  }

  .footer-copyright p {
    font-size: 0.65rem;
  }
}

@media (min-width: 1025px) {
  .sidebar {
    display: block;
  }
  .article-content {
    margin: 0;
  }
}
@media (max-width: 1024px) {
  h1 {
    font-size: 42px;
  }
  h2:before {
    display: none;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  .rec-grid {
    grid-template-columns: 1fr;
  }
}

/* NEW UNIQUE ELEMENTS STYLES */
.reading-mode-selector {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}
.mode-btn {
  background: transparent;
  border: 1.5px solid var(--primary-sage);
  border-radius: 60px;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #5a5a5a;
  font-family: var(--font-sans);
  font-weight: 500;
}
.mode-btn.active {
  background: var(--primary-sage);
  color: white;
  border-color: var(--primary-sage);
}
.essentials-mode
  p:not(.keep-this):not(.expert-quote p):not(.quote-context):not(
    .reflection-box p
  ):not(.emotional-hook p):not(.technique-card p) {
  display: none;
}
.skip-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2c3a2c;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 60px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.skip-btn:hover {
  background: #1e2a1e;
  transform: scale(1.02);
}
.break-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}
.break-card {
  background: white;
  max-width: 450px;
  width: 90%;
  padding: 2.5rem;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.break-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.break-card h3 {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}
.break-card button {
  margin: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-sans);
}
.break-card button:first-of-type {
  background: var(--primary-sage);
  color: white;
}
.break-card button:last-of-type {
  background: #f0ede8;
  color: #5a5a5a;
}
.printable-summary {
  background: #f5efe7;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px dashed var(--primary-sage);
  width: 100%;
}
.printable-summary h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-serif);
}
.printable-summary ul {
  margin: 1rem 0 1.5rem 1.5rem;
}
.printable-summary button {
  background: var(--primary-sage);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  color: #1e2a1e;
  font-weight: 600;
  cursor: pointer;
}
@media print {
  body * {
    visibility: hidden;
  }
  .printable-summary,
  .printable-summary * {
    visibility: visible;
  }
  .printable-summary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
  }
}
.reaction-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.reaction {
  background: transparent;
  border: 1px solid #ddd2c6;
  border-radius: 60px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.reaction:hover {
  background: var(--primary-sage);
  color: white;
  border-color: var(--primary-sage);
}
.future-letter {
  background: #e8f0ea;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  border-left: 6px solid var(--primary-sage);
}
.future-letter h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #2c4a2c;
  margin-bottom: 1rem;
}
.future-letter .letter-content {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3a4a3a;
}
.future-letter .signature {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #5a6b5a;
}
.mood-tracker {
  background: #f9f7f4;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e2ddd5;
}
.mood-tracker input {
  width: 100%;
  margin: 0.8rem 0;
  accent-color: var(--primary-sage);
}
.mood-tracker button {
  background: var(--primary-sage);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 60px;
  cursor: pointer;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
/* ============================================================
    LIVE POLL STYLES
   ============================================================ */

.live-poll {
  /* Palette */
  --poll-ink: #3a2e28;
  --poll-ink-soft: #6b574a;
  --poll-ink-faint: #9a887b;
  --poll-terra: #d97a3f;
  --poll-terra-deep: #b85f28;
  --poll-terra-glow: rgba(217, 122, 63, 0.18);
  --poll-paper: #fdf8f2;
  --poll-paper-warm: #f7ede0;
  --poll-cream: #fffdf9;
  --poll-line: #e8dbcc;
  --poll-line-strong: #d9c6b2;
  --poll-sage: #8aa88a;
  --poll-sage-soft: rgba(138, 168, 138, 0.15);

  /* Shape */
  --poll-radius-xl: 32px;
  --poll-radius-lg: 22px;
  --poll-radius-md: 16px;
  --poll-radius-sm: 10px;
  --poll-radius-pill: 999px;

  /* Shadows */
  --poll-shadow-soft: 0 4px 20px rgba(184, 95, 40, 0.06);
  --poll-shadow-lift: 0 10px 32px rgba(184, 95, 40, 0.12);
  --poll-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* Typography */
  --poll-font-sans:
    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --poll-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --poll-font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;

  /* Layout */
  position: relative;
  background:
    /* subtle paper grain via layered radial gradients */
    radial-gradient(
      circle at 15% 20%,
      rgba(217, 122, 63, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(138, 168, 138, 0.06) 0%,
      transparent 40%
    ),
    linear-gradient(160deg, var(--poll-paper) 0%, var(--poll-paper-warm) 100%);
  border-radius: var(--poll-radius-xl);
  padding: 2rem 1.75rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid var(--poll-line);
  box-shadow: var(--poll-shadow-soft), var(--poll-shadow-inset);
  font-family: var(--poll-font-sans);
  overflow: hidden;
  isolation: isolate;
}

/* Decorative corner accent — a soft "tape" or "paper fold" */
.live-poll::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(
    225deg,
    transparent 0%,
    transparent 48%,
    rgba(217, 122, 63, 0.1) 49%,
    rgba(217, 122, 63, 0.1) 51%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 0;
}

/* Decorative left rule — a thin colored bar */
.live-poll::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  border-radius: 0 4px 4px 0;
  opacity: 0.7;
  pointer-events: none;
}

/* ---- Heading ---- */
.live-poll h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  font-family: var(--poll-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--poll-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.35;
}

.live-poll h4 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(
    145deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  color: white;
  border-radius: var(--poll-radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 4px 10px var(--poll-terra-glow);
  flex-shrink: 0;
}

/* ---- Options Grid ---- */
.poll-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

/* ---- Option Buttons ---- */
.poll-option-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--poll-cream);
  border: 1px solid var(--poll-line);
  border-radius: var(--poll-radius-pill);
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--poll-font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--poll-ink-soft);
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 2px 6px rgba(184, 95, 40, 0.04);
}

/* Custom "bullet" — a small ring that fills on hover/vote */
.poll-option-btn::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--poll-line-strong);
  background: transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* Hover state */
.poll-option-btn:hover {
  border-color: var(--poll-terra);
  color: var(--poll-ink);
  transform: translateY(-2px);
  box-shadow: var(--poll-shadow-lift);
  background: white;
}

.poll-option-btn:hover::before {
  border-color: var(--poll-terra);
  background: var(--poll-terra-glow);
}

/* Active/press */
.poll-option-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Voted state */
.poll-option-btn.voted {
  background: linear-gradient(
    135deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  border-color: var(--poll-terra-deep);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 16px var(--poll-terra-glow);
  transform: translateY(-1px);
}

.poll-option-btn.voted::before {
  border-color: white;
  background: white;
  box-shadow: inset 0 0 0 3px var(--poll-terra);
}

/* Remove the old checkmark pseudo-element if it conflicts */
.poll-option-btn.voted::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--poll-sage);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--poll-paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: poll-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes poll-pop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Override the original .voted::before content rule */
.poll-option-btn.voted::before {
  content: "";
}

/* ---- Results Area ---- */
.poll-results {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--poll-line-strong);
  font-size: 0.88rem;
  color: var(--poll-ink-soft);
}

/* Empty state */
.poll-results > p {
  text-align: center;
  color: var(--poll-ink-faint);
  font-size: 0.85rem;
  font-style: italic;
  padding: 0.75rem 0;
}

/* Result row */
.poll-results .poll-result-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--poll-radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  animation: poll-fade-in 0.4s ease both;
}

.poll-results .poll-result-row:hover {
  background: white;
  border-color: var(--poll-line);
  transform: translateX(3px);
}

@keyframes poll-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.poll-results .poll-result-label {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--poll-ink);
  font-weight: 500;
}

.poll-results .poll-result-count {
  font-family: var(--poll-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--poll-terra-deep);
  background: var(--poll-terra-glow);
  padding: 0.2rem 0.6rem;
  border-radius: var(--poll-radius-pill);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* Progress bar — full width under each row */
.poll-results .poll-result-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--poll-line);
  border-radius: var(--poll-radius-pill);
  margin-top: 0.35rem;
  overflow: hidden;
  position: relative;
}

.poll-results .poll-result-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 60%,
    var(--poll-sage) 100%
  );
  border-radius: var(--poll-radius-pill);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer on the bar */
.poll-results .poll-result-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: poll-shimmer 2.5s ease-in-out infinite;
}

@keyframes poll-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Total row */
.poll-results .poll-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--poll-ink-faint);
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--poll-line);
}

.poll-results .poll-total i {
  color: var(--poll-sage);
}

/* ---- Privacy note ---- */
.live-poll > p {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem !important;
  color: var(--poll-ink-faint) !important;
  margin-top: 0.75rem !important;
  letter-spacing: 0.01em;
}

.live-poll > p i {
  color: var(--poll-sage);
  font-size: 0.7rem;
}

/* ---- Reset button ---- */
.poll-reset-btn {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  background: transparent;
  border: 1px dashed var(--poll-line-strong);
  border-radius: var(--poll-radius-pill);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--poll-font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--poll-ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

.poll-reset-btn:hover {
  background: var(--poll-ink-soft);
  border-color: var(--poll-ink-soft);
  border-style: solid;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 46, 40, 0.15);
}

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

.poll-reset-btn i {
  font-size: 0.72rem;
  transition: transform 0.4s ease;
}

.poll-reset-btn:hover i {
  transform: rotate(-180deg);
}

@media (max-width: 768px) {
  .skip-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .break-card {
    margin: 1rem;
    padding: 1.5rem;
  }
  .printable-summary {
    padding: 1rem;
  }
  .reading-mode-selector {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }
  .mode-btn {
    text-align: center;
  }
  .reaction-bar {
    justify-content: center;
  }
  .poll-options {
    flex-direction: column;
  }
  .poll-options button {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .main-wrapper {
    padding: 1rem;
  }
  h1 {
    font-size: 32px;
  }
  .hero-container {
    height: 180px;
  }
}
