/* ==========================================================================
   auth.css - Login page premium styles and animations
   Loaded automatically by Dash from the assets/ folder.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fade-up entrance animation
   -------------------------------------------------------------------------- */
@keyframes af-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Left panel gradient pulse - very slow, barely visible warmth shift
   -------------------------------------------------------------------------- */
@keyframes af-warmth-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

/* --------------------------------------------------------------------------
   Feature row staggered entrance
   -------------------------------------------------------------------------- */
@keyframes af-slide-in {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
   Left panel
   -------------------------------------------------------------------------- */
#auth-layout .af-login-left {
  animation: af-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* --------------------------------------------------------------------------
   Right panel - slightly delayed so left animates first
   -------------------------------------------------------------------------- */
#auth-layout .af-login-right {
  animation: af-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* --------------------------------------------------------------------------
   Feature rows - stagger via nth-child
   -------------------------------------------------------------------------- */
#auth-layout .af-feature-row {
  animation: af-slide-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#auth-layout .af-feature-row:nth-child(1) { animation-delay: 0.3s; }
#auth-layout .af-feature-row:nth-child(2) { animation-delay: 0.42s; }
#auth-layout .af-feature-row:nth-child(3) { animation-delay: 0.54s; }
#auth-layout .af-feature-row:nth-child(4) { animation-delay: 0.66s; }

/* --------------------------------------------------------------------------
   Google Sign-In button
   -------------------------------------------------------------------------- */
.af-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 24px;
  background: #ffffff;
  color: #1f1f1f !important;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Google Sans", Inter, -apple-system, sans-serif;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08);
  transition:
    box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
    background 120ms ease;
  letter-spacing: 0.01em;
}

.af-google-btn:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.22),
    0 2px 6px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
  background: #f8f9fa;
  text-decoration: none !important;
}

.af-google-btn:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Info / disclaimer box
   -------------------------------------------------------------------------- */
.af-login-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(88, 166, 255, 0.05);
  border: 1px solid rgba(88, 166, 255, 0.15);
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   Trust badge row
   -------------------------------------------------------------------------- */
.af-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #484f58;
}

/* --------------------------------------------------------------------------
   Feature icon box
   -------------------------------------------------------------------------- */
.af-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(210, 153, 34, 0.08);
  border: 1px solid rgba(210, 153, 34, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 200ms ease, border-color 200ms ease;
}

.af-feature-row:hover .af-feature-icon {
  background: rgba(210, 153, 34, 0.15);
  border-color: rgba(210, 153, 34, 0.35);
}

/* --------------------------------------------------------------------------
   Vertical divider between panels
   -------------------------------------------------------------------------- */
.af-login-divider {
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #21262d 20%,
    #21262d 80%,
    transparent 100%
  );
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Stat chips on the left panel
   -------------------------------------------------------------------------- */
.af-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #8b949e;
  white-space: nowrap;
}

.af-stat-chip .af-stat-value {
  font-weight: 600;
  color: #e6edf3;
}

/* --------------------------------------------------------------------------
   Responsive: on narrow viewports hide the marketing left panel and show
   only the sign-in card, centred and full-height.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* Hide decorative left panel and divider - keep sign-in card only */
  #auth-layout .af-login-left,
  .af-login-divider {
    display: none !important;
  }

  #auth-layout .af-login-right {
    flex: 1 !important;
    min-height: 100vh !important;
    border-left: none !important;
    padding: 48px 28px !important;
  }
}

/* ============================================================
   LANDING PAGE — scrollable multi-section layout
   ============================================================ */

/* Root wrapper */
.af-landing {
  min-height: 100vh;
  background-color: #0d1117;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e6edf3;
  overflow-x: hidden;
}

/* -- Sticky top navigation --------------------------------- */
.af-landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(48, 54, 61, 0.7);
}

.af-landing-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-landing-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #d29922 0%, #b07d15 100%);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  box-shadow: 0 2px 10px rgba(210, 153, 34, 0.3);
}

.af-landing-cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(210, 153, 34, 0.45);
  text-decoration: none;
}

/* -- Hero section ------------------------------------------ */
.af-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 80px 28px 0;
  text-align: center;
}

/* Ambient glow orbs */
.af-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.af-hero-glow-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(210, 153, 34, 0.18) 0%, transparent 70%);
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
}

.af-hero-glow-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(88, 166, 255, 0.12) 0%, transparent 70%);
  bottom: 60px;
  right: -100px;
}

