﻿:root {
  color-scheme: dark;
  --background: #171717;
  --surface: #222222;
  --text: #fafafa;
  --secondary: #a3a3a3;
  --border: #454545;
  --border-hover: #737373;
  --button: #fafafa;
  --button-text: #171717;
  --button-hover: #dedede;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] {
  color-scheme: light;
  --background: #ffffff;
  --surface: #ffffff;
  --text: #171717;
  --secondary: #646464;
  --border: #c9c9c9;
  --border-hover: #737373;
  --button: #171717;
  --button-text: #ffffff;
  --button-hover: #333333;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; align-items: center; }
button, input { font: inherit; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.page { width: min(calc(100% - 48px), 440px); flex: 1; display: grid; align-items: center; margin: 0 auto; padding: 88px 0 32px; }
.intro { text-align: center; }
.logo-wrap { position: relative; width: 76px; height: 66px; margin: 0 auto 24px; overflow: hidden; }
.logo { position: absolute; width: 140px; height: 140px; max-width: none; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: grayscale(1) contrast(10) invert(1); mix-blend-mode: screen; }
:root[data-theme="light"] .logo { filter: grayscale(1) contrast(10); mix-blend-mode: multiply; }
h1 { font-size: 34px; line-height: 1.2; font-weight: 600; letter-spacing: -1.1px; margin: 0; text-wrap: balance; }
.description { margin: 12px auto 0; color: var(--secondary); font-size: clamp(10px, 3vw, 16px); line-height: 1.65; white-space: nowrap; }
.signup { margin-top: 24px; }
form { display: flex; gap: 10px; }
input[type="email"] { flex: 1; min-width: 0; width: 100%; height: 48px; padding: 0 15px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }
input::placeholder { color: var(--secondary); opacity: 1; }
input:hover { border-color: var(--border-hover); }
button { cursor: pointer; }
form button { min-height: 48px; min-width: 116px; padding: 0 20px; border: 1px solid var(--button); border-radius: 8px; background: var(--button); color: var(--button-text); font-size: 14px; font-weight: 600; }
form button:hover { background: var(--button-hover); border-color: var(--button-hover); }
form button:disabled { opacity: .65; cursor: wait; }
.form-note { min-height: 36px; margin: 10px 0 0; color: var(--secondary); font-size: 12px; line-height: 1.5; }
.join-link { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; margin: 0 20px max(20px, env(safe-area-inset-bottom)); font-size: 14px; color: var(--secondary); text-decoration: underline; text-decoration-color: var(--border-hover); }
.join-link:hover { color: var(--text); text-decoration-color: currentColor; }
.theme-toggle { position: absolute; top: max(20px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--secondary); }
.theme-toggle:hover { color: var(--text); border-color: var(--border-hover); background: var(--surface); }
.theme-toggle svg { flex: none; }
.moon-icon { display: none; }
:root[data-theme="light"] .sun-icon { display: none; }
:root[data-theme="light"] .moon-icon { display: block; }
.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; }
.skip { position: absolute; top: -80px; left: 20px; background: var(--text); color: var(--background); padding: 12px; z-index: 3; }
.skip:focus { top: 15px; }
@media (max-width: 420px) {
  .page { width: calc(100% - 40px); padding-top: 88px; padding-bottom: 24px; }
  h1 { font-size: 29px; letter-spacing: -.9px; }
  form { flex-direction: column; gap: 10px; }
  form button { width: 100%; }
  .theme-toggle { right: max(20px, env(safe-area-inset-right)); }
}
