/* ============================================
   KAIROS — Master Stylesheet v1.0
   Philosophy: calm, trust, clarity, warmth
   ============================================ */

/* === RESET === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* === DESIGN TOKENS === */
:root {
  /* Colors */
  --bg:           #FAF7F2;
  --bg-section:   #F5F0E8;
  --bg-card:      #F0EBE3;
  --text:         #2C2825;
  --text-muted:   #8A8580;
  --text-subtle:  #A09B95;
  --accent:       #7D8E7B;
  --accent-dark:  #6B7A69;
  --accent-light: rgba(125, 142, 123, 0.08);
  --crisis:       #6B8EA4;
  --crisis-dark:  #5A7A8E;
  --divider:      #E8E3DB;
  --white:        #FFFFFF;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont,
          'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --text-xs:   13px;
  --text-sm:   14px;
  --text-base: 17px;
  --text-md:   19px;
  --text-lg:   22px;
  --text-xl:   28px;
  --text-2xl:  34px;

  --lh-body:    1.75;
  --lh-heading: 1.25;

  /* Layout */
  --max-w:    640px;
  --px:       24px;
  --section:  88px;
  --block:    48px;
  --gap:      24px;
  --gap-sm:   16px;

  /* UI */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --speed:     0.2s;
  --speed-slow: 1.5s;
}

/* === BASE === */
html {
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

/* === LAYOUT === */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

.page {
  padding-top: 88px;
  padding-bottom: 64px;
}

.page-center {
  padding-top: 88px;
  padding-bottom: 64px;
  text-align: center;
}

/* === WORDMARK / HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.wordmark {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.wordmark:hover {
  color: var(--text);
}

/* === TYPOGRAPHY === */
h1 {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--text);
  margin-bottom: var(--gap);
}

h2 {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 14px;
}

h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

p {
  color: var(--text);
  line-height: var(--lh-body);
}

p + p {
  margin-top: var(--gap);
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--speed) ease;
}

a:hover {
  color: var(--accent-dark);
}

/* === SECTION SPACING === */
.section {
  margin-bottom: var(--section);
}

.section-sm {
  margin-bottom: var(--block);
}

.section-xs {
  margin-bottom: var(--gap);
}

/* === DIVIDER === */
.divider {
  border: none;
  border-top: 1px solid var(--divider);
  margin: var(--section) 0;
}

.divider-sm {
  border: none;
  border-top: 1px solid var(--divider);
  margin: var(--block) 0;
}

/* === BREADCRUMB === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-subtle);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.breadcrumb a:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--text-subtle);
  opacity: 0.5;
}

/* === BUTTONS — PRIMARY === */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-size: var(--text-base);
  font-weight: 500;
  font-family: var(--font);
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  transition:
    background var(--speed) ease,
    transform var(--speed) ease,
    box-shadow var(--speed) ease;
  -webkit-appearance: none;
}

.btn:hover {
  background: var(--accent-dark);
  transform: scale(1.02);
  color: var(--bg);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.btn-full {
  display: block;
  width: 100%;
}

/* === BUTTONS — OUTLINE === */
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  font-size: var(--text-sm);
  font-weight: 500;
  font-family: var(--font);
  color: var(--accent);
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1;
  transition: all var(--speed) ease;
  -webkit-appearance: none;
}

.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
  text-decoration: none;
}

.btn-outline:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* === BUTTONS — TEXT LINK STYLE === */
.btn-text {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  padding: 0;
  transition: color var(--speed) ease;
}

.btn-text:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   HOMEPAGE
   ============================================ */
.home-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 80px var(--px) 120px;
}

.home-question {
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  max-width: 360px;
  margin: 0 auto 52px;
  color: var(--text);
}

.home-btn-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 240px;
}

.btn-answer {
  display: block;
  width: 100%;
  padding: 16px 32px;
  font-size: var(--text-base);
  font-weight: 500;
  font-family: var(--font);
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition:
    background var(--speed) ease,
    transform var(--speed) ease;
  -webkit-appearance: none;
}

.btn-answer:hover {
  background: var(--accent-dark);
  transform: scale(1.02);
  color: var(--bg);
  text-decoration: none;
}

.btn-answer:active {
  transform: scale(0.98);
}

.btn-answer:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.btn-no-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.btn-microcopy {
  display: block;
  margin-top: 9px;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  font-style: italic;
  text-align: center;
}

/* ============================================
   YES PAGE
   ============================================ */
.yes-hero {
  padding: var(--block) 0 var(--section);
}

.yes-hero h1 {
  font-size: var(--text-xl);
  margin-bottom: 20px;
}

.share-section {
  padding-bottom: var(--section);
}

.share-section h2 {
  margin-bottom: 6px;
}

.share-intro {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 32px !important;
}

.social-share-row {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
}