.af-hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.af-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #d29922;
  background: rgba(210, 153, 34, 0.1);
  border: 1px solid rgba(210, 153, 34, 0.28);
  border-radius: 100px;
  padding: 6px 16px;
  letter-spacing: 0.03em;
}

.af-hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #e6edf3;
  margin: 0;
}

.af-hero-accent {
  background: linear-gradient(135deg, #d29922 0%, #f0b429 50%, #58a6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.af-hero-sub {
  font-size: 1.05rem;
  color: #8b949e;
  line-height: 1.7;
  max-width: 600px;
  margin: 0;
}

.af-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.af-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #d29922 0%, #b07d15 100%);
  color: #fff !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(210, 153, 34, 0.35);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.af-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(210, 153, 34, 0.5);
  opacity: 0.95;
  text-decoration: none;
}

.af-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9d1d9 !important;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid rgba(48, 54, 61, 0.9);
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.af-btn-ghost:hover {
  border-color: rgba(88, 166, 255, 0.5);
  color: #58a6ff !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.af-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.af-hero-pill {
  font-size: 0.82rem;
  color: #8b949e;
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 100px;
  padding: 5px 14px;
}

.af-hero-pill strong {
  color: #e6edf3;
  font-weight: 600;
}

.af-hero-chart-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 940px;
  margin-top: 52px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-bottom: none;
  box-shadow: 0 -16px 60px rgba(88, 166, 255, 0.06);
  background: linear-gradient(to bottom, rgba(22, 27, 34, 0.4), transparent);
}

/* -- Shared section layout ---------------------------------- */
.af-section {
  padding: 96px 28px;
}

.af-section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.af-section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d29922;
  margin-bottom: 12px;
  text-align: center;
}

.af-section-heading {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #e6edf3;
  text-align: center;
  margin: 0 0 16px 0;
}

.af-section-subheading {
  font-size: 1rem;
  color: #8b949e;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.65;
}

/* -- Feature cards grid ------------------------------------- */
.af-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.af-feat-card {
  background: rgba(22, 27, 34, 0.9);
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 200ms ease;
}

.af-feat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 166, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(88, 166, 255, 0.06);
}

.af-feat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.af-feat-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0;
}

.af-feat-card-body {
  font-size: 0.875rem;
  color: #8b949e;
  line-height: 1.65;
  margin: 0;
}

/* -- Pipeline / How it works -------------------------------- */
.af-pipeline-section {
  background: rgba(13, 17, 23, 0.6);
  border-top: 1px solid rgba(48, 54, 61, 0.5);
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.af-pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 8px;
  margin-top: 48px;
}

.af-pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 48px;
  color: rgba(88, 166, 255, 0.35);
  font-size: 1.2rem;
}

.af-pipeline-connector::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(88, 166, 255, 0.3), rgba(88, 166, 255, 0.5));
  border-radius: 2px;
}

.af-pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px;
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid rgba(48, 54, 61, 0.7);
  border-radius: 14px;
  transition: transform 200ms ease, border-color 200ms ease;
}

.af-pipeline-step:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 166, 255, 0.3);
}

.af-pipeline-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.af-pipeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.af-pipeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0;
}

.af-pipeline-body {
  font-size: 0.82rem;
  color: #8b949e;
  line-height: 1.6;
  margin: 0;
}

/* -- Sign-in section ---------------------------------------- */
.af-signin-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.af-signin-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #161b22 0%, #0d1117 100%);
  border: 1px solid rgba(48, 54, 61, 0.9);
  border-radius: 20px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(210, 153, 34, 0.06);
}

.af-signin-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  /*background: linear-gradient(135deg, rgba(210, 153, 34, 0.22) 0%, rgba(210, 153, 34, 0.06) 100%);
  border: 1px solid rgba(210, 153, 34, 0.28);*/
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.af-signin-icon {
  font-size: 1.55rem;
  color: #d29922;
}

.af-signin-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.af-signin-subtitle {
  font-size: 0.9rem;
  color: #8b949e;
  line-height: 1.6;
  margin: 0 0 28px;
}

.af-signin-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  width: 100%;
}

.af-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(48, 54, 61, 0.8);
}

.af-divider-text {
  font-size: 0.75rem;
  color: #484f58;
  white-space: nowrap;
}

.af-signin-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.af-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #8b949e;
}

.af-signin-terms {
  margin-top: 20px;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
  color: #6e7681;
}

.af-signin-terms-link {
  color: #8b949e;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.af-signin-terms-link:hover {
  color: #d29922;
}

