/* ChaseNext — launch page
   A copy of the product's early-access screen (app.chasenext.ai/early-access):
   same structure, same .auth-* values. Palette and type per the creative direction.
   The retired v1 page and its styles live in archive/launch-v1/, outside the site. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-var.woff2') format('woff2-variations'),
       url('assets/fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/geist-var.woff2') format('woff2-variations'),
       url('assets/fonts/geist-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0E0D0B;
  --amber: #F2A93B;
  --amber-hot: #FFC24D;

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-hot); }
*:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink); }
img { max-width: 100%; }

/* ---------- the auth frame (the product's .auth-* rules) ---------- */

.auth-body {
  --bg: #0E0D0B;
  --text: #F4F2EE;
  --muted: #B8A98C;
  --faint: #8D8375;
  --accent: #F2A93B;
  --on-ink: #0E0D0B;
  --border: #2B2824;
  --border-strong: #524E46;
  --panel: #141210;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

.auth-frame {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) 1.08fr;
}

.auth-frame__column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding: 44px 56px 48px;
  background: var(--bg);
  border-right: 1px solid var(--border);
}

.auth-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
}
.auth-lockup__mark { display: block; height: 40px; width: auto; }
.auth-lockup__wordmark { display: block; height: 36px; width: auto; object-fit: contain; }

.auth-frame__content {
  width: 100%;
  max-width: 420px;
  animation: auth-rise 0.3s ease both;
}

.auth-screen:focus { outline: none; }

.auth-eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth-display {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
.auth-display--heading {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.4vw, 2.875rem);
  line-height: 1.02;
}
.auth-display--quote {
  max-width: 22ch;
  font-size: clamp(1.625rem, 2.6vw, 2.5rem);
  line-height: 1.06;
}

.auth-blurb {
  margin: 0 0 38px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}

.auth-form { display: grid; gap: 20px; }
.auth-field { display: grid; gap: 9px; }

.auth-field__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-field__input {
  width: 100%;
  padding: 17px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  outline: none;
}
.auth-field__input:focus { border-color: var(--accent); }
.auth-field__input:focus-visible { outline: none; }
.auth-field__input[aria-invalid='true'] { border-color: var(--accent); }
.auth-field__input::placeholder { color: var(--faint); }

.auth-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.auth-error {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.auth-error[hidden] { display: none; }

.auth-button {
  margin-top: 8px;
  padding: 18px 28px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: var(--on-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
}
.auth-button:hover:not(:disabled) { filter: brightness(1.08); }
/* A link dressed as the button (the 404 page's way home). */
.auth-button--link { display: inline-block; justify-self: start; margin-top: 0; }
.auth-button--link:hover { color: var(--on-ink); }
.auth-button:disabled { cursor: progress; opacity: 0.72; }

.auth-link { color: var(--accent); }
.auth-link:hover { color: var(--accent); text-decoration: underline; }

.auth-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
}

.auth-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--faint);
}
.auth-foot p { margin: 0; }
.auth-foot a { color: var(--faint); }
.auth-foot a:hover { color: var(--accent); }

/* The art: the product's sticky right column — it stays put while the
   form column scrolls. */
.auth-art {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}
.auth-art__video,
.auth-art__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}
/* The still only stands in when there is no loop: reduced motion, save-data,
   or a file that failed (app.js removes the <video> in those cases), and on
   pages that never had one (404). */
.auth-art__still { display: none; }
.auth-art:not(:has(.auth-art__video)) .auth-art__still { display: block; }
.auth-art__fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 1%, transparent 46%),
    linear-gradient(90deg, var(--bg) 0, rgba(14, 13, 11, 0.45) 42%, rgba(14, 13, 11, 0.2) 100%);
}
.auth-art__quote {
  position: absolute;
  left: 56px;
  right: 56px;
  bottom: 56px;
  margin: 0;
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .auth-frame { grid-template-columns: 1fr; }
  .auth-frame__column {
    padding: 32px 24px 36px;
    border-right: 0;
  }
  .auth-art { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-frame__content { animation: none; }
  .auth-art__video { display: none; }
  .auth-art__still { display: block; }
}

/* The product's scrollbar, as app.chasenext.ai actually renders it: its
   scrollbar rules read the root's (light) tokens, so it is a cream track
   (#F4F2EE) with a warm-grey thumb (#C9C2B5), 11px, inset 2px. */
.auth-root::-webkit-scrollbar { width: 11px; height: 11px; background: #F4F2EE; }
.auth-root::-webkit-scrollbar-thumb {
  background: #C9C2B5;
  border-radius: 6px;
  border: 2px solid #F4F2EE;
}
