/* BACKFLD front page (coming soon + sign-in). Same look as backfld.com. */
:root {
  --bg: #000;
  --fg: #fff;
  --muted: #9aa4ad;
  --dim: #5d666e;
  --line: rgba(255,255,255,.08);
  --edge: rgba(255,255,255,.22);
  --accent: #2D97FB;   /* BACKFLD's blue: Andrew's logo 2.0 (26 Nov 2026; #1F78D1 and #5EAFFC before); ALL24's is #4B9CD3 */
  --bad: #e5484d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.bf {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}
/* field seen from above: yard lines + hash marks, very faint */
.bf-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(45,151,251,.10) calc(50% - .5px), rgba(45,151,251,.10) calc(50% + .5px), transparent calc(50% + .5px)),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 120px);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 45%, #000 20%, transparent 85%);
}
.bf-field::before, .bf-field::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 11px, var(--line) 11px 12px, transparent 12px 24px);
}
.bf-field::before { top: 36%; }
.bf-field::after { top: 64%; }

.bf header, .bf main, .bf footer { position: relative; z-index: 1; }
.bf-wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.bf header .bf-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.bf-mark { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
.bf-mark span, .bf h1 span { color: var(--accent); }
.bf-status {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.bf-status::before { content: ""; width: 6px; height: 6px; background: var(--accent); }

.bf main { flex: 1; display: flex; align-items: center; }
.bf-hero { padding-top: 64px; padding-bottom: 80px; }
.bf h1 { font-size: clamp(56px, 13vw, 148px); font-weight: 800; letter-spacing: -.055em; line-height: .9; }
.bf-rule { width: 56px; height: 3px; background: var(--accent); margin: 36px 0 28px; }
.bf-lede { font-size: clamp(19px, 2.4vw, 24px); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; max-width: 560px; }
.bf-sub { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.bf-sub a { color: var(--fg); }

.bf footer .bf-wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--dim);
}
.bf footer a, .bf-quiet { color: var(--dim); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.bf footer a:hover, .bf-quiet:hover { color: var(--muted); }

/* ── Sign-in ─────────────────────────────────────────────────────────── */
.bf-card { width: 100%; max-width: 400px; padding: 72px 0 96px; }
.bf-card h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.bf-card .bf-note { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 26px; }
.bf-field-row { display: block; margin-bottom: 14px; }
.bf-field-row > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.bf-input {
  width: 100%; height: 44px; padding: 0 12px; background: #0b0d0f; color: var(--fg);
  border: 1px solid var(--edge); border-radius: 2px; font: inherit; font-size: 16px;
}
.bf-input:focus { outline: none; border-color: var(--accent); }
.bf-input.bf-code { letter-spacing: .4em; font-variant-numeric: tabular-nums; font-size: 22px; text-align: center; }
.bf-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.bf-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 1px solid var(--edge); border-radius: 2px; background: transparent; color: var(--fg);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.bf-btn:hover { border-color: var(--accent); background: rgba(45,151,251,.08); }
/* Filled buttons: white, bold words on #2D97FB (Andrew, 26 Nov 2026 12:28pm: "throw white text on them"; 3.0:1
   accepted). Hover #1A8AED. Same as backfld.com + BACKFLD email. */
.bf-btn-primary { background: #2D97FB; border-color: #2D97FB; color: #fff; font-weight: 700; }
.bf-btn-primary:hover { background: #1A8AED; border-color: #1A8AED; }
.bf-btn[disabled] { opacity: .5; cursor: default; }
.bf-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.bf-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.bf-or::before, .bf-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.bf-msg { min-height: 20px; margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.bf-msg.is-bad { color: var(--bad); }
.bf-step[hidden], .bf-field-row[hidden] { display: none; }
.bf-link { color: var(--muted); font-size: 13px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font: inherit; }
.bf-link:hover { color: var(--fg); }


/* ── Sign-up (16 Nov 2026, backfld/signup.js) and the terms page ─────────── */
.bf-alt { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.bf-alt a { color: var(--fg); text-underline-offset: 3px; }
.bf-hint { margin: -6px 0 4px; font-size: 13px; line-height: 1.45; color: var(--dim); }
.bf-field-row > span em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--dim); margin-left: 6px; }
.bf-pair { display: flex; gap: 12px; }
.bf-pair > .bf-field-row { flex: 1 1 0; min-width: 0; }
.bf-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bf-pill {
  height: 32px; padding: 0 11px; border: 1px solid var(--edge); border-radius: 2px;
  background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.bf-pill:hover { border-color: var(--accent); color: var(--fg); }
.bf-pill.is-on { border-color: var(--accent); background: rgba(45,151,251,.16); color: var(--fg); }
.bf-pill[disabled] { opacity: .5; cursor: default; }
.bf-check, .bf-pill { -webkit-tap-highlight-color: transparent; }
.bf-check { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 4px; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.bf-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.bf-check a { color: var(--fg); text-underline-offset: 3px; }
.bf-code-show { display: inline-flex; flex-direction: column; gap: 6px; padding: 14px 18px; border: 1px solid var(--edge); border-radius: 2px; margin-bottom: 14px; }
.bf-code-show span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bf-code-show strong { font-size: 28px; font-weight: 800; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
/* Join with a code (17 Nov 2026) */
.bf-input.bf-teamcode { text-transform: uppercase; }
.bf-team-found { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; margin: 2px 0 16px; border: 1px solid var(--edge); border-left: 3px solid var(--accent); border-radius: 2px; }
.bf-team-found span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bf-team-found strong { font-size: 18px; font-weight: 700; }
.bf-team-found em { font-style: normal; font-size: 14px; color: var(--muted); }
.bf-hint.bf-hint-under { margin: 8px 0 0; }
.bf-btns a.bf-btn { justify-content: center; }
.bf footer .bf-wrap > span a { color: var(--dim); }
.bf footer .bf-wrap > span a:hover { color: var(--muted); }

.bf-doc { max-width: 720px; padding: 56px 0 88px; }
.bf-doc h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.bf-doc .bf-note { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.bf-doc h3 { font-size: 17px; font-weight: 700; margin: 28px 0 10px; }
.bf-doc h4 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }
.bf-doc p, .bf-doc li { font-size: 15px; line-height: 1.6; color: #c9d0d6; }
.bf-doc p { margin-bottom: 12px; }
.bf-doc ul { margin: 0 0 14px 20px; }
.bf-doc li { margin-bottom: 6px; }

/* "Your teams" on coming soon and waiting (18 Nov 2026, .63613) */
.bf-switch { margin-top: 36px; max-width: 460px; border-top: 1px solid var(--line); padding-top: 18px; }
.bf-card .bf-switch { margin-top: 28px; }
.bf-switch-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.bf-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bf-switch-team { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bf-switch-team strong { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-switch-team em { font-style: normal; font-size: 13px; color: var(--muted); }
.bf-switch-row .bf-btn { flex: 0 0 auto; height: 34px; padding: 0 14px; }
.bf-switch-here { flex: 0 0 auto; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  text-decoration: underline; text-underline-offset: 3px; }   /* white words; a link keeps a plain underline, never a blue one (Andrew 26 Nov) */

@media (max-width: 720px) {
  .bf-wrap { padding: 0 16px; }
  .bf-hero { padding-top: 40px; padding-bottom: 56px; }
  .bf-card { padding: 40px 0 64px; }
  .bf-pair { flex-direction: column; gap: 0; }
  .bf-doc { padding: 36px 0 64px; }
  .bf-field { background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 80px); }
}

/* BACKFLD's logo (Andrew's SVGs, 18 Nov 2026): the wordmark in the header, the full logo on the front page. */
.bf-mark img { display: block; height: 20px; width: auto; }
.bf h1.bf-logo { line-height: 0; letter-spacing: 0; }
.bf h1.bf-logo img { display: block; width: clamp(220px, 34vw, 400px); height: auto; }
