/* =====================================================
   CAREAPP — STYLES.CSS
   Complete design system
   ===================================================== */

/* --- FONTS & ROOT --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg:        #F5F1EB;
  --text:      #252420;
  --accent:    #6B9E8C;
  --sand:      #B89A75;
  --cream:     #E4DAD0;
  --muted:     #948C83;
  --crisis:    #B83232;
  --white:     #FDFCFA;
  --shadow:    rgba(37, 36, 32, 0.07);

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --transition: 500ms ease;
  --radius:     12px;
  --max-width:  640px;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.01em;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.7; }

/* --- SCREEN SYSTEM --- */
.screen {
  display: none;
  min-height: 100vh;
  width: 100%;
  opacity: 0;
  transition: opacity var(--transition);
}

.screen.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen.visible {
  opacity: 1;
}

.screen-content {
  width: 100%;
  max-width: var(--max-width);
  padding: 48px 48px 80px;
  margin: 0 auto;
}

.screen-content.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* --- BREATHING CIRCLE --- */
.breathing-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

.breathing-circle {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,158,143,0.12) 0%, rgba(124,158,143,0.04) 60%, transparent 80%);
  animation: breathe 8s ease-in-out infinite;
}

.breathing-circle.small {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(124,158,143,0.18) 0%, rgba(124,158,143,0.06) 60%, transparent 80%);
  animation: breathe 8s ease-in-out infinite;
  margin: 0 auto 32px;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* --- LANDING SCREEN --- */
.landing-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 48px 32px;
  max-width: var(--max-width);
}

.logo {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: lowercase;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}

.landing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeUp 1s ease 0.7s forwards;
}

.landing-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  opacity: 0;
}

.reveal-delay-1 {
  animation: fadeUp 1s ease 1.8s forwards;
}

.reveal-delay-2 {
  animation: fadeUp 1s ease 2.8s forwards;
  opacity: 0;
}

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

/* --- TYPOGRAPHY --- */
h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 400; line-height: 1.3; }
h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 400; line-height: 1.4; }
h3 { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 400; line-height: 1.4; }
h4 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.body-generous {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--muted);
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  padding: 15px 38px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 16px rgba(107,158,140,0.22);
  min-height: 50px;
  min-width: 148px;
}

.btn-primary:hover {
  background: #5a8e7b;
  box-shadow: 0 4px 24px rgba(107,158,140,0.32);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  min-height: 52px;
  min-width: 160px;
}

.btn-secondary:hover {
  background: rgba(124,158,143,0.08);
}

.btn-sand {
  display: inline-block;
  padding: 18px 44px;
  background: var(--sand);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 24px rgba(196,168,130,0.3);
  min-height: 56px;
}

.btn-sand:hover {
  background: #b8986e;
  box-shadow: 0 6px 32px rgba(196,168,130,0.4);
  transform: translateY(-1px);
}

/* --- CRISIS NOTICES --- */
.crisis-notice {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 8px;
}

.crisis-notice a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.crisis-link-small {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: block;
  text-align: center;
  padding: 16px;
}

/* --- PROGRESS BAR --- */
.progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cream);
  z-index: 100;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--sand));
  width: 0%;
  transition: width 800ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0 2px 2px 0;
}

/* --- QUESTION CARDS --- */
#question-container {
  padding-top: 48px;
}

