/* Public landing — pre-auth homepage at #/ */

html.public-landing-active,
html.public-landing-active body {
  overflow-x: hidden;
  overflow-y: auto;
  background: #000;
  min-height: 100%;
}

html.public-landing-active #root,
html.public-landing-active .ir-nav-desktop-spa,
html.public-landing-active .ir-mobile-nav-root,
html.public-landing-active #access-gate,
html.public-landing-active #mandate-chart-section,
html.public-landing-active #mandate-doge-pipeline {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.public-gate-active #public-landing {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.public-landing {
  position: relative;
  z-index: 999998;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #f0f0fa;
  font-family: var(--ir-font, 'D-DIN', system-ui, sans-serif);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(60, 80, 120, 0.35), transparent 55%),
    #050506;
}

.public-landing[hidden] {
  display: none !important;
}

.public-landing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1.25rem) 1.5rem 0;
  max-width: var(--ir-max, 72rem);
  margin: 0 auto;
  width: 100%;
}

.public-landing__logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 160px;
  color: #fff;
}

.public-landing__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-landing__nav a {
  color: rgba(240, 240, 250, 0.65);
  text-decoration: none;
}

.public-landing__nav a:hover {
  color: #fff;
}

.public-landing__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--ir-max, 42rem);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  width: 100%;
}

.public-landing__eyebrow {
  margin: 0 0 1rem;
}

.public-landing__title {
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.public-landing__lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(240, 240, 250, 0.78);
  max-width: 38rem;
}

.public-landing__disclaimer {
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  border-left: 2px solid rgba(240, 240, 250, 0.22);
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(240, 240, 250, 0.55);
  max-width: 38rem;
}

.public-landing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.public-landing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.public-landing__btn--primary {
  background: #fff;
  color: #050506;
  border: 1px solid #fff;
}

.public-landing__btn--primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

.public-landing__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(240, 240, 250, 0.35);
}

.public-landing__btn--ghost:hover {
  border-color: rgba(240, 240, 250, 0.65);
}

.public-landing__footer {
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(240, 240, 250, 0.45);
  letter-spacing: 0.06em;
}

.public-landing__footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 640px) {
  .public-landing__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .public-landing__actions {
    flex-direction: column;
    width: 100%;
  }

  .public-landing__btn {
    width: 100%;
  }
}