/* -- Footer ------------------------------------------------- */
.af-landing-footer {
  border-top: 1px solid rgba(48, 54, 61, 0.6);
  padding: 28px;
  background: rgba(13, 17, 23, 0.8);
}

.af-footer-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.af-footer-links {
  display: flex;
  gap: 20px;
}

.af-footer-link {
  font-size: 0.8rem;
  color: #484f58;
  text-decoration: none;
  transition: color 150ms ease;
}

.af-footer-link:hover {
  color: #58a6ff;
}

.af-footer-copy {
  font-size: 0.78rem;
  color: #484f58;
}

/* -- Responsive breakpoints --------------------------------- */
@media (max-width: 900px) {
  .af-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .af-pipeline {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }

  .af-pipeline-connector {
    display: none;
  }

  .af-hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .af-footer-row {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .af-features-grid {
    grid-template-columns: 1fr;
  }

  .af-hero {
    padding: 60px 20px 0;
  }

  .af-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
  }

  .af-btn-primary,
  .af-btn-ghost {
    justify-content: center;
  }

  .af-section {
    padding: 64px 20px;
  }

  .af-signin-card {
    padding: 36px 24px;
  }

  .af-landing-nav-inner {
    padding: 12px 20px;
  }
}

/* -- Legal document modals (Privacy Policy, Terms of Use) -------------- */
/* Same :target mechanism as the sign-in modal.                           */
.af-legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.af-legal-overlay:target {
  display: flex;
}

.af-legal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.af-legal-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.98) 0%, rgba(13, 17, 23, 0.98) 100%);
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.af-legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px 20px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
  flex-shrink: 0;
}

.af-legal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #e6edf3;
  margin: 0;
}

.af-legal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #8b949e;
  text-decoration: none;
  transition: background 150ms, color 150ms;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.af-legal-close:hover {
  background: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
}

.af-legal-body {
  overflow-y: auto;
  padding: 28px 36px 36px;
  scrollbar-width: thin;
  scrollbar-color: rgba(48, 54, 61, 0.8) transparent;
}

.af-legal-body::-webkit-scrollbar {
  width: 5px;
}

.af-legal-body::-webkit-scrollbar-track {
  background: transparent;
}

.af-legal-body::-webkit-scrollbar-thumb {
  background: rgba(48, 54, 61, 0.8);
  border-radius: 4px;
}

.af-legal-effective {
  font-size: 0.78rem;
  color: #484f58;
  margin: 0 0 24px;
}

.af-legal-disclaimer {
  background: rgba(248, 81, 73, 0.06);
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}

.af-legal-disclaimer p {
  font-size: 0.82rem;
  color: #c9d1d9;
  line-height: 1.65;
  margin: 0;
}

.af-legal-disclaimer p strong {
  color: #f85149;
}

.af-legal-section {
  margin-bottom: 22px;
}

.af-legal-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #58a6ff;
  margin: 0 0 8px;
}

.af-legal-section-para {
  font-size: 0.84rem;
  color: #8b949e;
  line-height: 1.65;
  margin: 0 0 6px;
}

.af-legal-section-para:last-child {
  margin-bottom: 0;
}

.af-legal-contact {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(48, 54, 61, 0.5);
  font-size: 0.82rem;
  color: #484f58;
}

.af-legal-contact a {
  color: #58a6ff;
  text-decoration: none;
}

.af-legal-contact a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .af-legal-header {
    padding: 20px 20px 16px;
  }

  .af-legal-body {
    padding: 20px 20px 28px;
  }
}

/* -- Sign-in modal overlay (CSS :target trick) ------------------------- */
/* Opened by href="#signin-modal"; closed by clicking backdrop (href="#") */
.af-signin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.af-signin-overlay:target {
  display: flex;
}

/* Full-screen backdrop — clicking it navigates to # (removes :target) */
.af-signin-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Card sits above the backdrop */
.af-signin-overlay .af-signin-card {
  position: relative;
  z-index: 1;
  margin: 0;
  max-height: 90vh;
  overflow-y: auto;
}

/* -- Pricing section ---------------------------------------------------- */
.af-pricing-card {
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95) 0%, rgba(13, 17, 23, 0.95) 100%);
  border: 1px solid rgba(210, 153, 34, 0.25);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(210, 153, 34, 0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.af-pricing-header {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(48, 54, 61, 0.6);
  background: linear-gradient(160deg, rgba(210, 153, 34, 0.06) 0%, transparent 60%);
}

.af-pricing-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d29922;
  background: rgba(210, 153, 34, 0.12);
  border: 1px solid rgba(210, 153, 34, 0.25);
  border-radius: 100px;
  padding: 4px 12px;
}