.question-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  text-align: center;
  margin-bottom: 40px;
  padding: 0 8px;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.option-card {
  background: var(--white);
  border: 1px solid var(--cream);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  cursor: pointer;
  transition: all 300ms ease;
  text-align: left;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.option-card:hover {
  border-color: var(--accent);
  background: rgba(107,158,140,0.04);
  transform: translateX(3px);
}

.option-card.selected {
  border-color: var(--accent);
  background: rgba(107,158,140,0.09);
  color: var(--text);
}

.continue-btn-wrap {
  text-align: center;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 400ms ease;
  pointer-events: none;
}

.continue-btn-wrap.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.take-your-time {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
  margin-top: 20px;
}

.question-footer {
  text-align: center;
  padding: 24px 0 16px;
}

/* --- QUESTION TRANSITIONS --- */
.question-slide {
  animation: slideIn 400ms ease forwards;
}

.question-slide-out {
  animation: slideOut 400ms ease forwards;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}

/* --- PROCESSING SCREEN --- */
.processing-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.processing-sub {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.dots-loader {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 12px 0;
}

.dots-loader span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.5s ease-in-out infinite;
  opacity: 0.3;
}

.dots-loader span:nth-child(1) { animation-delay: 0s; }
.dots-loader span:nth-child(2) { animation-delay: 0.3s; }
.dots-loader span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* --- OUTPUT SCREEN --- */
.output-content {
  padding-top: 64px;
  padding-bottom: 80px;
}

.output-section {
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(24px);
  transition: all 700ms ease;
}

.output-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Mirror section */
.mirror-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  line-height: 2;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}

/* Profile name card */
.profile-name-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 44px 40px;
  text-align: center;
}

.profile-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.profile-tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
}

/* Deep truth section */
.truth-text {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 24px;
}

/* Path forward */
.path-card {
  background: rgba(124,158,143,0.07);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.path-card p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 12px;
}

/* Program reveal */
.program-reveal {
  background: var(--white);
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 8px 40px var(--shadow);
}

.program-reveal h3 {
  text-align: center;
  margin-bottom: 8px;
}

.program-reveal .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.7;
}

.week-preview-list {
  list-style: none;
  margin-bottom: 36px;
}

.week-preview-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream);
}

.week-preview-list li:last-child {
  border-bottom: none;
}

.week-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
  min-width: 60px;
  padding-top: 3px;
}

.week-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.5;
}

.price-block {
  text-align: center;
  margin-bottom: 28px;
}

.price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}

.price-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.payment-btn-wrap {
  text-align: center;
  margin-bottom: 20px;
}

#payment-button-container {
  margin-top: 8px;
}

.no-refund-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 18px;
}

.social-proof {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
}

.return-seed {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 12px;
  font-style: italic;
}

/* Share card */
.share-section {
  margin-top: 56px;
  text-align: center;
}

.share-card {
  display: inline-block;
  background: var(--cream);
  border-radius: 20px;
  padding: 36px 40px;
  max-width: 380px;
  width: 100%;
  margin-bottom: 20px;
}

.share-card .share-logo {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: lowercase;
}

.share-card .share-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 16px;
}

.share-card .share-desc {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.share-card .share-url {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: lowercase;
}

.share-caption {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 16px;
}

/* --- POST-PAYMENT / PROGRAM SCREEN --- */
.program-ready-header {
  text-align: center;
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--cream);
  margin-bottom: 48px;
}

.program-ready-header h2 {
  margin-bottom: 16px;
}

.program-ready-header p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 28px;
}

.program-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Week display */
.week-block {
  margin-bottom: 64px;
  page-break-before: always;
}

.week-header {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}

.week-number-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.week-header h3 {
  margin-bottom: 12px;
}

.week-intention {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.day-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--cream);
}

.day-block:last-child {
  border-bottom: none;
}

.day-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 8px;
}

.day-block h4 {
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.practice-part {
  margin-bottom: 20px;
}

.practice-part-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.practice-part p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--text);
}

.sit-with-question {
  background: rgba(124,158,143,0.07);
  border-radius: 10px;
  padding: 18px 22px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

/* Insight card */
.insight-card {
  background: var(--cream);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
  border: 1px solid rgba(196,168,130,0.3);
}

.insight-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}

.insight-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}

/* Letter block */
.letter-block {
  border: 1.5px solid var(--sand);
  border-radius: 16px;
  padding: 36px;
  margin: 16px 0;
}