.social-share-row p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ============================================
   THANKYOU PAGE
   ============================================ */
.thankyou-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  text-align: center;
  padding: 80px var(--px) 64px;
}

.thankyou-wrap h1 {
  font-size: var(--text-xl);
  margin-bottom: 20px;
}

.thankyou-wrap p {
  color: var(--text-muted);
  max-width: 400px;
}

.thankyou-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  margin-top: 44px;
}

/* ============================================
   NO PAGE — CATEGORY SELECTION
   ============================================ */
.no-hero {
  text-align: center;
  padding: var(--block) 0;
  margin-bottom: var(--block);
}

.no-hero h1 {
  font-size: var(--text-xl);
  margin-bottom: 12px;
}

.no-hero p {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  min-height: 100px;
  background: transparent;
  border: 2px solid var(--divider);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition:
    border-color var(--speed) ease,
    background var(--speed) ease;
}

.cat-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
  color: var(--text);
}

.cat-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.cat-label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  display: block;
}

.cat-sub {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
  display: block;
}

/* Category 5 — full-width anchor */
.cat-btn-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  min-height: 80px;
  background: transparent;
  border: 1.5px solid var(--divider);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  width: 100%;
  margin-bottom: 12px;
  transition:
    border-color var(--speed) ease,
    background var(--speed) ease;
}

.cat-btn-anchor:hover {
  border-color: var(--accent);
  background: var(--accent-light);
  text-decoration: none;
  color: var(--text);
}

.cat-btn-anchor:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Escape links on no.html */
.escape-zone {
  text-align: center;
  padding-top: 8px;
  margin-top: 4px;
}

.escape-link {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-subtle);
  text-decoration: none;
  padding: 8px 0;
  font-style: italic;
  transition: color var(--speed) ease;
}

.escape-link:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

/* ============================================
   CATEGORY PAGES — STANDARD TEMPLATE
   ============================================ */

/* Validation prose */
.validation {
  margin-bottom: var(--section);
}

/* Micro-step block */
.micro-step {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 32px;
  margin: var(--section) 0;
}

.micro-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}

.micro-step p + p {
  margin-top: 16px;
}

/* Tools section */
.tools-section {
  border-top: 1px solid var(--divider);
  padding-top: var(--section);
  margin-bottom: var(--section);
}

.tools-heading {
  margin-bottom: 10px;
}

.tools-intro {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 40px !important;
  line-height: 1.65;
}

.tool-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--divider);
}

.tool-card:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.tool-card h3 {
  margin-bottom: 8px;
}

.tool-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.tool-link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.tool-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.tool-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Affiliate disclosure */
.affiliate-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  font-size: var(--text-xs);
  color: var(--text-subtle);
  line-height: 1.65;
}

/* Secondary pathways */
.secondary-paths {
  border-top: 1px solid var(--divider);
  padding-top: 36px;
  margin-bottom: 56px;
}

.secondary-paths .framing {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-subtle);
  font-style: italic;
  margin-bottom: 14px;
}

.path-link {
  display: block;
  font-size: 15px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0 8px 22px;
  position: relative;
  line-height: 1.5;
  transition: color var(--speed) ease;
}

.path-link::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-subtle);
  transition: color var(--speed) ease;
}

.path-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.path-link:hover::before {
  color: var(--accent);
}

.path-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================
   EVERYTHING AT ONCE — SPECIAL ELEMENTS
   ============================================ */
.early-escape {
  text-align: center;
  margin: 40px auto;
  max-width: 70%;
}

.early-escape-link {
  font-size: var(--text-sm);
  color: var(--text-subtle);
  text-decoration: none;
  font-style: italic;
  transition: color var(--speed) ease;
}

.early-escape-link:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

.specificity-nav {
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: var(--block) 0;
}

.specificity-nav p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}

.spec-link {
  display: block;
  font-size: var(--text-base);
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 0 8px 22px;
  position: relative;
  transition: color var(--speed) ease;
}

.spec-link::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-subtle);
  transition: color var(--speed) ease;
}

.spec-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spec-link:hover::before {
  color: var(--accent);
}

/* ============================================
   BREATHING PAGE
   ============================================ */
.breathing-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 80px var(--px) 120px;
}

.breathing-prompt {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.4;
  margin-bottom: 60px;
}

.breathing-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.22;
  animation: breathe 10s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1);   opacity: 0.22; }
  40%       { transform: scale(1.6); opacity: 0.42; }
}

.return-prompt {
  margin-top: 64px;
  opacity: 0;
  transition: opacity var(--speed-slow) ease;
}

.return-prompt.visible {
  opacity: 1;
}

.return-prompt p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 18px;
}

.return-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.return-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.return-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ============================================
   SOMETHING ELSE PAGE
   ============================================ */
