/* ============================================================
   Flashi signup — colors & fonts matched to the Flashi widget
   (demo/index.html + demo/styles.css)
   ============================================================ */

/* Primary UI typeface — "Sons" (same as the widget) */
@font-face {
  font-family: "Sons";
  src: url("fonts/Sons-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sons";
  src: url("fonts/Sons-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sons";
  src: url("fonts/Sons-Semibold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* Brand wordmark typeface — "Open Sauce One" (same as the widget logo) */
@font-face {
  font-family: "Open Sauce One";
  src: url("fonts/OpenSauceOne-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* Design tokens lifted verbatim from the widget */
:root {
  --uf-page-bg: #000000;                 /* widget page background (pure black) */
  --uf-card: #121212;                    /* row / control surface */
  --uf-border: rgba(255, 255, 255, 0.09);/* hairline */
  --uf-border-strong: rgba(255, 255, 255, 0.2);
  --uf-fg: #ffffff;                      /* white text */
  --uf-muted: #9a9a9a;                   /* mid gray */
  --uf-accent: #ffffff;                  /* accent = white */
  --uf-radius: 0.375rem;                 /* 6px */
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--uf-page-bg);
  color: var(--uf-fg);
  font-family: "Sons", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

.stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
}

/* Logo lockup — wordmark then spark, like the widget footer */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.word {
  font-family: "Open Sauce One", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.035em;
  color: #f2f3f6;
  line-height: 1;
}
.mark {
  display: block;
  color: #f3f4f7;
}

.tagline {
  margin: 0;
  color: var(--uf-muted);
  font-size: 14px;
  font-weight: 500;
}

/* Email form */
.signup {
  display: flex;
  gap: 8px;
  width: min(420px, 100%);
}
.signup input {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  font: inherit;
  font-weight: 500;
  font-size: 16px;
  color: var(--uf-fg);
  caret-color: #fff;
  background: var(--uf-card);
  border: 1px solid var(--uf-border);
  border-radius: var(--uf-radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.signup input::placeholder { color: var(--uf-muted); }
.signup input:focus-visible {
  border-color: var(--uf-border-strong);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.signup button {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 20px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #0a0a0a;                 /* dark text on the white accent (legible) */
  background: var(--uf-accent);
  border: 0;
  border-radius: var(--uf-radius);
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease;
}
.signup button:hover { opacity: 0.92; }
.signup button:active { transform: translateY(1px); }
.signup button:disabled { opacity: 0.55; cursor: default; }

/* Inline status message (monochrome, like the widget) */
.status {
  margin: 0;
  min-height: 1em;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--uf-muted);
}
.status.is-ok { color: #e8e8e8; }
.status.is-err { color: #e08a8a; }

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

@media (max-width: 460px) {
  .signup { flex-direction: column; }
  .signup button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