.letter-opening {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.letter-lines {
  list-style: none;
  margin-bottom: 24px;
}

.letter-lines li {
  border-bottom: 1px solid var(--cream);
  height: 40px;
  margin-bottom: 4px;
}

.letter-closing {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--muted);
  text-align: right;
}

/* Manifesto */
.manifesto-block {
  margin: 16px 0;
}

.manifesto-line {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.6;
}

.manifesto-num {
  color: var(--accent);
  font-weight: 600;
  min-width: 24px;
  padding-top: 2px;
}

/* Final page */
.final-closing {
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid var(--cream);
  margin-top: 48px;
}

.final-closing p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text);
  line-height: 2;
  margin-bottom: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.final-signature {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  margin-top: 24px;
}

/* --- FOOTER --- */
#site-footer {
  text-align: center;
  padding: 24px 32px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--cream);
}

#site-footer a { color: var(--muted); }
#site-footer p + p { margin-top: 6px; }

.cookie-notice {
  font-size: 0.72rem;
  color: rgba(154,145,136,0.6);
}

/* --- CRISIS SCREEN INSIDE APP --- */
.crisis-interrupt {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 8px 40px var(--shadow);
}

.crisis-interrupt h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.4;
}

.crisis-interrupt p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 28px;
}

.crisis-resources {
  text-align: left;
  background: rgba(192, 57, 43, 0.04);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}

