/* =========================================================
   BRAND TOKENS — dark, OpenAI/WHOOP-style: black + indigo accent
   ========================================================= */
:root {
  --bg: #000000;
  --bg-2: #1a1a1a;
  --text: #f5f5f7;
  --text-dim: #8c8c93;
  --border: #2c2c30;
  --accent: #5457ef;
  --accent-hover: #4347d9;
  --danger: #ef8686;

  --font-display: "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.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;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  padding: 32px 24px;
  text-align: center;
}

.mark {
  margin: 0 auto 20px;
  width: 220px;
}

.mark svg {
  width: 100%;
  height: auto;
  display: block;
}

.mark-line {
  fill: none;
  stroke: var(--text);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw 1.6s ease forwards;
}

.mark-line:nth-child(2) { animation-delay: 0.15s; }
.mark-line:nth-child(3) { animation-delay: 0.3s; }
.mark-line:nth-child(4) { animation-delay: 0.45s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mark-line {
    animation: none;
    stroke-dashoffset: 0;
  }
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.14em;
  margin: 0 0 6px;
}

.tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 40px;
}

.tagline-dash {
  width: 28px;
  height: 1px;
  background: var(--text-dim);
  flex-shrink: 0;
}

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

.headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 auto 32px;
  max-width: 400px;
}

.notify-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto;
}

#email {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
}

#email::placeholder { color: #6e6e75; }

#email:focus-visible {
  outline: none;
  border-color: var(--accent);
}

#notify-btn {
  flex-shrink: 0;
  padding: 13px 26px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.1s ease;
}

#notify-btn:hover { background: var(--accent-hover); }
#notify-btn:active { transform: scale(0.98); }

#notify-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#notify-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

#notify-btn.loading .btn-spinner { display: inline-block; }
#notify-btn.loading .btn-label { opacity: 0.85; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status {
  min-height: 20px;
  margin: 16px 0 0;
  font-size: 14px;
  font-weight: 500;
}

.status[data-state="ok"] { color: #4ade80; }
.status[data-state="error"] { color: var(--danger); }

.foot {
  position: relative;
  z-index: 1;
  padding: 24px;
  font-size: 13px;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .notify-form { flex-direction: column; }
  #notify-btn { width: 100%; justify-content: center; }
}
