/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* ─── Design tokens ─── */
:root {
  --bg:           #ffffff;
  --bg-2:         #f8fafc;
  --bg-3:         #f1f5f9;
  --border:       #e2e8f0;
  --border-2:     #cbd5e1;

  --text-1:       #0f172a;
  --text-2:       #334155;
  --text-3:       #64748b;
  --text-4:       #94a3b8;

  --accent:       #2563eb;
  --accent-dark:  #1d4ed8;
  --accent-light: #eff6ff;
  --accent-ring:  #bfdbfe;

  --green:        #059669;
  --green-light:  #ecfdf5;

  --font:   'Inter', system-ui, -apple-system, sans-serif;
  --mono:   'JetBrains Mono', 'Fira Code', monospace;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;

  --max-w:  1160px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer; transition: all .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.btn-primary:disabled {
  background: var(--green); border-color: var(--green);
  transform: none; box-shadow: none; cursor: default;
}

/* ════════════════════════════════════════
   HEADER / NAV (minimal)
════════════════════════════════════════ */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.1rem; font-weight: 800;
  color: var(--text-1); letter-spacing: -.03em;
}
.logo__mark {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.site-header__tagline {
  font-size: .8rem; font-weight: 500; color: var(--text-4);
  font-family: var(--mono);
}
@media (max-width: 480px) { .site-header__tagline { display: none; } }

/* ════════════════════════════════════════
   MAIN — fills remaining height
════════════════════════════════════════ */
.page-main {
  flex: 1;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

/* dot-grid background */
.page-main::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, #dde3ec 1px, transparent 0);
  background-size: 28px 28px;
  z-index: 0;
}

/* gradient orbs */
.orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(48px);
}
.orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(37,99,235,.10) 0%, transparent 65%);
  top: -160px; right: -80px;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.07) 0%, transparent 65%);
  bottom: -80px; left: 4%;
}

.page-main__inner {
  position: relative; z-index: 1;
  width: 100%;
}

/* ════════════════════════════════════════
   HERO COPY
════════════════════════════════════════ */
.cs-body {
  max-width: 640px;
}

/* eyebrow pill */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-ring);
  border-radius: 100px;
  padding: 5px 13px; margin-bottom: 1.5rem;
}
.pill__dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

.cs-title {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 900; line-height: 1.07;
  letter-spacing: -.04em; margin-bottom: 1.25rem;
}
.gradient-text {
  background: linear-gradient(120deg, #2563eb 10%, #7c3aed 55%, #0891b2 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-sub {
  font-size: clamp(.975rem, 2vw, 1.15rem);
  color: var(--text-3); line-height: 1.75;
  margin-bottom: 2.5rem; max-width: 500px;
}

/* ════════════════════════════════════════
   EMAIL FORM
════════════════════════════════════════ */
.signup-form {
  display: flex; gap: 8px; max-width: 420px; margin-bottom: .875rem;
}
@media (max-width: 480px) { .signup-form { flex-direction: column; } }

.signup-form__input {
  flex: 1; min-width: 0;
  background: var(--bg);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm);
  font-family: var(--font); font-size: .9rem; color: var(--text-1);
  padding: 10px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.signup-form__input::placeholder { color: var(--text-4); }
.signup-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.signup-form__input--error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.signup-form__input--error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,.18);
}

.signup-note {
  font-size: .75rem; color: var(--text-4);
}

/* honeypot — off-screen, invisible to humans, tempting to bots */
.hp-field {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
  pointer-events: none;
}

/* CAPTCHA widget container */
#captcha-wrap { margin-top: .75rem; }

/* success state */
.signup-success {
  display: none;
  align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600;
  color: var(--green); margin-bottom: .875rem;
}
.signup-success.visible { display: flex; }
.signup-success__icon {
  width: 22px; height: 22px;
  background: var(--green-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   COUNTDOWN
════════════════════════════════════════ */
.countdown {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  max-width: 440px;
}
.countdown__label {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 1rem;
}
.countdown__grid {
  display: flex; gap: 1rem;
}
.countdown__unit {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; min-width: 60px;
}
.countdown__num {
  font-size: 2.25rem; font-weight: 900;
  letter-spacing: -.05em; color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown__seg {
  font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-4);
}
.countdown__sep {
  font-size: 2rem; font-weight: 900; color: var(--border-2);
  padding-top: 2px; line-height: 1;
  align-self: flex-start;
}

/* ════════════════════════════════════════
   FEATURE CHIPS  (what's coming)
════════════════════════════════════════ */
.coming-chips {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--text-2);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 12px;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--border-2); background: var(--bg-3); }
.chip__dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.chip--blue   .chip__dot { background: var(--accent); }
.chip--green  .chip__dot { background: #059669; }
.chip--purple .chip__dot { background: #7c3aed; }
.chip--orange .chip__dot { background: #ea580c; }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  background: var(--bg-2);
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.site-footer__copy {
  font-size: .78rem; color: var(--text-4);
}
.site-footer__links {
  display: flex; gap: 1.25rem;
}
.site-footer__links a {
  font-size: .78rem; color: var(--text-4);
  transition: color .15s;
}
.site-footer__links a:hover { color: var(--text-2); }

/* ─── Mobile layout fixes ─── */
@media (max-width: 640px) {
  /* Orbs are decorative and cause horizontal overflow on narrow screens */
  .orb { display: none; }

  .page-main {
    align-items: flex-start;
    overflow: visible;    /* safe now that orbs are hidden */
    padding-bottom: 3rem; /* ensure chips clear the footer */
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .pill__dot { animation: none; }
  .btn-primary:hover { transform: none; }
}

/* ─── Confirmation banner (shown after email link click) ─── */
.confirm-banner {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: .875rem 1rem;
  font-size: .9rem; font-weight: 600; text-align: center;
  animation: slideDown .3s ease;
}
.confirm-banner.visible { display: block; }
.confirm-banner--success { background: #ecfdf5; color: #065f46; border-bottom: 1px solid #a7f3d0; }
.confirm-banner--info    { background: #eff6ff; color: #1e40af; border-bottom: 1px solid #bfdbfe; }
.confirm-banner--error   { background: #fef2f2; color: #991b1b; border-bottom: 1px solid #fecaca; }
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
