:root {
  /* bFluid brand — pulled from the app's design tokens */
  --primary: oklch(0.511 0.231 276.966);
  --primary-hover: oklch(0.46 0.231 276.966);
  --accent: oklch(0.72 0.13 188);
  --foreground: oklch(0.18 0.02 277);
  --muted-foreground: oklch(0.5 0.02 277);
  --background: oklch(1 0 0);
  --surface: oklch(0.985 0.005 277);
  --border: oklch(0.92 0.01 277);
  --ring: oklch(0.511 0.231 276.966 / 0.35);
  --radius: 0.75rem;

  --max-width: 44rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--foreground);
  background-color: var(--background);
  background-image:
    radial-gradient(60rem 40rem at 75% -10%, oklch(0.511 0.231 276.966 / 0.10), transparent 60%),
    radial-gradient(50rem 36rem at -10% 110%, oklch(0.72 0.13 188 / 0.10), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 2rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--foreground);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: linear-gradient(140deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}

.brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.badge {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--primary);
  background: oklch(0.511 0.231 276.966 / 0.10);
  border: 1px solid oklch(0.511 0.231 276.966 / 0.20);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.headline {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 18ch;
}

.subline {
  margin: 1.25rem 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 42ch;
}

/* Sign-up */
.signup {
  margin-top: 2.5rem;
  max-width: 32rem;
}

.signup-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.access-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.access-form input {
  flex: 1 1 16rem;
  min-width: 0;
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.access-form input::placeholder {
  color: var(--muted-foreground);
}

.access-form input:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.access-form button {
  flex: 0 0 auto;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.access-form button:hover {
  background: var(--primary-hover);
}

.access-form button:active {
  transform: translateY(1px);
}

.access-form button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.access-form button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form-message {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-message.error {
  color: oklch(0.55 0.22 27);
}

.form-message.success {
  color: oklch(0.55 0.13 188);
}

.beta-note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted-foreground);
}

.footer-links a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--foreground);
  text-decoration: underline;
}

/* Utility */
.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 (prefers-color-scheme: dark) {
  :root {
    --foreground: oklch(0.97 0 0);
    --muted-foreground: oklch(0.72 0.02 277);
    --background: oklch(0.16 0.01 277);
    --surface: oklch(0.2 0.01 277);
    --border: oklch(1 0 0 / 0.12);
  }

  .access-form input {
    background: oklch(1 0 0 / 0.04);
  }
}