.af-pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.af-pricing-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: #d29922;
  align-self: flex-start;
  margin-top: 6px;
}

.af-pricing-number {
  font-size: 3.4rem;
  font-weight: 800;
  color: #e6edf3;
  letter-spacing: -0.03em;
}

.af-pricing-period {
  font-size: 0.9rem;
  color: #8b949e;
  margin-left: 4px;
}

.af-pricing-sub {
  font-size: 0.875rem;
  color: #8b949e;
  line-height: 1.55;
  margin: 0;
}

.af-pricing-cta {
  display: inline-flex !important;
  align-self: center;
  margin-top: 8px;
}

.af-pricing-features {
  padding: 40px 32px;
}

.af-pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.af-pricing-list li {
  display: flex;
  align-items: flex-start;
  font-size: 0.875rem;
  color: #c9d1d9;
  line-height: 1.5;
}

.af-pricing-list li .bi {
  color: #3fb950;
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

/* -- Enhanced footer ---------------------------------------------------- */
.af-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(48, 54, 61, 0.5);
  margin-bottom: 24px;
}

.af-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.af-footer-tagline {
  font-size: 0.82rem;
  color: #484f58;
  line-height: 1.6;
  margin: 0;
  max-width: 220px;
}

.af-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.af-footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b949e;
  margin-bottom: 4px;
}

.af-footer-bottom {
  text-align: center;
}

/* -- Responsive: pricing card ------------------------------------------- */
@media (max-width: 700px) {
  .af-pricing-card {
    grid-template-columns: 1fr;
  }

  .af-pricing-header {
    border-right: none;
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
  }

  .af-footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .af-footer-brand {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   LANDING PAGE IMPROVEMENTS — appended
   ============================================================ */

/* --- Navbar links ------------------------------------------ */
.af-nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0 auto 0 2rem;
}

.af-nav-link {
  color: #8b949e;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.af-nav-link:hover {
  color: #e6edf3;
  background: rgba(255, 255, 255, 0.06);
}

/* --- Hero social proof line -------------------------------- */
.af-hero-social-proof {
  font-size: 0.8rem;
  color: #8b949e;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0;
}

/* --- Footer monitor line ----------------------------------- */
.af-footer-monitor-line {
  font-size: 0.75rem;
  color: #6e7681;
  margin: 0.25rem 0 0;
  letter-spacing: 0.03em;
}

/* ============================================================
   KNOWLEDGE GRAPH SECTION
   ============================================================ */
.af-graph-section {
  border-top: 1px solid rgba(210, 153, 34, 0.12);
  border-bottom: 1px solid rgba(210, 153, 34, 0.12);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(210, 153, 34, 0.04) 0%, transparent 70%);
}

.af-graph-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.af-graph-cards-col {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.af-prop-card {
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 10px;
  padding: 1rem 1.125rem;
  transition: border-color 0.2s, transform 0.2s;
}

.af-prop-card:hover {
  border-color: rgba(210, 153, 34, 0.4);
  transform: translateY(-2px);
}

.af-prop-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.af-prop-ticker {
  font-size: 0.875rem;
  font-weight: 700;
  color: #e6edf3;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

.af-prop-arrow {
  color: #d29922;
  font-size: 1rem;
  font-weight: 700;
}

.af-prop-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  letter-spacing: 0.02em;
}

.af-prop-badge--lag {
  background: rgba(56, 139, 253, 0.12);
  color: #58a6ff;
  border: 1px solid rgba(56, 139, 253, 0.25);
}

.af-prop-badge--acc {
  background: rgba(63, 185, 80, 0.12);
  color: #3fb950;
  border: 1px solid rgba(63, 185, 80, 0.25);
}

.af-prop-caption {
  font-size: 0.8rem;
  color: #8b949e;
  margin: 0;
  line-height: 1.5;
}

.af-graph-diagram-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.af-graph-diagram-img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  border: 1px solid rgba(48, 54, 61, 0.8);
  background: rgba(13, 17, 23, 0.9);
}

.af-graph-moat-statement {
  font-size: 0.8rem;
  color: #6e7681;
  text-align: center;
  font-style: italic;
  max-width: 340px;
  margin: 0;
  line-height: 1.5;
}

