/* Companion landing page — warm, ADHD-friendly, low-distraction */

:root {
  --bg: #0f0f1a;
  --bg-soft: #1a1a2e;
  --card: #1f1f35;
  --text: #e8e8f0;
  --text-soft: #a0a0b8;
  --accent: #b8a4ff;        /* soft lavender, calming, not corporate */
  --accent-soft: #d4c5ff;
  --warm: #ffd4a3;          /* warm peach for warmth */
  --border: #2a2a45;
  --radius: 12px;
  --max-width: 720px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "SF Pro Display", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Hero */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  text-align: center;
}

.eyebrow {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}

h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 540px;
  margin: 0 auto 40px;
}

.lead-small {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 32px;
}

/* Waitlist form */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto 16px;
}

@media (min-width: 600px) {
  .waitlist {
    flex-direction: row;
    align-items: stretch;
  }
  .waitlist input { flex: 1; }
}

.waitlist input {
  padding: 16px 18px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.2s;
}

.waitlist input:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist button {
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.waitlist button:hover { background: var(--accent-soft); }
.waitlist button:active { transform: scale(0.98); }
.waitlist button:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  font-size: 0.9rem;
  color: var(--warm);
  min-height: 1.2em;
  grid-column: 1 / -1;
}

.form-status.success { color: #8be9a4; }
.form-status.error { color: #ff8a8a; }

.reassure {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 8px;
}

/* Sections */
section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* What grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.card:hover { border-color: var(--accent); }

.card .icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* Science */
.science { background: var(--bg-soft); }

.sources {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sources li {
  padding-left: 20px;
  position: relative;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.sources li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.sources strong { color: var(--text); }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.steps h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.steps p {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* Trust / no-list */
.no-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-soft);
}

.no-list li {
  padding-left: 8px;
}

/* CTA final */
.cta-final {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.cta-final p { color: var(--text-soft); margin-bottom: 32px; }

/* Footer */
footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-soft);
}

footer .small {
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.7;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
