:root {
  --bg: #F2F6F4;
  --surface: #FFFFFF;
  --text: #1C2624;
  --text-muted: #55645F;
  --primary: #145C4B;
  --primary-tint: #BFE3D3;
  --accent: #E8834A;
  --accent-dark: #8A431A;
  --border: #DCE7E2;

  --font-display: 'Newsreader', serif;
  --font-body: 'IBM Plex Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
}

.state { padding: 40px 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin: 0 0 24px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--text);
}

.benefit {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 auto 28px;
  max-width: 36ch;
}

.muted { color: var(--text-muted); }
.small { font-size: 13px; }

/* Signature element: the breath ring */
.ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 28px;
}

.breath-ring { width: 100%; height: 100%; }

.ring-track {
  fill: none;
  stroke: var(--primary-tint);
  stroke-width: 6;
}

.ring-glow {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 540;
  stroke-dashoffset: 90;
  transform-origin: center;
  animation: breathe 4.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { stroke-dashoffset: 90; opacity: 0.75; }
  50% { stroke-dashoffset: 40; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ring-glow { animation: none; stroke-dashoffset: 60; }
}

.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.streak-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}

.streak-unit {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 8px;
}

.stat { display: flex; flex-direction: column; }

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
  text-align: left;
}

.reply-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.reply-form input,
.reply-form textarea {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}

.reply-form textarea { min-height: 80px; }

.reply-form input:focus,
.reply-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.form-note {
  font-size: 13px;
  min-height: 18px;
  margin: 2px 0 0;
}

.replies-wall {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
}

.reply-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.reply-message {
  font-size: 14px;
  margin: 0 0 4px;
}

.reply-author {
  font-size: 12px;
  color: var(--text-muted);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.ad-slot {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.donate-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.donate-link:hover { text-decoration: underline; }

.wordmark {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

@media (max-width: 400px) {
  .card { padding: 32px 20px; }
  .streak-number { font-size: 44px; }
}
