/* PaperTokens seaLight / seaDark — the same values plan.html uses, so the
   web surfaces read as one thing rather than two. */
:root {
  --bg: #E7E9DD; --panel: #D9DCCC;
  --ink: #1F2418; --muted: #4E5544; --faint: #858A78;
  --line: rgba(31,36,24,.16); --accent: #319880;
  --accent-ink: #ffffff; --hover: rgba(31,36,24,.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171F18; --panel: #232E25;
    --ink: #F4EFE0; --muted: #BEBAA6; --faint: #858C7B;
    --line: rgba(244,239,224,.13); --accent: #319880;
    --accent-ink: #0E130F; --hover: rgba(244,239,224,.05);
  }
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}

/* ── the corner ─────────────────────────────────────────────────────────── */

#corner {
  align-self: flex-end;
  padding: 10px 16px;
  text-align: right;
}

/* The toggle reads as a link, not a control — it is the least important
   thing on the page and should look it. */
#signin-toggle {
  font: inherit;
  font-size: 12px;
  color: var(--faint);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

#signin-toggle:hover { color: var(--muted); text-decoration-color: currentColor; }

#signin-options {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}

#signin-options button, #signout {
  font: inherit;
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 4px 10px;
  cursor: pointer;
}

#signin-options button:hover, #signout:hover { background: var(--hover); color: var(--ink); }

#signout { margin-left: 6px; }

#signed-in-email { font-size: 12px; color: var(--muted); }

#signin-message {
  font-size: 12px;
  color: var(--faint);
  margin-top: 6px;
  min-height: 1em;
}

/* ── the page ───────────────────────────────────────────────────────────── */

main {
  flex: 1;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 12vh 20px 0;
}

h1 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }

.badge {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 6px;
}

.lede { color: var(--muted); margin: 22px 0 20px; }

form { display: flex; gap: 8px; flex-wrap: wrap; }

input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 11px;
}

input[type="email"]::placeholder { color: var(--faint); }

button.primary {
  font: inherit;
  font-size: 13px;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 7px 16px;
  cursor: pointer;
}

button.primary[disabled] { opacity: .55; cursor: default; }

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

#waitlist-message {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  min-height: 1.4em;
}

#waitlist-message.error, #signin-message.error { color: #C2603F; }

@media (prefers-color-scheme: dark) {
  #waitlist-message.error, #signin-message.error { color: #E39B7B; }
}

footer {
  max-width: 30rem;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px;
  font-size: 12px;
}

footer a { color: var(--faint); text-decoration: none; }
footer a:hover { color: var(--muted); text-decoration: underline; }

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