.crisis-resource-item {
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.crisis-resource-item strong {
  color: var(--text);
}

.crisis-resource-item a {
  color: var(--crisis);
}

.crisis-continue {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  font-family: var(--font-body);
}

/* --- ANIMATIONS UTILITY --- */
.fade-in {
  animation: fadeIn 600ms ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* --- RESPONSIVE --- */
@media (max-width: 640px) {
  .screen-content {
    padding: 32px 24px 64px;
  }

  .landing-content {
    padding: 32px 24px;
    gap: 20px;
  }

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

  .option-card {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .program-reveal {
    padding: 28px 24px;
  }

  .profile-name-card {
    padding: 36px 28px;
  }

  .share-card {
    padding: 28px 24px;
  }

  .week-header {
    padding: 24px 20px;
  }

  .insight-card {
    padding: 24px 20px;
  }

  .crisis-interrupt {
    padding: 32px 24px;
    margin: 16px;
  }

  .program-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary, .btn-secondary, .btn-sand {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .screen-content {
    padding: 28px 18px 56px;
  }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

button:focus-visible,
a:focus-visible,
.option-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── PRINT NUDGE ──────────────────────────────────── */
.print-nudge {
  background: rgba(124,158,143,0.10);
  border: 1.5px solid rgba(124,158,143,0.30);
  border-radius: 12px;
  padding: 14px 20px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

/* ── CAREAPP — LANDING TAGLINE ── */
.landing-tagline-line {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

/* ── CAREAPP — OUTPUT PREMIUM HEADER ── */
.output-seen-note {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 40px;
  opacity: 0.8;
}

/* ── CAREAPP — PROFILE CARD REFINEMENT ── */
.profile-name-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 40px;
  border: none;
  position: relative;
  overflow: hidden;
}

.profile-name-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--sand));
}

/* ── CAREAPP — BREATH PROMPT ON INTRO ── */
.breath-prompt {
  background: rgba(107,158,140,0.07);
  border-left: 2px solid var(--accent);
  border-radius: 0 10px 10px 0;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 420px;
  text-align: left;
}

/* ── CAREAPP — OPTION STAGGER ── */
.option-card:nth-child(1) { animation-delay: 0ms; }
.option-card:nth-child(2) { animation-delay: 60ms; }
.option-card:nth-child(3) { animation-delay: 120ms; }
.option-card:nth-child(4) { animation-delay: 180ms; }
.option-card:nth-child(5) { animation-delay: 240ms; }

.options-stagger .option-card {
  opacity: 0;
  animation: fadeUp 350ms ease forwards;
}

/* --- CAREAPP LAVENDER SANCTUARY THEME --- */
:root {
  --bg: #F7F6FE;
  --bg-deep: #534AB7;
  --text: #262248;
  --accent: #4CB5A6;
  --sand: #D9A05F;
  --cream: rgba(104, 96, 180, 0.12);
  --muted: #6E688C;
  --crisis: #B84054;
  --white: #FFFFFF;
  --panel: rgba(255, 255, 255, 0.68);
  --panel-strong: rgba(255, 255, 255, 0.82);
  --line: rgba(92, 84, 173, 0.18);
  --line-strong: rgba(87, 79, 166, 0.3);
  --shadow: rgba(67, 58, 151, 0.18);
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Jost', sans-serif;
  --transition: 360ms ease;
  --radius: 8px;
  --max-width: 720px;
  --journey-progress: 0.08;
}

html {
  background: var(--bg);
}

body {
  background: linear-gradient(180deg, #f7f6fe 0%, #f0edfe 42%, #dad5f8 74%, #675ec9 100%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
  isolation: isolate;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.24) 22%, transparent 42%),
    radial-gradient(circle at 82% 12%, rgba(76, 181, 166, 0.14) 0%, transparent 24%),
    radial-gradient(circle at 14% 84%, rgba(217, 160, 95, 0.12) 0%, transparent 18%),
    linear-gradient(180deg, rgba(247, 246, 254, 0.8) 0%, rgba(244, 241, 255, 0.38) 46%, rgba(83, 74, 183, 0.18) 100%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  left: 18px;
  top: 12vh;
  width: 2px;
  height: 76vh;
  border-radius: 999px;
  transform-origin: top center;
  transform: scaleY(var(--journey-progress));
  background: linear-gradient(180deg, rgba(150, 142, 232, 0.08) 0%, rgba(150, 142, 232, 0.76) 42%, rgba(76, 181, 166, 0.95) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 24px rgba(76, 181, 166, 0.28);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
}

.screen {
  position: relative;
  z-index: 1;
  padding: 28px 20px 48px;
}

.screen.active {
  justify-content: center;
}

.screen-content,
.landing-content {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.56));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 28px 90px var(--shadow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
}

.screen-content::before,
.landing-content::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(123, 114, 214, 0.22), rgba(76, 181, 166, 0.46), rgba(255, 255, 255, 0));
}

.screen-content.centered {
  gap: 20px;
}

#screen-assessment .screen-content,
#screen-output .screen-content,
#screen-program .screen-content,
#screen-intro .screen-content,
#screen-processing .screen-content {
  max-width: 760px;
}

#screen-assessment .screen-content {
  padding-top: 36px;
}

#screen-landing .landing-content {
  max-width: 700px;
  padding: 56px 48px 54px;
}

.breathing-bg {
  width: min(100vw, 960px);
}

.breathing-circle {
  width: clamp(320px, 44vw, 560px);
  height: clamp(320px, 44vw, 560px);
  background: radial-gradient(circle, rgba(83, 74, 183, 0.2) 0%, rgba(83, 74, 183, 0.11) 32%, rgba(76, 181, 166, 0.06) 56%, transparent 74%);
  filter: blur(2px);
  animation: breathe 7.8s ease-in-out infinite;
}

.breathing-circle.small {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(83, 74, 183, 0.18) 0%, rgba(83, 74, 183, 0.08) 42%, rgba(76, 181, 166, 0.08) 62%, transparent 78%);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.68; }
  50% { transform: scale(1.15); opacity: 1; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.22;
}

h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  line-height: 1.34;
}

h3 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.38;
}

h4 {
  font-size: 1.18rem;
  line-height: 1.45;
}

.logo {
  color: rgba(83, 74, 183, 0.92);
  letter-spacing: 0.18em;
}

.landing-tagline-line {
  color: rgba(83, 74, 183, 0.68);
  margin-bottom: 0;
}

