/* BetterWOD waitlist — "Drive" design language.
   Tokens mirror Sources/BetterWOD/DesignSystem/ + the dark colorsets exactly. */

@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors — bw_* dark palette */
  --accent: #FF5A1F;
  --bg: #000000;
  --surface: #141414;
  --surface-elevated: #1F1F1F;
  --text-primary: #FFFFFF;
  --text-secondary: #9A9AA2;
  --text-tertiary: #808085;
  --border: #2A2A2A;
  --success: #4AD971;
  --danger: #F85E5E;

  /* Spacing — BWSpacing 4pt scale */
  --sp-xs: 4px;  --sp-sm: 8px;  --sp-md: 12px;
  --sp-lg: 16px; --sp-xl: 24px; --sp-xxl: 32px; --sp-xxxl: 48px;

  /* Radius — BWRadius */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --maxw: 720px;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-xl); }

.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;
}

/* ---------- Typography ---------- */
.display {
  font-family: "Anton", var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
  margin: 0;
}
.display--xl { font-size: clamp(48px, 13vw, 80px); }
.display--lg { font-size: clamp(40px, 10vw, 56px); }
.display--md { font-size: clamp(30px, 8vw, 44px); }
.display--sm { font-size: clamp(22px, 5vw, 30px); }
.accent { color: var(--accent); }

.kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 var(--sp-md);
}
.label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-secondary); margin: 0 0 var(--sp-md);
}
.lede { color: var(--text-secondary); font-size: clamp(16px, 4.5vw, 19px); margin: var(--sp-lg) 0 0; max-width: 30ch; }
.prose { color: var(--text-secondary); font-size: 17px; margin: 0 0 var(--sp-lg); }
.prose em { color: var(--text-primary); font-style: italic; }
.muted { color: var(--text-secondary); margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
/* BWHeroBackground: radial accent wash top-right (0.30) + diagonal hatch (0.06) */
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 420px at 85% 4%, rgba(255, 90, 31, 0.30), transparent 70%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0; opacity: 0.06;
  background-image: repeating-linear-gradient(45deg, var(--accent) 0 1.5px, transparent 1.5px 9px);
}
.hero__inner { position: relative; padding: clamp(56px, 14vw, 112px) 0 clamp(40px, 10vw, 72px); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 12vw, 88px) 0; }
.section--alt { background: var(--surface); }
.section--cta { position: relative; background: var(--bg); border-top: 1px solid var(--border); }
.section .lede, .section .prose { margin-top: var(--sp-lg); }
.section .display + .prose { margin-top: var(--sp-xl); }

/* ---------- Forms / signup ---------- */
.signup { margin-top: var(--sp-xl); max-width: 460px; }
.signup__row { display: flex; flex-direction: column; gap: var(--sp-sm); }
.input {
  width: 100%; height: 54px; padding: 0 var(--sp-lg);
  background: var(--surface); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  font-family: var(--font-body); font-size: 16px;
}
.input::placeholder { color: var(--text-tertiary); }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.input--area { height: auto; padding: var(--sp-md) var(--sp-lg); resize: vertical; min-height: 88px; line-height: 1.45; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-sm);
  height: 54px; padding: 0 var(--sp-xl); border: none; border-radius: var(--r-lg);
  font-family: var(--font-body); font-size: 17px; font-weight: 600; cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease; white-space: nowrap;
}
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.btn--ghost { background: none; color: var(--text-secondary); height: auto; padding: var(--sp-sm) var(--sp-md); font-size: 15px; font-weight: 600; }
.btn[disabled] { cursor: default; opacity: 0.6; }
.btn[disabled]:active { transform: none; }

.signup__micro { color: var(--text-tertiary); font-size: 13px; margin: var(--sp-md) 0 0; }
.signup__msg { font-size: 14px; margin: var(--sp-md) 0 0; min-height: 0; }
.signup__msg:empty { margin: 0; }
.signup__msg[data-tone="error"] { color: var(--danger); }
.signup__msg[data-tone="success"] { color: var(--success); }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Honeypot — visually gone, still in the DOM for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Card / steps / chips ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-lg);
}
.steps { list-style: none; margin: var(--sp-xl) 0 0; padding: 0; display: grid; gap: var(--sp-md); }
.step__num { font-family: "Anton", var(--font-body); font-size: 30px; color: var(--accent); line-height: 1; }
.step__title { font-size: 17px; font-weight: 700; margin: var(--sp-sm) 0 var(--sp-xs); }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }
.chip {
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  padding: 7px var(--sp-md); border-radius: var(--r-pill);
  background: var(--surface-elevated); color: var(--text-secondary);
  border: 1px solid transparent; cursor: pointer; transition: all 0.12s ease;
}
.chip:hover { color: var(--text-primary); }
.chip[aria-pressed="true"] { background: rgba(255, 90, 31, 0.12); color: var(--accent); border-color: rgba(255, 90, 31, 0.4); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Context card ---------- */
.context { padding: var(--sp-xl) 0 0; scroll-margin-top: var(--sp-xl); }
.context__card { background: var(--surface-elevated); padding: var(--sp-xl); }
.context__card .muted { margin-top: var(--sp-sm); }
.field { border: none; margin: 0; padding: 0; margin-top: var(--sp-xl); }
.context__actions { display: flex; align-items: center; gap: var(--sp-lg); margin-top: var(--sp-xl); }

/* ---------- Founder ---------- */
.founder { display: flex; flex-direction: column; gap: var(--sp-xl); align-items: flex-start; }
.founder__photo {
  position: relative; margin: 0; width: 100%; max-width: 300px; aspect-ratio: 4 / 5;
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface-elevated);
  border: 1px solid var(--border); display: grid; place-items: center;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.founder__initial { display: none; font-family: "Anton", var(--font-body); font-size: 72px; color: var(--accent); }
.founder__photo--fallback img { display: none; }
.founder__photo--fallback .founder__initial { display: block; }
.founder__sig { color: var(--accent); font-weight: 700; margin: var(--sp-sm) 0 0; }

@media (min-width: 640px) {
  .founder { flex-direction: row; gap: var(--sp-xxl); }
  .founder__photo { width: 240px; flex-shrink: 0; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: var(--sp-xl) 0 var(--sp-xxl); color: var(--text-tertiary); }
.footer p { margin: 0; font-size: 13px; }
.footer__note { margin-top: var(--sp-xs); max-width: 46ch; }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .signup__row { flex-direction: row; }
  .signup__row .input { flex: 1; }
  .signup__row .btn { flex-shrink: 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; }
}
