/* Figtree (SIL OFL 1.1), self-hosted: no requests to third parties. Same font and blue as the app. */
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #e4eafc;
  --card: rgb(255 255 255 / 0.78);
  --card-border: rgb(255 255 255 / 0.9);
  --fg: #1a1f33;
  --muted: #555d78;
  --primary: #2f6fe4;
  --check: #1f9d63;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10142a;
    --card: rgb(16 20 40 / 0.72);
    --card-border: rgb(255 255 255 / 0.12);
    --fg: #eef1fb;
    --muted: #a7b0cc;
    --primary: #7fa8f7;
    --check: #4cc98d;
    color-scheme: dark;
  }
  body::before { filter: brightness(0.38) saturate(1.1); }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--fg);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/backdrop.webp") center / cover no-repeat;
}

.card {
  width: 100%;
  max-width: 34rem;
  padding: 2.5rem 2rem 2.25rem;
  border: 1px solid var(--card-border);
  border-radius: 1.75rem;
  background: var(--card);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 24px 60px -24px rgb(31 50 120 / 0.35);
  text-align: center;
}

.logo {
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 10px 24px -10px rgb(47 111 228 / 0.6);
}

.brand {
  margin: 0.75rem 0 0;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

h1 {
  margin: 1rem 0 0;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.375rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  margin: 1rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.0625rem;
  text-wrap: pretty;
}

.features {
  display: grid;
  gap: 0.6rem;
  width: fit-content;
  margin: 1.75rem auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
  font-size: 0.9375rem;
}

.features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.features li::before {
  content: "";
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--check) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

footer {
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 30rem) {
  .card { padding: 2rem 1.25rem 1.75rem; border-radius: 1.5rem; }
}

.lead a { color: var(--primary); font-weight: 600; }
