/* Landing page and password page, shown to visitors without app access (see middleware.js) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/static/fonts/inter-latin.woff2) format('woff2');
}

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

:root {
  --bg: #020d1e;
  --surface: #081628;
  --line-strong: #223857;
  --text: #f2f6fc;
  --text-2: #b6c3d8;
  --muted: #7a8ba6;
  --accent: #0082fe;
  --accent-hover: #2394ff;
  --brand-red: #fb131f;
  --brand-blue: #0082fe;
  color-scheme: dark;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #0a2a55 0%, transparent 60%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 48px; width: auto; display: block; }
.brand .word { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.brand .n { color: var(--brand-red); }
.brand .l { color: var(--brand-blue); }

.hero {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: center;
}
.copy h1 {
  margin: 32px 0 16px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.copy h1 em { font-style: normal; color: var(--accent-hover); }
.lead { color: var(--text-2); font-size: 1.08rem; max-width: 34em; }

.play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0 28px;
  padding: 12px 24px 12px 18px;
  border-radius: 14px;
  background: #000;
  border: 1px solid #5f6b7d;
  color: #fff;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.play:hover { border-color: #fff; transform: translateY(-1px); }
.play span { display: flex; flex-direction: column; font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.play small { font-size: .72rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: #d3d9e2; }

.points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .92rem; }
.points li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 6px solid #1a2a42;
  box-shadow: 0 30px 80px #0008;
}

.foot { padding: 24px 32px 32px; text-align: center; font-size: .85rem; }
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 16px 16px; text-align: center; }
  .copy h1 { margin-top: 24px; }
  .lead { margin: 0 auto; }
  .points { justify-content: center; }
  .phone { max-width: 260px; margin: 0 auto; }
}

/* ---------- Password page (/site) ---------- */
.gate { align-items: center; justify-content: center; padding: 16px; }
.login {
  width: 100%;
  max-width: 360px;
  padding: 32px 28px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login .brand { margin-bottom: 16px; }
.login .brand img { height: 34px; }
.login .brand .word { font-size: 1.35rem; }
.login label { font-size: .9rem; color: var(--text-2); }
.login input {
  font: inherit;
  color: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
}
.login input:focus { outline: none; border-color: var(--accent); }
.login button {
  font: inherit;
  font-weight: 700;
  margin-top: 6px;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.login button:hover { background: var(--accent-hover); }
.login .error { color: #ff6b73; font-size: .9rem; }
.login .back { margin-top: 8px; color: var(--muted); font-size: .85rem; text-align: center; }