.landing-headline {
  font-weight: 500;
  font-size: clamp(2.15rem, 5vw, 3.45rem);
  line-height: 1.22;
  color: #241f54;
}

.landing-sub {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.95;
}

.eyebrow {
  color: var(--sand);
  letter-spacing: 0.22em;
}

.body-generous {
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.95;
}

.btn-primary {
  background: linear-gradient(180deg, #58c7b8 0%, #40aa9d 100%);
  color: #fdfcff;
  box-shadow: 0 16px 34px rgba(76, 181, 166, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #62d1c2 0%, #3fa296 100%);
  box-shadow: 0 20px 44px rgba(76, 181, 166, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.36);
  color: rgba(67, 58, 151, 0.92);
  border-color: rgba(83, 74, 183, 0.22);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.52);
}

.btn-sand {
  background: linear-gradient(180deg, #e2ae68 0%, #cf9550 100%);
  color: #fffdf8;
  box-shadow: 0 16px 34px rgba(217, 160, 95, 0.28);
}

.btn-sand:hover {
  background: linear-gradient(180deg, #ebb574 0%, #ca8b43 100%);
  box-shadow: 0 20px 44px rgba(217, 160, 95, 0.34);
}

.crisis-notice,
.crisis-notice a,
.crisis-link-small,
.cookie-notice,
#site-footer,
#site-footer a {
  color: rgba(50, 47, 84, 0.72);
}

.progress-bar-wrap {
  background: rgba(118, 108, 210, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.progress-bar {
  background: linear-gradient(90deg, rgba(139, 129, 232, 0.9), rgba(76, 181, 166, 1));
  box-shadow: 0 0 24px rgba(76, 181, 166, 0.22);
}

#question-container {
  padding-top: 18px;
}

.question-slide {
  position: relative;
  padding-top: 8px;
}

.question-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}

.question-text {
  position: relative;
  background: var(--panel-strong);
  border: 1px solid rgba(94, 85, 176, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(73, 65, 162, 0.16);
  padding: 28px 28px 26px;
  text-align: left;
  line-height: 1.8;
  margin-bottom: 28px;
  font-size: clamp(1.38rem, 3.3vw, 1.96rem);
  color: #251f53;
}

.question-text::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: var(--panel-strong);
  border-left: 1px solid rgba(94, 85, 176, 0.16);
  border-bottom: 1px solid rgba(94, 85, 176, 0.16);
  transform: rotate(-45deg);
}

.options-grid {
  gap: 12px;
  margin-bottom: 28px;
}

.option-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(96, 88, 178, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(63, 57, 130, 0.1);
  color: #2e2858;
}

.option-card:hover {
  border-color: rgba(83, 74, 183, 0.28);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 36px rgba(63, 57, 130, 0.14);
  transform: translateY(-1px);
}

.option-card.selected {
  border-color: rgba(76, 181, 166, 0.46);
  background: linear-gradient(180deg, rgba(76, 181, 166, 0.16), rgba(255, 255, 255, 0.9));
  box-shadow: 0 20px 40px rgba(76, 181, 166, 0.14);
}

.continue-btn-wrap {
  text-align: right;
}

.take-your-time {
  color: rgba(83, 74, 183, 0.6);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
}

.processing-title {
  color: #241f54;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
}

.processing-sub {
  color: rgba(83, 74, 183, 0.72);
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

.dots-loader span {
  width: 10px;
  height: 10px;
  background: linear-gradient(180deg, rgba(133, 123, 232, 1), rgba(76, 181, 166, 1));
  box-shadow: 0 0 18px rgba(76, 181, 166, 0.2);
  animation: heartbeatDot 1.08s ease-in-out infinite;
}

.dots-loader span:nth-child(2) { animation-delay: 0.18s; }
.dots-loader span:nth-child(3) { animation-delay: 0.36s; }

@keyframes heartbeatDot {
  0%, 100% { opacity: 0.32; transform: scale(0.92); }
  18% { opacity: 1; transform: scale(1.38); }
  40% { opacity: 0.6; transform: scale(1.04); }
  60% { opacity: 0.4; transform: scale(0.96); }
}

.output-content {
  padding-top: 48px;
}

.output-section {
  margin-bottom: 34px;
}

.mirror-text {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-left: 2px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(73, 65, 162, 0.13);
  padding: 26px 28px;
  line-height: 1.95;
  color: #27214e;
}

.output-seen-note {
  color: var(--accent);
  letter-spacing: 0.28em;
  font-size: 0.74rem;
}

.profile-name-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 243, 255, 0.82));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(73, 65, 162, 0.16);
}

