/* Authentication and early-access journey.
   This file owns login, waitlist enrollment, and confirmation layouts so auth
   design does not continue accumulating in the global site overrides. */

body.auth-site {
  --auth-surface: rgba(10, 26, 34, 0.96);
  --auth-surface-soft: rgba(16, 38, 48, 0.72);
  --auth-line: rgba(207, 224, 255, 0.14);
  --auth-green: #23d18b;
}

/* Auth pages use the same edge-aligned banner geometry as the landing page so
   moving between product discovery and account actions does not shift the
   brand or CTA anchors. */
body.auth-site .navbar {
  padding: 0;
  border-bottom: 1px solid rgba(207, 224, 255, 0.08);
}

body.auth-site .nav-inner {
  width: 100%;
  max-width: none;
  padding: 14px clamp(20px, 5vw, 88px);
}

body.auth-site .nav-center-empty {
  width: 0;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  visibility: hidden;
}

/* The wider auth nav padding above is a desktop-only edge-aligned treatment.
   On mobile, drop back to the shared mobile navbar metrics so the banner and
   hamburger look identical to the landing page across the whole experience. */
@media (max-width: 860px) {
  body.auth-site .nav-inner {
    padding: 8px 14px;
    min-height: 50px;
  }
}

.auth-journey-page {
  position: relative;
  /* Contain the 200%-wide scrolling wave track. */
  overflow: hidden;
  min-height: 100svh;
  padding: clamp(6.75rem, 10vh, 8.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vh, 5rem);
}

