:root {
  --bg-deep: #0c0f14;
  --bg-section: #111621;
  --bg-card: #181e2a;
  --bg-card-hover: #1f2736;
  --fg: #e2e4e9;
  --fg-muted: #8b91a0;
  --fg-dim: #5a6175;
  --accent: #d4956a;
  --accent-glow: rgba(212, 149, 106, 0.15);
  --accent-bright: #e8b08a;
  --warning: #c75d3a;
  --safe: #5b8a72;
  --crisis-red: #e05252;
  --crisis-glow: rgba(224, 82, 82, 0.2);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-width: 1080px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(212, 149, 106, 0.08) 0%, rgba(91, 138, 114, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(212, 149, 106, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: var(--space-md);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: var(--space-sm);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--accent);
  margin-bottom: var(--space-md);
  font-style: italic;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ---- PROBLEM ---- */
.problem {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-section);
}

.problem-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.problem-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warning);
  margin-bottom: var(--space-md);
}

.problem h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: var(--space-lg);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: var(--space-md);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-style: italic;
}

.problem-statement {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  max-width: 600px;
}

/* ---- FEATURES ---- */
.features {
  padding: var(--space-2xl) var(--space-md);
}

.features-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-block {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-sm);
}

.feature-primary {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 149, 106, 0.06) 100%);
  border-color: rgba(212, 149, 106, 0.15);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg-dim);
  min-width: 2rem;
  padding-top: 0.2rem;
}

.feature-content {
  flex: 1;
}

.feature-block h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.feature-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.feature-examples span {
  background: rgba(212, 149, 106, 0.1);
  border: 1px solid rgba(212, 149, 106, 0.2);
  color: var(--accent-bright);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-style: italic;
}

.feature-sub {
  font-size: 0.9rem;
  color: var(--fg-dim);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.feature-row .feature-block {
  padding: var(--space-md);
}

.feature-row h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.feature-row .feature-desc {
  font-size: 0.9rem;
}

.feature-quote {
  font-style: italic;
  color: var(--accent);
  font-size: 0.9rem;
  border-left: 2px solid var(--accent);
  padding-left: var(--space-sm);
  margin-top: var(--space-xs);
}

/* ---- HOW / COMPARISON ---- */
.how {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-section);
}

.how-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.how-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.how-them, .how-us {
  border-radius: 16px;
  padding: var(--space-md);
}

.how-them {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
}

.how-us {
  background: linear-gradient(135deg, rgba(91, 138, 114, 0.1) 0%, rgba(212, 149, 106, 0.08) 100%);
  border: 1px solid rgba(91, 138, 114, 0.25);
}

.how-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
}

.how-them .how-label { color: var(--fg-dim); }
.how-us .how-label { color: var(--safe); }

.how-them ul, .how-us ul {
  list-style: none;
}

.how-them li, .how-us li {
  font-size: 0.95rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.how-them li:last-child, .how-us li:last-child {
  border-bottom: none;
}

.how-them li { color: var(--fg-dim); }
.how-us li { color: var(--fg); }

.how-them li::before {
  content: '—';
  margin-right: 0.6rem;
  color: var(--fg-dim);
}

.how-us li::before {
  content: '\2192';
  margin-right: 0.6rem;
  color: var(--accent);
}

/* ---- CLOSING ---- */
.closing {
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--fg);
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.closing-final {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem !important;
  color: var(--accent) !important;
  line-height: 1.6 !important;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: -0.01em;
  border: none;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  border: 1px solid var(--accent);
  box-shadow: 0 0 24px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
}

.btn-primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 0 32px rgba(212, 149, 106, 0.25), 0 4px 12px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid rgba(255,255,255,0.1);
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

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

.closing-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

/* ---- PRICING ---- */
.pricing {
  padding: var(--space-2xl) var(--space-md);
  background: var(--bg-section);
}

.pricing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.pricing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--space-xs);
  color: var(--fg);
}

.pricing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-lg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  text-align: left;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-featured {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(212, 149, 106, 0.06) 100%);
  border-color: rgba(212, 149, 106, 0.2);
  box-shadow: 0 0 40px rgba(212, 149, 106, 0.06);
}

.pricing-badge {
  position: absolute;
  top: -0.7rem;
  right: var(--space-md);
  background: var(--accent);
  color: var(--bg-deep);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin-bottom: var(--space-xs);
}

.pricing-card-featured .pricing-tier {
  color: var(--accent);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-dim);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: var(--space-md);
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '\2192';
  margin-right: 0.6rem;
  color: var(--safe);
}

.pricing-card-featured .pricing-features li::before {
  color: var(--accent);
}