.profile-name-card::before {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(83, 74, 183, 0.34), rgba(76, 181, 166, 0.52), rgba(255, 255, 255, 0));
}

.profile-label {
  color: var(--sand);
  letter-spacing: 0.22em;
}

.profile-name {
  color: #261f56;
  font-size: clamp(2.15rem, 5.2vw, 3.35rem);
}

.profile-tagline {
  color: var(--muted);
}

.truth-text {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(95, 86, 176, 0.1);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.path-card {
  background: linear-gradient(180deg, rgba(76, 181, 166, 0.14), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(76, 181, 166, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(76, 181, 166, 0.12);
  padding: 32px 30px;
}

.path-card p {
  color: #2a2457;
  line-height: 1.9;
}

.program-reveal,
.share-card,
.program-ready-header,
.week-header,
.day-block,
.insight-card,
.crisis-interrupt {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(73, 65, 162, 0.14);
}

.program-reveal {
  padding: 36px;
}

.program-reveal h3 {
  color: #241f54;
}

.program-reveal .sub,
.social-proof,
.return-seed,
.price-sub,
.share-caption,
.program-ready-header p,
.week-intention,
.letter-opening,
.letter-closing {
  color: var(--muted);
}

.week-preview-list li {
  border-bottom: 1px solid rgba(95, 86, 176, 0.12);
}

.week-num,
.practice-part-label,
.share-card .share-url,
.final-signature {
  color: var(--accent);
}

.price {
  color: #251f55;
}

.no-refund-note {
  color: var(--sand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 239, 255, 0.82));
}

.share-card .share-logo {
  color: rgba(83, 74, 183, 0.84);
  font-family: var(--font-body);
  letter-spacing: 0.18em;
}

.share-card .share-name,
.share-card .share-desc {
  color: #281f5b;
}

.program-ready-header {
  padding: 40px 30px;
  border-bottom: none;
  margin-bottom: 36px;
}

.program-ready-header h2 {
  color: #241f54;
}

.week-block {
  page-break-before: auto;
  margin-bottom: 40px;
}

.week-header {
  padding: 28px 28px 26px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(233, 229, 255, 0.78));
}

.week-number-label,
.day-label,
.insight-label {
  color: var(--sand);
}

.day-block {
  padding: 24px 24px 26px;
  border-bottom: none;
  margin-bottom: 18px;
}

.sit-with-question {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(76, 181, 166, 0.52);
  border-radius: var(--radius);
}

.insight-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(76, 181, 166, 0.2), rgba(255, 255, 255, 0.9));
}

.insight-card::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 8px rgba(76, 181, 166, 0.12), 0 0 18px rgba(76, 181, 166, 0.3);
}

.insight-text {
  color: #281f59;
}

.letter-block {
  background: rgba(255, 250, 242, 0.54);
  border-color: rgba(217, 160, 95, 0.34);
  border-radius: var(--radius);
}

.final-closing {
  border-top: none;
  padding-top: 8px;
}

.final-closing p {
  color: #2c265c;
}

#site-footer {
  background: transparent;
  border-top: none;
}

.crisis-interrupt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 243, 247, 0.88));
}

