/* Pre-launch page. The design commits to the dark palette, so this page does not follow the
   system setting; it pins the dark tokens and paints its own background. */
:root {
  --bg0: #141417;
  --bg1: #1b1b1f;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .14);
  --fg: #e9e9ee;
  --fg2: rgba(233, 233, 238, .62);
  --acc: oklch(.72 .15 300);
  --acc-solid: oklch(.52 .18 300);
  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "SF Pro Display", Helvetica, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box }

html { background: var(--bg0) }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 32px 24px;
  background: var(--bg0);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--acc); text-decoration: none }
a:hover { text-decoration: underline }

.band { width: 100%; max-width: 640px; margin: 0 auto }

/* Header */
.masthead { display: flex; align-items: center; gap: 12px }
.wordmark { font: 700 17px/1 var(--font-display); letter-spacing: -.02em }

/* The approved outline mark, drawn as a stack of bars so it needs no asset. */
.mark {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: var(--bg1);
  border: 1px solid var(--line);
  padding: 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5px;
}
.mark .row { display: flex; align-items: center; gap: 2.5px }
.mark .row.child { padding-left: 5px }
.mark .dot { width: 3.5px; height: 3.5px; border-radius: 1px; flex: none }
.mark .bar { flex: 1; height: 3.5px; border-radius: 2px }
.mark .ink-acc { background: var(--acc) }
.mark .ink-90 { background: rgba(233, 233, 238, .9) }
.mark .ink-50 { background: rgba(233, 233, 238, .5) }
.mark .ink-30 { background: rgba(233, 233, 238, .3); border-radius: 2px }

/* Hero */
.hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 0 }
.hero-inner { display: flex; flex-direction: column; gap: 28px }

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--acc);
}
.badge .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) {
  .badge .pulse { animation: none }
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  /* 68px at the designed width, down to something a phone can hold. */
  font-size: clamp(38px, 8.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.subhead {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg2);
  max-width: 540px;
  text-wrap: pretty;
}

/* Form */
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 460px }
.signup .line { display: flex; gap: 8px }

.signup input[type=email] {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line2);
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
}
.signup input[type=email]::placeholder { color: rgba(233, 233, 238, .4) }
.signup input[type=email]:focus-visible,
.signup button:focus-visible,
.consent input:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.signup button {
  height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: var(--acc-solid);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.signup button:hover { filter: brightness(1.08) }
.signup button[disabled] { opacity: .6; cursor: default }

.note { font-size: 13px; color: var(--fg2) }
.note.error { color: oklch(.66 .2 25) }

.consent { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--fg2) }
.consent input {
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
  border-radius: 4px;
  accent-color: var(--acc-solid);
}

/* The confirmation replaces the form in the same slot rather than navigating away. */
.confirmed { display: flex; flex-direction: column; gap: 10px; max-width: 460px }
.confirmed .headline { font-size: 15px; color: var(--fg) }

/* Footer */
.colophon {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--fg2);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.colophon .spacer { flex: 1 }

@media (max-width: 560px) {
  .signup .line { flex-direction: column }
  .signup button { width: 100% }
  .hero { padding: 40px 0 }
  .colophon .spacer { flex-basis: 100% }
}