/* ---- FOOTER ---- */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-dim);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.footer-help {
  font-size: 0.8rem;
  color: var(--fg-dim);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-help strong {
  color: var(--fg-muted);
}

/* ============================================
   APP PAGE STYLES
   ============================================ */

/* ---- APP NAV ---- */
.app-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.app-nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.app-nav-brand:hover { color: var(--accent); }

/* ---- CRISIS BUTTON ---- */
.crisis-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
  min-height: 50vh;
}

.crisis-btn {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crisis-red) 0%, #c74444 100%);
  border: 3px solid rgba(224, 82, 82, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 40px var(--crisis-glow), 0 4px 20px rgba(0,0,0,0.4);
}

.crisis-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(224, 82, 82, 0.3), 0 8px 30px rgba(0,0,0,0.5);
}

.crisis-btn:active {
  transform: scale(0.98);
}

.crisis-btn-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--crisis-red);
  opacity: 0;
  animation: crisis-pulse 2.5s ease-out infinite;
}

@keyframes crisis-pulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.6); opacity: 0; }
}

.crisis-btn-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.2;
}

.crisis-hint {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  color: var(--fg-dim);
  text-align: center;
}

/* ---- CRISIS RESPONSE ---- */
.crisis-response {
  padding: var(--space-lg) var(--space-md);
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crisis-response-inner {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

.crisis-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.crisis-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.crisis-controls {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- TOOLS SECTION ---- */
.tools-section {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg-section);
}

.tools-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--fg);
  text-align: center;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.tools-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: var(--space-md);
}

.tool-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-xs);
}

.tool-card > p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.tool-trigger {
  margin-top: var(--space-xs);
}

/* ---- URGE WAVE TIMER ---- */
.urge-timer {
  margin: var(--space-sm) 0;
  text-align: center;
}

.urge-timer-display {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xs);
}

.urge-timer-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.urge-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crisis-red) 0%, var(--accent) 50%, var(--safe) 100%);
  border-radius: 3px;
  transition: width 1s linear;
  width: 0%;
}

.urge-timer-msg {
  font-size: 0.9rem;
  color: var(--accent);
  font-style: italic;
}

/* ---- BREATHING PACER ---- */
.breathing-pacer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md) 0;
}

.breathing-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(91, 138, 114, 0.15);
  border: 2px solid var(--safe);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  margin-bottom: var(--space-sm);
}

.breathing-circle span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--safe);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.breathing-in {
  transform: scale(1.3);
  background: rgba(91, 138, 114, 0.25);
  border-color: var(--safe);
}

.breathing-hold {
  transform: scale(1.3);
  background: rgba(212, 149, 106, 0.2);
  border-color: var(--accent);
}

.breathing-hold span { color: var(--accent); }

.breathing-out {
  transform: scale(0.9);
  background: rgba(91, 138, 114, 0.1);
  border-color: var(--fg-dim);
}

.breathing-out span { color: var(--fg-dim); }

.breathing-count {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ---- GROUNDING EXERCISE ---- */
.grounding-exercise {
  padding: var(--space-sm) 0;
}

.grounding-prompt h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.grounding-prompt p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-sm);
}

/* ---- COLD WATER STEPS ---- */
.cold-water-steps ol {
  list-style: none;
  counter-reset: cold;
}

.cold-water-steps li {
  counter-increment: cold;
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding: 0.4rem 0;
  padding-left: 1.6rem;
  position: relative;
}

