/* BEHYND waitlist: shared styles. Night street, sodium-streetlight amber, red only for alerts. */

:root {
  --night: #07080c;
  --asphalt: #0f1218;
  --curb: #161a22;
  --line: #262b36;
  --line-strong: #353c4a;
  --fog: #9aa3b2;
  --fog-dim: #6b7383;
  --paper: #eef1f5;
  --sodium: #ffad33;
  --sodium-deep: #f08a1c;
  --sodium-ink: #1a1206;
  --sodium-glow: rgba(255, 173, 51, 0.28);
  --alert: #ff3b3b;
  --alert-glow: rgba(255, 59, 59, 0.35);
  --ok: #7ed4a0;

  --font-display: "Big Shoulders Display", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  --gutter: 16px;
  --max: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

main { overflow-x: hidden; } /* decorative glows must never make phones scroll sideways */
@supports (overflow: clip) { main { overflow-x: clip; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--sodium); text-underline-offset: 3px; }
a:hover { color: #ffc266; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

/* ---------- Type ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
}
h1 { font-size: clamp(3.1rem, 11vw, 6.4rem); font-weight: 900; }
h2 { font-size: clamp(2.3rem, 7vw, 4rem); }
h3 { font-size: 1.6rem; line-height: 1.05; }
p { margin: 0 0 1em; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sodium);
  margin: 0 0 14px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { font-size: 1.15rem; color: #cfd5de; max-width: 34em; }
.muted { color: var(--fog); }
.fine { font-size: 0.86rem; color: var(--fog); margin: 10px 0 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 8px;
  background: var(--sodium); color: var(--sodium-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 0 var(--sodium-glow);
}
.btn:hover { background: #ffbd57; color: var(--sodium-ink); box-shadow: 0 6px 28px var(--sodium-glow); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-ghost {
  background: transparent; color: var(--paper); border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--curb); color: var(--paper); box-shadow: none; border-color: var(--fog-dim); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 1.05rem; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(7, 8, 12, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(38, 43, 54, 0.6);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; letter-spacing: 0.14em;
  color: var(--paper); text-decoration: none; line-height: 1;
}
.wordmark span { color: var(--sodium); }
.wordmark .tm { font-family: var(--font-body); font-weight: 500; font-size: 0.38em; letter-spacing: 0; color: var(--fog); vertical-align: super; margin-left: 1px; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a:not(.btn) {
  display: none; color: var(--fog); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 1.02rem;
}
.topnav a:not(.btn):hover { color: var(--paper); }
@media (min-width: 860px) { .topnav a:not(.btn) { display: inline; } }

/* ---------- Sections ---------- */

.section { padding: 84px 0; border-top: 1px solid var(--line); position: relative; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p { color: #cfd5de; font-size: 1.12rem; margin-top: 18px; }

.card {
  background: var(--asphalt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Street-sign plate */
.plate {
  display: inline-block; padding: 4px 10px 3px;
  border: 1.5px solid currentColor; border-radius: 5px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  font-size: 0.95rem; line-height: 1.2;
}

/* ---------- Forms ---------- */

.field {
  width: 100%; min-height: 54px; padding: 0 16px;
  background: #0b0d12; border: 1.5px solid var(--line-strong); border-radius: 8px;
  color: var(--paper); font-size: 1.05rem;
}
.field::placeholder { color: var(--fog-dim); }
.field:focus { border-color: var(--sodium); outline: none; box-shadow: 0 0 0 3px var(--sodium-glow); }

.form-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 0.95rem; }
.form-msg.error { color: #ff8a8a; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 40px 0 110px; color: var(--fog); font-size: 0.92rem; }
@media (min-width: 720px) { .footer { padding-bottom: 48px; } }
.footer .wrap { display: grid; gap: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--fog); }
.footer a:hover { color: var(--paper); }

/* ---------- Simple content pages (privacy, thanks, 404) ---------- */

.page { padding: 56px 0 72px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); margin-bottom: 22px; }
.page h2 { font-size: 1.9rem; margin: 36px 0 10px; }
.page p, .page li { color: #cfd5de; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 6px; }

/* Amber pool of streetlight behind headings */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 520px; height: 520px; left: -160px; top: -220px;
  background: radial-gradient(circle, rgba(255, 173, 51, 0.16) 0%, rgba(255, 173, 51, 0.05) 38%, transparent 68%);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
