/* ─── design tokens ──────────────────────────────────────────────── */
:root {
  --cream:        #FAF7F2;
  --green-deep:   #1B4332;
  --green-mid:    #2D6A4F;
  --amber:        #D97706;
  --amber-dark:   #C05621;
  --text-muted:   rgba(27, 67, 50, 0.60);
  --card-bg:      #FFFFFF;
  --card-border:  rgba(27, 67, 50, 0.08);
  --radius-lg:    24px;
  --radius-pill:  999px;
}

/* ─── reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--green-deep);
  -webkit-font-smoothing: antialiased;
}

/* ─── coming-soon layout ─────────────────────────────────────────── */
.cs-root {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

/* ambient blobs — mirrors the mockup hero */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.blob-green {
  width: 800px; height: 800px;
  top: -200px; right: -200px;
  background: rgba(27, 67, 50, 0.09);
}
.blob-amber {
  width: 600px; height: 600px;
  bottom: -160px; left: -160px;
  background: rgba(217, 119, 6, 0.09);
}

.cs-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* ─── logo ───────────────────────────────────────────────────────── */
.cs-header { margin-bottom: 52px; }
.cs-logo {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--green-deep);
}

/* ─── badge ──────────────────────────────────────────────────────── */
.cs-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(217, 119, 6, 0.10);
  border: 1px solid rgba(217, 119, 6, 0.30);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}

/* ─── headline ───────────────────────────────────────────────────── */
.cs-headline {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.1;
  color: var(--green-deep);
  margin-bottom: 24px;
}

.cs-accent {
  color: var(--amber);
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.cs-underline {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 10px;
  color: var(--amber-dark);
  overflow: visible;
}

/* ─── subheadline ────────────────────────────────────────────────── */
.cs-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.75;
  margin: 0 auto 52px;
}

/* ─── stats bar ──────────────────────────────────────────────────── */
.cs-stats {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(27, 67, 50, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 48px;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 100px;
}
.cs-stat-value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--green-deep);
  line-height: 1;
}
.cs-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cs-divider {
  width: 1px;
  height: 48px;
  background: var(--card-border);
  flex-shrink: 0;
}
@media (max-width: 520px) {
  .cs-divider { display: none; }
  .cs-stats { gap: 20px; }
  .cs-stat { min-width: 40%; }
}

/* ─── footer ─────────────────────────────────────────────────────── */
.cs-footer {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ─── email capture ──────────────────────────────────────────────── */
.cs-capture {
  width: 100%;
  max-width: 480px;
  margin-bottom: 44px;
  text-align: center;
}
.cs-capture-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.cs-form {
  display: flex;
  gap: 8px;
}
.cs-input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  color: var(--green-deep);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}
.cs-input::placeholder { color: var(--text-muted); }
.cs-input:focus { border-color: var(--green-mid); }
.cs-btn {
  padding: 13px 22px;
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, opacity 0.2s;
}
.cs-btn:hover { background: var(--green-mid); }
.cs-btn:disabled { opacity: 0.6; cursor: default; }
.cs-form-msg {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 0.88rem;
}
.cs-form-msg.success { color: var(--green-mid); }
.cs-form-msg.error   { color: var(--amber-dark); }

@media (max-width: 440px) {
  .cs-form { flex-direction: column; }
  .cs-btn  { width: 100%; }
}

/* ─── document viewer (internal /research/ pages) ─────────────────── */
.doc-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}
.doc-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--green-mid);
  margin-bottom: 24px;
  text-decoration: none;
}
.doc-back:hover { text-decoration: underline; }

.prose {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px clamp(20px, 4vw, 48px);
  color: var(--green-deep);
}
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: 'Sora', sans-serif; margin-top: 1.5em; line-height: 1.25; }
.prose h1 { font-size: 1.9rem; margin-top: 0; }
.prose h2 { font-size: 1.4rem; border-bottom: 1px solid var(--card-border); padding-bottom: 6px; }
.prose h3 { font-size: 1.15rem; }
.prose p, .prose li { color: var(--text-muted); line-height: 1.75; }
.prose a { color: var(--amber-dark); }
.prose code {
  background: #F0EDE8; padding: 2px 6px;
  border-radius: 6px; font-size: 0.9em;
}
.prose pre {
  background: #F0EDE8; border: 1px solid var(--card-border);
  border-radius: 12px; padding: 14px 18px; overflow-x: auto;
}
.prose pre code { background: transparent; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--card-border); padding: 8px 12px; }
.prose th { background: #F5F2EC; font-family: 'Sora', sans-serif; }
.prose blockquote {
  border-left: 3px solid var(--amber);
  padding: 4px 16px; color: var(--text-muted);
  background: rgba(217,119,6,0.06);
  border-radius: 0 8px 8px 0; margin: 1em 0;
}
.prose hr { border: none; border-top: 1px solid var(--card-border); margin: 2em 0; }