.auth-journey-shell {
  width: min(68rem, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(21rem, 0.82fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

/* ── Animated price-line wave background, mirroring the landing hero. The
   markup is partials/chart_wave_bg.html; these styles live here because the
   landing stylesheet isn't loaded on auth pages. ─────────────────────────── */
body.auth-site .market-chart-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
}

body.auth-site .chart-scroll-track {
  display: flex;
  width: 200%;
  height: 100%;
  will-change: transform;
  animation: auth-chart-scroll 34s linear infinite;
}

@keyframes auth-chart-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

body.auth-site .market-price-chart {
  display: block;
  flex: 0 0 50%;
  width: 50%;
  height: 100%;
}

body.auth-site .chart-price-flow {
  opacity: 0.9;
}

body.auth-site .chart-line-main,
body.auth-site .chart-line-glow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

body.auth-site .chart-line-main {
  stroke: rgba(35, 209, 139, 0.16);
  stroke-width: 1.35;
}

body.auth-site .chart-line-glow {
  stroke: rgba(35, 209, 139, 0.04);
  stroke-width: 6;
}

/* Keep the actual content above the decorative wave. */
body.auth-site .auth-journey-shell,
body.auth-site .waitlist-mobile-screen {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  body.auth-site .chart-scroll-track {
    animation: none;
  }
}

.auth-journey-intro {
  display: grid;
  gap: 1.25rem;
  max-width: 37rem;
}

.waitlist-journey-content {
  display: grid;
  gap: 1.25rem;
  align-content: center;
}

.auth-copy-mobile {
  display: none;
}

/* Mobile-only blocks; the desktop layout keeps the full intro/steps/card. */
.waitlist-mobile-screen,
.login-reassurance-mobile {
  display: none;
}

.auth-eyebrow,
.auth-card-kicker {
  color: var(--auth-green);
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-journey-intro > h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--text);
  font-family: var(--head);
  font-size: clamp(2.75rem, 5vw, 4.9rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-journey-intro > p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.75;
}

.auth-journey-intro > .auth-reassurance {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 32rem;
  padding-top: 1rem;
  border-top: 1px solid var(--auth-line);
  color: rgba(238, 244, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-reassurance::before {
  content: "";
  flex: 0 0 auto;
  width: 0.48rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--auth-green);
  box-shadow: 0 0 0 0.24rem rgba(35, 209, 139, 0.09);
}

.waitlist-journey-intro > h1 {
  max-width: 14ch;
  font-size: clamp(2.65rem, 4.35vw, 4.25rem);
  line-height: 1.04;
}

.auth-benefit-list {
  display: grid;
  gap: 1rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefit-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-benefit-list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-size: 0.94rem;
}

.auth-benefit-icon,
.auth-step-number {
  display: grid;
  width: 2.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(35, 209, 139, 0.26);
  border-radius: 50%;
  color: var(--auth-green);
  background: rgba(35, 209, 139, 0.06);
}

.auth-benefit-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-step-number {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.auth-access-card {
  width: 100%;
  max-width: 29rem;
  gap: 1.35rem;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 34%),
    var(--auth-surface);
}

.login-journey-page .auth-journey-shell {
  grid-template-columns: minmax(0, 0.88fr) minmax(22rem, 1fr);
}

.login-journey-page .auth-journey-intro {
  max-width: 32rem;
}

.login-access-card {
  max-width: 31rem;
  justify-self: end;
  gap: 1.5rem;
  padding: clamp(1.8rem, 3.4vw, 2.6rem);
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(35, 209, 139, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-access-card .auth-logo-img {
  width: clamp(7.2rem, 12vw, 8.6rem);
}

.waitlist-card {
  gap: 1.05rem;
}

.waitlist-card .auth-logo {
  line-height: 1;
}

.waitlist-card .auth-logo-img {
  width: clamp(6.8rem, 11vw, 8rem);
}

.waitlist-card .auth-card-heading {
  gap: 0.42rem;
}

.waitlist-card .oauth-buttons {
  margin-top: 0.15rem;
}

.auth-card-heading {
  display: grid;
  gap: 0.55rem;
  text-align: center;
}

.auth-card-kicker {
  text-align: center;
}

.auth-access-card .auth-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.auth-access-card .auth-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.auth-access-card .oauth-btn {
  min-height: 3.35rem;
  border-color: rgba(35, 209, 139, 0.34);
  color: #061116;
  background: var(--auth-green);
}

.auth-access-card .oauth-btn:hover {
  border-color: #5de9b3;
  color: #061116;
  background: #3cdda0;
  box-shadow: 0 0.75rem 2rem rgba(35, 209, 139, 0.16);
}

.auth-access-card .auth-footer-note,
.auth-consent-note {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.auth-consent-note a,
.auth-text-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.auth-consent-note a:hover,
.auth-text-link:hover {
  color: var(--text);
}

.waitlist-plan-interest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-block: 1px solid var(--auth-line);
}

.waitlist-plan-interest span {
  color: var(--muted);
  font-size: 0.82rem;
}

.waitlist-plan-interest strong {
  color: var(--auth-green);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-confirmation-page {
  place-items: center;
}

.auth-confirmation-shell {
  width: min(34rem, 100%);
}

.waitlist-confirmation {
  max-width: none;
  text-align: center;
}

.waitlist-success-icon {
  display: grid;
  width: 3.5rem;
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid rgba(35, 209, 139, 0.34);
  border-radius: 50%;
  color: var(--auth-green);
  background: rgba(35, 209, 139, 0.08);
  box-shadow: 0 0 2.5rem rgba(35, 209, 139, 0.12);
}

.waitlist-success-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.waitlist-profile {
  display: grid;
  margin: 0;
  border-block: 1px solid var(--auth-line);
}

.waitlist-profile > div {
  display: grid;
  grid-template-columns: minmax(6rem, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  padding: 0.8rem 0;
  text-align: left;
}

.waitlist-profile > div + div {
  border-top: 1px solid rgba(207, 224, 255, 0.08);
}

.waitlist-profile dt {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.waitlist-profile dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.waitlist-status {
  color: var(--auth-green);
}

.waitlist-confirmation-actions {
  display: grid;
  gap: 0.9rem;
}

.auth-text-link {
  justify-self: center;
  font-size: 0.82rem;
}

@media (min-width: 901px) {
  body.auth-site .nav-inner {
    padding-inline: clamp(24px, 4vw, 72px);
  }

  body.auth-site .nav-logo {
    grid-column: 1;
    justify-self: start;
    align-items: flex-start;
  }

  body.auth-site .nav-center-empty {
    grid-column: 2;
    justify-self: center;
  }

  body.auth-site .nav-right {
    grid-column: 3;
    justify-self: end;
    justify-content: flex-end;
  }

  body.auth-site .nav-right .btn-nav {
    min-height: 40px;
    padding-inline: clamp(13px, 1.15vw, 17px);
    border-radius: 6px;
    font-family: "Inter", "Manrope", system-ui, sans-serif;
    font-size: clamp(0.72rem, 0.78vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
  }

  body.auth-site .nav-right .btn-nav-secondary {
    color: var(--text);
    border-color: rgba(207, 224, 255, 0.18);
    background: rgba(13, 26, 36, 0.88);
  }

  body.auth-site .nav-right .btn-nav-primary {
    color: #06100c;
    border-color: rgba(93, 233, 179, 0.42);
    background: var(--auth-green);
    box-shadow: 0 8px 24px rgba(15, 168, 110, 0.16);
  }
}

@media (max-width: 800px) {
  .auth-journey-page {
    display: block;
    min-height: auto;
    padding: 6rem 1rem 2.5rem;
  }

  /* Center the access screen vertically within the visible viewport (svh tracks
     the actual viewable window, accounting for mobile browser chrome). The taller
     top pad clears the fixed nav; if content ever exceeds the viewport it grows
     past min-height and the page scrolls normally instead of clipping. */
  .waitlist-journey-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding: clamp(4.5rem, 11svh, 6rem) 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .auth-journey-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
    width: min(31rem, 100%);
    margin-inline: auto;
  }

  /* ===== Waitlist mobile: from-scratch minimal access screen =====
     Hide the desktop two-column shell and the big global footer; render the
     calm single-column .waitlist-mobile-screen instead. */
  .waitlist-journey-page .auth-journey-shell {
    display: none;
  }

  body.waitlist-page-body .site-footer {
    display: none;
  }

  .waitlist-mobile-screen {
    display: grid;
    justify-items: center;
    width: min(22rem, 100%);
    margin-inline: auto;
    text-align: center;
  }

  .waitlist-m-label {
    margin-bottom: 0.7rem;
  }

  .waitlist-m-title {
    margin: 0;
    color: var(--text);
    font-family: var(--head);
    font-size: clamp(1.7rem, 7.4vw, 2.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.01em;
  }

  .waitlist-m-sub {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .waitlist-m-alerts {
    width: 100%;
    margin-top: 1rem;
    text-align: left;
  }

  .waitlist-m-cta {
    width: 100%;
    margin-top: 1.4rem;
  }

  .waitlist-m-cta .oauth-btn {
    width: 100%;
    min-height: 3.35rem;
    border-color: rgba(35, 209, 139, 0.34);
    color: #061116;
    background: var(--auth-green);
  }

  .waitlist-m-cta .oauth-btn:hover {
    border-color: #5de9b3;
    color: #061116;
    background: #3cdda0;
  }

  .waitlist-m-reassure {
    margin: 0.55rem 0 0;
    color: var(--dim);
    font-size: 0.8rem;
  }

  .waitlist-m-login {
    margin: 1.6rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
  }

  .waitlist-m-legal {
    margin: 0.55rem 0 0;
    font-size: 0.75rem;
  }

  .waitlist-m-legal a {
    color: var(--dim);
    text-decoration: none;
  }

  .waitlist-m-legal a:hover {
    color: var(--muted);
  }

  .waitlist-m-footer {
    margin-top: 2.1rem;
    color: var(--dim);
    font-size: 0.72rem;
    line-height: 1.5;
  }

  .waitlist-m-footer p {
    margin: 0;
  }

  .waitlist-m-footer nav {
    margin-top: 0.25rem;
  }

  .waitlist-m-footer a {
    color: var(--dim);
    text-decoration: none;
  }

  .waitlist-m-footer a:hover {
    color: var(--muted);
  }

  /* Login mobile: a clean, card-less, vertically centered access screen — the
     same minimal treatment as the waitlist page (no boxy card, no second hero). */
  .login-journey-page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding: clamp(4.5rem, 11svh, 6rem) 1.25rem calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .login-journey-page .auth-journey-shell {
    grid-template-columns: minmax(0, 1fr);
    width: min(22rem, 100%);
    gap: 1.2rem;
    margin-inline: auto;
  }

  .auth-access-card {
    order: -1;
    max-width: none;
  }

  /* Strip the card chrome so the form reads as a clean centered column. The
     body.auth-site prefix is needed to outrank body.site-sub .auth-card, which
     otherwise re-applies the border/background/shadow box. */
  body.auth-site .login-access-card {
    justify-self: stretch;
    gap: 1.1rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Match the waitlist screen's title prominence. */
  .login-access-card .auth-title {
    font-size: clamp(1.7rem, 7.4vw, 2.1rem);
  }

  /* Hide the desktop "Welcome Back" intro (no second hero) and the in-card logo
     (already in the top nav). A short reassurance line follows the form. */
  .login-journey-page .auth-journey-intro {
    display: none;
  }

  .login-access-card .auth-logo {
    display: none;
  }

  .login-reassurance-mobile {
    display: block;
    margin: 0;
    padding: 0 clamp(0.15rem, 1vw, 0.4rem);
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
    text-align: center;
  }

  .login-reassurance-mobile > span {
    display: block;
    margin-top: 0.35rem;
    color: var(--dim);
    font-size: 0.8rem;
  }

  .auth-journey-intro {
    gap: 1rem;
    max-width: none;
  }

  .auth-journey-intro > h1 {
    max-width: 14ch;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .auth-journey-intro > p {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .auth-journey-intro > .auth-reassurance {
    font-size: 0.84rem;
  }

  .auth-benefit-list {
    gap: 0.85rem;
  }

  .auth-copy-desktop {
    display: none;
  }

  .auth-copy-mobile {
    display: inline;
  }

  .auth-benefit-list li {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.75rem;
    font-size: 0.82rem;
  }

  .auth-benefit-icon,
  .auth-step-number {
    width: 2.25rem;
  }

  .auth-confirmation-page {
    display: grid;
    min-height: 100svh;
  }
}

@media (max-width: 420px) {
  .auth-access-card {
    padding: 1.4rem;
  }

  .waitlist-profile > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