.something-hero {
  padding: var(--block) 0;
  margin-bottom: var(--section);
}

.something-hero h1 {
  margin-bottom: 20px;
}

.something-resources {
  margin-top: var(--block);
}

.something-resources h2 {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 24px;
}

.resource-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}

.resource-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.resource-card h3 {
  margin-bottom: 6px;
}

.resource-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.resource-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.resource-link:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* ============================================
   CRISIS PAGE
   ============================================ */
.crisis-hero {
  padding: var(--block) 0;
  margin-bottom: var(--section);
}

.crisis-hero h1 {
  margin-bottom: 20px;
}

.crisis-resources {
  margin-top: var(--block);
}

.crisis-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--divider);
}

.crisis-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.crisis-card h3 {
  margin-bottom: 6px;
}

.crisis-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.6;
}

.crisis-card a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--crisis);
  text-decoration: none;
  transition: color var(--speed) ease;
}

.crisis-card a:hover {
  color: var(--crisis-dark);
  text-decoration: underline;
}

.crisis-return {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--divider);
}

.crisis-return p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 16px;
}

.crisis-return a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
}

.crisis-return a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ============================================
   WALL OF HAPPINESS
   ============================================ */
.wall-hero {
  padding: var(--block) 0;
  margin-bottom: var(--section);
}

.wall-hero h1 {
  margin-bottom: 14px;
}

.wall-hero .sub {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.wall-hero .note {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.wall-grid {
  columns: 2;
  column-gap: 14px;
  margin-bottom: var(--section);
}

.wall-card {
  break-inside: avoid;
  background: var(--bg-section);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 14px;
}

.wall-quote {
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: 10px;
  color: var(--text);
}

.wall-name {
  font-size: var(--text-xs);
  color: var(--text-subtle);
}

.wall-cta {
  text-align: center;
  padding: var(--block) 0;
  border-top: 1px solid var(--divider);
}

.wall-cta p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-content {
  padding: var(--block) 0 var(--section);
}

.privacy-content h1 {
  margin-bottom: 10px;
}

.privacy-content .tagline {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: var(--section);
}

.privacy-block {
  margin-bottom: var(--block);
}

.privacy-block h2 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.privacy-block p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.privacy-block p + p {
  margin-top: 14px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--gap);
}

.form-label {
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.form-label-sm {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 8px;
}

textarea,
input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  border: 2px solid var(--divider);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  transition: border-color var(--speed) ease;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--accent);
  outline: none;
}

textarea::placeholder,
input::placeholder {
  color: var(--text-subtle);
  font-style: italic;
}

.char-count {
  display: block;
  text-align: right;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-top: 6px;
}

.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: var(--gap);
}

.checkbox-wrap input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-wrap span {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   CRISIS FOOTER — EVERY PAGE
   ============================================ */
.crisis-bar {
  border-top: 1px solid var(--divider);
  padding: 24px var(--px);
  text-align: center;
}

.crisis-bar p {
  font-size: var(--text-xs);
  color: var(--text-subtle);
  margin-bottom: 6px;
}

.crisis-bar a {
  font-size: var(--text-xs);
  color: var(--crisis);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--speed) ease;
}

.crisis-bar a:hover {
  color: var(--crisis-dark);
}

/* ============================================
   SITE FOOTER — EVERY PAGE
   ============================================ */
.site-footer {
  padding: 14px var(--px) 36px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-subtle);
  line-height: 1.6;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer a {
  color: var(--text-subtle);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--speed) ease;
}

.site-footer a:hover {
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  :root {
    --text-2xl: 28px;
    --text-xl:  24px;
    --text-lg:  20px;
    --section:  72px;
    --block:    40px;
    --gap:      20px;
  }

  h1 {
    font-size: 24px;
  }

  .home-question {
    font-size: 22px;
    margin-bottom: 44px;
  }

  .home-btn-group {
    max-width: 100%;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .wall-grid {
    columns: 1;
  }

  .micro-step {
    padding: 24px 20px;
  }

  .specificity-nav {
    padding: 24px 20px;
  }

  .early-escape {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 22px;
  }

  .home-question {
    font-size: 20px;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .breathing-circle {
    animation: none;
    opacity: 0.35;
    transform: scale(1.3);
  }

  .return-prompt {
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #1A1816;
    --bg-section:   #242220;
    --bg-card:      #2C2A28;
    --text:         #E8E4DE;
    --text-muted:   #9A9590;
    --text-subtle:  #706C68;
    --divider:      #353230;
    --white:        #2A2826;
  }

  .site-header {
    background: rgba(26, 24, 22, 0.92);
  }

  textarea,
  input[type="text"],
  input[type="email"] {
    background: var(--white);
    color: var(--text);
    border-color: var(--divider);
  }

  textarea::placeholder,
  input::placeholder {
    color: var(--text-subtle);
  }
}