.crisis-resources {
  background: rgba(184, 64, 84, 0.05);
  border: 1px solid rgba(184, 64, 84, 0.12);
  border-radius: var(--radius);
}

.crisis-continue {
  color: rgba(83, 74, 183, 0.82);
}

.print-nudge {
  background: rgba(217, 160, 95, 0.1);
  border-color: rgba(217, 160, 95, 0.26);
  color: #342d5f;
}

.print-instructions {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
  margin-top: 18px;
}

.breath-prompt {
  background: rgba(83, 74, 183, 0.06);
  border: 1px solid rgba(83, 74, 183, 0.12);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(73, 65, 162, 0.1);
  max-width: 100%;
}

.question-footer {
  padding-top: 14px;
}

.crisis-link-small {
  color: rgba(83, 74, 183, 0.76);
}

button:focus-visible,
a:focus-visible,
.option-card:focus-visible {
  outline: 2px solid rgba(76, 181, 166, 0.72);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  body::after {
    left: 10px;
    top: 10vh;
    height: 80vh;
  }

  .screen {
    padding: 18px 14px 36px;
  }

  #screen-landing .landing-content,
  .screen-content {
    padding-left: 22px;
    padding-right: 22px;
  }

  #screen-landing .landing-content {
    padding-top: 42px;
    padding-bottom: 40px;
  }

  .question-text,
  .mirror-text,
  .path-card,
  .program-reveal,
  .program-ready-header,
  .week-header,
  .day-block,
  .insight-card,
  .crisis-interrupt {
    padding-left: 20px;
    padding-right: 20px;
  }

  .continue-btn-wrap {
    text-align: center;
  }

  .btn-primary,
  .btn-secondary,
  .btn-sand {
    width: 100%;
  }
}

html.print-preparing *,
html.print-preparing *::before,
html.print-preparing *::after {
  animation: none !important;
  transition: none !important;
}

html.print-preparing body::before,
html.print-preparing body::after,
html.print-preparing .breathing-bg,
html.print-preparing .dots-loader,
html.print-preparing .screen-content,
html.print-preparing .landing-content,
html.print-preparing .program-reveal,
html.print-preparing .share-card,
html.print-preparing .program-ready-header,
html.print-preparing .week-header,
html.print-preparing .day-block,
html.print-preparing .insight-card,
html.print-preparing .crisis-interrupt,
html.print-preparing .path-card,
html.print-preparing .question-text,
html.print-preparing .mirror-text,
html.print-preparing .profile-name-card,
html.print-preparing .sit-with-question {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.pdf-export-root {
  position: fixed;
  left: -99999px;
  top: 0;
  width: 794px;
  padding: 28px;
  background: #ffffff;
  color: #2d2d2d;
  z-index: -1;
}

.pdf-export-root,
.pdf-export-root * {
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.pdf-export-note {
  border: 1px solid #d8d3ef;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 18px;
  background: #f7f6fe;
}

.pdf-export-brand {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #534ab7;
  margin-bottom: 6px;
}

.pdf-export-root .program-ready-header,
.pdf-export-root .program-reveal,
.pdf-export-root .share-card,
.pdf-export-root .week-header,
.pdf-export-root .day-block,
.pdf-export-root .insight-card,
.pdf-export-root .path-card,
.pdf-export-root .mirror-text,
.pdf-export-root .profile-name-card,
.pdf-export-root .sit-with-question,
.pdf-export-root .crisis-interrupt {
  background: #ffffff !important;
  border: 1px solid #e3e0f2 !important;
}

.pdf-export-root .program-ready-header {
  margin-bottom: 24px;
}

.pdf-export-root .week-block {
  page-break-before: always;
  break-before: page;
  margin-bottom: 28px;
}

.pdf-export-root .week-block:first-of-type {
  page-break-before: auto;
  break-before: auto;
}

.pdf-export-root .final-closing {
  page-break-before: always;
  break-before: page;
}