.af-graph-footer-note {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #6e7681;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ============================================================
   COMPARISON GRID SECTION
   ============================================================ */
.af-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.af-compare-col {
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 12px;
  padding: 1.5rem;
}

.af-compare-col--apex {
  border-color: rgba(210, 153, 34, 0.5);
  box-shadow: 0 0 28px rgba(210, 153, 34, 0.07), inset 0 1px 0 rgba(210, 153, 34, 0.15);
  background: rgba(22, 27, 34, 0.95);
}

.af-compare-col-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.af-compare-col-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #8b949e;
  flex-shrink: 0;
}

.af-compare-col-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #8b949e;
}

.af-compare-col-title--gold {
  color: #d29922;
}

.af-compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.af-compare-list li {
  font-size: 0.8rem;
  color: #8b949e;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.af-compare-col--apex .af-compare-list li {
  color: #c9d1d9;
}

.af-compare-x {
  color: #f85149;
  font-weight: 700;
  flex-shrink: 0;
}

.af-compare-check {
  color: #3fb950;
  font-weight: 700;
  flex-shrink: 0;
}

.af-compare-arrow {
  color: #d29922;
  font-weight: 700;
  flex-shrink: 0;
}

.af-compare-quote {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #8b949e;
  text-align: center;
  font-style: italic;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============================================================
   PRICING ADDITIONS
   ============================================================ */
.af-pricing-precard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.af-pricing-precard-item {
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid rgba(48, 54, 61, 0.7);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.af-pricing-precard-icon {
  font-size: 1.5rem;
  color: #d29922;
  display: block;
  margin-bottom: 0.625rem;
}

.af-pricing-precard-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 0.375rem;
}

.af-pricing-precard-body {
  font-size: 0.775rem;
  color: #6e7681;
  line-height: 1.5;
  margin: 0;
}

.af-pricing-trust-line {
  font-size: 0.75rem;
  color: #6e7681;
  margin: 0.5rem 0 0;
  text-align: center;
  letter-spacing: 0.02em;
}

.af-pricing-trial {
  margin-top: 0.75rem;
  padding: 0.6rem 0.9rem;
  background: rgba(201, 168, 76, 0.06);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 8px;
  text-align: center;
  line-height: 1.5;
}

.af-pricing-trial-label {
  font-size: 0.78rem;
  color: #8b949e;
}

.af-pricing-trial-link {
  font-size: 0.78rem;
  color: #c9a84c;
  text-decoration: none;
  font-weight: 600;
}

.af-pricing-trial-link:hover {
  text-decoration: underline;
}

.af-pricing-partner-divider {
  border: none;
  border-top: 1px solid rgba(48, 54, 61, 0.6);
  margin: 2rem 0 1.25rem;
}

.af-pricing-partner-note {
  font-size: 0.8rem;
  color: #6e7681;
  text-align: center;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.af-pricing-partner-link {
  color: #d29922;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.af-pricing-partner-link:hover {
  color: #e6b93a;
}

/* ============================================================
   TRUST SIGNALS SECTION
   ============================================================ */
.af-trust-section {
  border-top: 1px solid rgba(48, 54, 61, 0.6);
  border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.af-trust-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.af-trust-item {
  flex: 1;
  padding: 1.75rem 2rem;
  text-align: center;
}

.af-trust-divider {
  width: 1px;
  background: rgba(48, 54, 61, 0.7);
  flex-shrink: 0;
  margin: 1rem 0;
}

.af-trust-icon {
  font-size: 1.5rem;
  color: #d29922;
  display: block;
  margin-bottom: 0.75rem;
}

.af-trust-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 0.375rem;
}

.af-trust-body {
  font-size: 0.8rem;
  color: #6e7681;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   RESPONSIVE — 900px breakpoint
   ============================================================ */
/* Mobile-only About link in the landing nav (desktop nav links hide < 900px) */
.af-nav-about-mobile {
  display: none;
}

@media (max-width: 900px) {
  .af-nav-links {
    display: none;
  }

  .af-nav-about-mobile {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1.25rem;
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
  }

  .af-nav-about-mobile:hover {
    color: #e6edf3;
    text-decoration: none;
  }

  .af-graph-cols {
    grid-template-columns: 1fr;
  }

  .af-graph-diagram-col {
    display: none;
  }

  .af-compare-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .af-trust-row {
    flex-direction: column;
  }

  .af-trust-divider {
    width: 100%;
    height: 1px;
    margin: 0 1rem;
  }
}

/* ============================================================
   RESPONSIVE — 600px breakpoint
   ============================================================ */
@media (max-width: 600px) {
  .af-pricing-precard {
    grid-template-columns: 1fr;
  }
}