.cold-water-steps li::before {
  content: counter(cold);
  position: absolute;
  left: 0;
  color: var(--safe);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- SUBSTANCE SECTION ---- */
.substance-section {
  padding: var(--space-xl) var(--space-md);
}

.substance-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.substance-btn {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: var(--space-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.substance-btn:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.substance-btn strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
}

.substance-btn span {
  font-size: 0.85rem;
  color: var(--fg-dim);
}

.substance-response {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(212, 149, 106, 0.15);
  border-radius: 16px;
  padding: var(--space-md);
}

.substance-response h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.substance-steps {
  list-style: none;
  counter-reset: substep;
}

.substance-steps li {
  counter-increment: substep;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  padding: var(--space-sm) 0;
  padding-left: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}

.substance-steps li:last-child { border-bottom: none; }

.substance-steps li::before {
  content: counter(substep);
  position: absolute;
  left: 0;
  top: var(--space-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

.substance-steps li strong {
  color: var(--fg);
}

#substanceClose {
  margin-top: var(--space-sm);
}

/* ---- HELPLINE BANNER ---- */
.helpline-section {
  padding: var(--space-md) var(--space-md);
  text-align: center;
  background: rgba(199, 93, 58, 0.08);
  border-top: 1px solid rgba(199, 93, 58, 0.15);
  border-bottom: 1px solid rgba(199, 93, 58, 0.15);
}

.helpline-section p {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.helpline-section strong {
  color: var(--fg);
}

/* ---- RECOVERY MODE ENTRY SECTION ---- */
.recovery-mode-entry {
  padding: var(--space-md) var(--space-md);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.recovery-mode-entry-text {
  font-size: 0.9rem;
  color: var(--fg-dim);
  margin-bottom: 0.75rem;
}

.recovery-mode-entry-hint {
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Recovery warning (appears after 2nd press) */
.recovery-warning {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(91, 138, 114, 0.08);
  border: 1px solid rgba(91, 138, 114, 0.2);
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
}

.recovery-warning-link {
  background: none;
  border: none;
  color: var(--safe);
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  font-family: inherit;
}

.recovery-warning-link:hover {
  color: var(--fg);
}

/* ============================================
   RECOVERY MODE — HIGH-RISK INTERFACE
   Full-screen overlay. One action at a time.
   No upsell. No streak. No clutter.
   ============================================ */

.recovery-mode {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080b10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow-y: auto;
  /* breathing animation keyframe defined on ring below */
}

/* Exit button — top right, subtle, never aggressive */
.rm-exit-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.25);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.rm-exit-btn:hover {
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.15);
}

/* Header — gentle, no pressure language */
.rm-header {
  padding: 3.5rem var(--space-md) 1.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.rm-indicator {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(91, 138, 114, 0.7);
  margin-bottom: 0.75rem;
}

.rm-intro {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Body — step container */
.rm-body {
  flex: 1;
  width: 100%;
  max-width: 480px;
  padding: 0 var(--space-md) var(--space-md);
}

/* Each step panel */
.rm-step {
  text-align: center;
  padding: var(--space-md) 0;
}

.rm-step-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(91, 138, 114, 0.6);
  margin-bottom: 1rem;
}

.rm-step-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.rm-step-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: 1rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.rm-step-body--dim {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2rem;
}

/* Grounding detail text */
.rm-ground-detail {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- BREATHING RING ---- */
/* Expands on inhale, contracts on exhale. Soft teal glow. */
@keyframes rm-breathe-in {
  from { transform: scale(0.85); box-shadow: 0 0 20px rgba(91, 138, 114, 0.2); }
  to   { transform: scale(1.2);  box-shadow: 0 0 60px rgba(91, 138, 114, 0.4); }
}

@keyframes rm-breathe-out {
  from { transform: scale(1.2);  box-shadow: 0 0 60px rgba(91, 138, 114, 0.4); }
  to   { transform: scale(0.85); box-shadow: 0 0 20px rgba(91, 138, 114, 0.2); }
}

@keyframes rm-breathe-hold {
  from { transform: scale(1.2); }
  to   { transform: scale(1.2); }
}

.rm-breath-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid rgba(91, 138, 114, 0.4);
  background: rgba(91, 138, 114, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(91, 138, 114, 0.2);
}

.rm-breath-ring.rm-breath-in {
  animation: rm-breathe-in 4s ease-in-out forwards;
}

.rm-breath-ring.rm-breath-hold {
  animation: rm-breathe-hold 4s ease forwards;
}

.rm-breath-ring.rm-breath-out {
  animation: rm-breathe-out 6s ease-in-out forwards;
}

.rm-breath-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(91, 138, 114, 0.9);
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.rm-breath-caption {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 2.5rem;
  min-height: 1.4em;
}

/* ---- RECOVERY MODE BUTTONS ---- */
.rm-btn-next {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto var(--space-sm);
  padding: 1rem 1.5rem;
  background: rgba(91, 138, 114, 0.15);
  border: 1px solid rgba(91, 138, 114, 0.3);
  border-radius: 14px;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
}

.rm-btn-next:hover {
  background: rgba(91, 138, 114, 0.25);
  border-color: rgba(91, 138, 114, 0.5);
  color: rgba(255,255,255,0.95);
}

.rm-btn-next--ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  margin-top: 1.5rem;
}

.rm-btn-next--ghost:hover {
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.5);
}

.rm-btn-skip {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-body);
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.rm-btn-skip:hover {
  color: rgba(255,255,255,0.45);
}

/* ---- EMERGENCY CONTACTS ---- */
.rm-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.rm-contact-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  transition: all 0.2s ease;
}

.rm-contact-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.95);
}

.rm-contact-btn--primary {
  background: rgba(91, 138, 114, 0.1);
  border-color: rgba(91, 138, 114, 0.3);
}

.rm-contact-btn--primary:hover {
  background: rgba(91, 138, 114, 0.18);
  border-color: rgba(91, 138, 114, 0.5);
}

.rm-contact-btn--danger {
  background: rgba(224, 82, 82, 0.06);
  border-color: rgba(224, 82, 82, 0.2);
}

.rm-contact-btn--danger:hover {
  background: rgba(224, 82, 82, 0.12);
  border-color: rgba(224, 82, 82, 0.35);
}

.rm-contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.rm-contact-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.rm-contact-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.15rem;
}

.rm-contact-text span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---- RECOVERY MODE FOOTER ---- */
.rm-footer {
  width: 100%;
  max-width: 480px;
  padding: 1.5rem var(--space-md) 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.rm-time-display {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
  min-height: 1.2em;
}

.rm-helpline-shortcut {
  background: none;
  border: none;
  color: rgba(91, 138, 114, 0.5);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: color 0.2s ease;
  text-decoration: underline;
  text-decoration-color: rgba(91, 138, 114, 0.25);
  text-underline-offset: 3px;
}

.rm-helpline-shortcut:hover {
  color: rgba(91, 138, 114, 0.85);
}

/* ---- PERSONAL CONTACTS (Recovery Mode) ---- */
.rm-personal-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.rm-personal-contact-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(91, 138, 114, 0.08);
  border: 1px solid rgba(91, 138, 114, 0.25);
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  transition: all 0.2s ease;
}

.rm-personal-contact-btn:hover {
  background: rgba(91, 138, 114, 0.15);
  border-color: rgba(91, 138, 114, 0.45);
  color: #fff;
}

.rm-personal-contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.rm-personal-contact-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  flex: 1;
}

.rm-personal-contact-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.1rem;
}

.rm-personal-contact-text span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Add contact shortcut inside Recovery Mode */
.rm-add-contact-btn {
  display: block;
  width: fit-content;
  margin: 0 auto 1.5rem;
  background: none;
  border: 1px dashed rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rm-add-contact-btn:hover {
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.55);
}

/* Divider between personal contacts and crisis lines */
.rm-contacts-divider {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  text-align: center;
  margin-bottom: 0.75rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- MY EMERGENCY CONTACTS (Normal App Section) ---- */
.my-contacts-section {
  padding: var(--space-xl) var(--space-md);
  max-width: var(--max-width);
  margin: 0 auto;
}

.my-contacts-desc {
  font-size: 0.95rem;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: var(--space-md);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.my-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto var(--space-md);
}

.my-contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
}

.my-contact-row-info {
  flex: 1;
}

.my-contact-row-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.my-contact-row-label {
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-top: 0.1rem;
}

.my-contact-row-actions {
  display: flex;
  gap: 0.5rem;
}

.my-contact-call-btn {
  padding: 0.35rem 0.85rem;
  background: rgba(91, 138, 114, 0.12);
  border: 1px solid rgba(91, 138, 114, 0.3);
  border-radius: 100px;
  color: rgba(91, 138, 114, 0.9);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.my-contact-call-btn:hover {
  background: rgba(91, 138, 114, 0.2);
  border-color: rgba(91, 138, 114, 0.5);
  color: #5b8a72;
}

.my-contact-edit-btn {
  padding: 0.35rem 0.7rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  color: var(--fg-dim);
  font-family: var(--font-body);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.my-contact-edit-btn:hover {
  border-color: rgba(255,255,255,0.18);
  color: var(--fg-muted);
}

.my-contacts-empty {
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.9rem;
  padding: var(--space-md) 0;
}

/* ---- CONTACT MODAL ---- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.contact-modal-box {
  background: #151b26;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  position: relative;
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s ease;
}

.contact-modal-close:hover {
  color: rgba(255,255,255,0.7);
}

.contact-modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.4rem;
}

.contact-modal-desc {
  font-size: 0.85rem;
  color: var(--fg-dim);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}

.contact-required {
  color: var(--warning);
}

.contact-optional {
  color: var(--fg-dim);
  font-weight: 400;
}

.contact-field input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
  outline: none;
  width: 100%;
}

.contact-field input:focus {
  border-color: rgba(91, 138, 114, 0.5);
}

.contact-field input::placeholder {
  color: var(--fg-dim);
}

.contact-error {
  font-size: 0.85rem;
  color: var(--crisis-red);
  padding: 0.5rem 0;
}

.contact-form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* ---- APP UPGRADE CTA ---- */
.app-upgrade {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.app-upgrade h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: var(--space-xs);
}

.app-upgrade p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
  .feature-primary {
    flex-direction: column;
  }
  .feature-row {
    grid-template-columns: 1fr;
  }
  .how-comparison {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 85vh;
    padding: var(--space-lg) var(--space-sm);
  }
  .problem, .features, .how, .closing, .pricing {
    padding: var(--space-xl) var(--space-sm);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .closing-actions {
    flex-direction: column;
    align-items: center;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .substance-grid {
    grid-template-columns: 1fr;
  }
  .crisis-btn {
    width: 160px;
    height: 160px;
  }
  .crisis-btn-text {
    font-size: 1.1rem;
  }
  .tools-section, .substance-section {
    padding: var(--space-lg) var(--space-sm);
  }
}