/**
 * Chrome público partilhado — landing + páginas de auth.
 * Header sticky, botões .btn DSF, footer full-bleed.
 */

html.landing-html,
html.auth-html {
  scroll-behavior: smooth;
}

html.landing-html,
html.landing-html body.landing-body,
html.auth-html,
html.auth-html body.auth-body {
  background-color: var(--bg-base, #030304);
  color: var(--text-primary, #fafafa);
}

/* Coluna central com margens laterais largas */
.landing-shell {
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 6vw, 2.5rem);
  padding-right: clamp(1.25rem, 6vw, 2.5rem);
  box-sizing: border-box;
}

body.landing-body .cleo-main.landing-main,
body.auth-body .cleo-main.auth-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
}

/* —— Header uniforme (sticky) — anula Cadence `nav { position:fixed }` —— */
html.landing-html .landing-header,
html.landing-html header.landing-header#header,
html.landing-html header.landing-header#header.scrolled,
html.auth-html .landing-header,
html.auth-html header.landing-header#header,
html.auth-html header.landing-header#header.scrolled {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  z-index: 1000 !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  background: var(--bg-base, #030304) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
}

.landing-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 1rem;
  width: 100%;
  min-height: 64px;
}

.landing-header__inner--auth {
  grid-template-columns: 1fr auto;
}

.landing-header__brand {
  grid-column: 1;
  justify-self: start;
  text-decoration: none !important;
}

html.landing-html .landing-nav,
html.landing-html header.landing-header nav.landing-nav,
html.auth-html .landing-nav,
html.auth-html header.landing-header nav.landing-nav {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  grid-column: 2;
  justify-self: center;
  z-index: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 0.15rem 0.35rem !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  color: inherit !important;
}

html.landing-html .landing-nav__link,
html.landing-html .landing-nav a.landing-nav__link,
html.auth-html .landing-nav__link,
html.auth-html .landing-nav a.landing-nav__link {
  padding: 0.4rem 0.7rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: var(--text-dim, #888894) !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: none !important;
  border-radius: 0.5rem !important;
  box-shadow: none !important;
  background: transparent !important;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

html.landing-html .landing-nav__link:hover,
html.landing-html .landing-nav__link:focus,
html.landing-html .landing-nav__link:active,
html.landing-html .landing-nav a.landing-nav__link:hover,
html.auth-html .landing-nav__link:hover,
html.auth-html .landing-nav__link:focus,
html.auth-html .landing-nav__link:active,
html.auth-html .landing-nav a.landing-nav__link:hover {
  color: var(--heading, #fafafa) !important;
  text-decoration: none !important;
  border-bottom: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.landing-header__end {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.landing-header__inner--auth .landing-header__end {
  grid-column: 2;
}

.landing-nav__cta.btn {
  padding: 0.55rem 1rem !important;
  font-size: 0.8125rem !important;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none !important;
}

@media (max-width: 900px) {
  .landing-header__inner {
    grid-template-columns: 1fr auto;
  }

  html.landing-html .landing-nav,
  html.landing-html header.landing-header nav.landing-nav {
    display: none !important;
  }

  .landing-header__end {
    grid-column: 2;
  }
}

/* Botões DSF — reforço (Tailwind CDN / falta de .btn) */
html.landing-html .btn,
html.auth-html .btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body, inherit);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s var(--easing-smooth, ease);
  border: 1px solid transparent;
  line-height: 1.2;
  box-sizing: border-box;
}

html.landing-html .btn.btn-primary,
html.auth-html .btn.btn-primary {
  background: var(--text-main, #fafafa);
  color: var(--bg-base, #030304);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

html.landing-html .btn.btn-primary:hover:not(:disabled),
html.auth-html .btn.btn-primary:hover:not(:disabled) {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
}

html.landing-html .btn.btn-primary:disabled,
html.auth-html .btn.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

html.landing-html .btn.btn-secondary,
html.auth-html .btn.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main, #fafafa);
  border-color: var(--border-light, rgba(255, 255, 255, 0.18));
  backdrop-filter: blur(10px);
}

html.landing-html .btn.btn-secondary:hover,
html.auth-html .btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

/* Footer full-bleed: regras em site.css (.landing-footer) — partilhado com o portal. */

/* —— Light mode (tokens DSF) —— */
html[data-theme="light"].landing-html,
html[data-theme="light"].landing-html body.landing-body,
html[data-theme="light"].auth-html,
html[data-theme="light"].auth-html body.auth-body {
  background-color: var(--bg-base, #f4f6f8);
  color: var(--text-primary, #0a0a0e);
}

html[data-theme="light"].landing-html .landing-header,
html[data-theme="light"].landing-html header.landing-header#header,
html[data-theme="light"].landing-html header.landing-header#header.scrolled,
html[data-theme="light"].auth-html .landing-header,
html[data-theme="light"].auth-html header.landing-header#header,
html[data-theme="light"].auth-html header.landing-header#header.scrolled {
  background: var(--bg-base, #f4f6f8) !important;
  border-bottom-color: rgba(10, 10, 14, 0.1) !important;
}

html[data-theme="light"].landing-html .landing-nav__link,
html[data-theme="light"].landing-html .landing-nav a.landing-nav__link,
html[data-theme="light"].auth-html .landing-nav__link,
html[data-theme="light"].auth-html .landing-nav a.landing-nav__link {
  color: var(--text-dim, #5b6472) !important;
}

html[data-theme="light"].landing-html .landing-nav__link:hover,
html[data-theme="light"].landing-html .landing-nav a.landing-nav__link:hover,
html[data-theme="light"].auth-html .landing-nav__link:hover,
html[data-theme="light"].auth-html .landing-nav a.landing-nav__link:hover {
  color: var(--heading, #0a0a0e) !important;
  background: rgba(10, 10, 14, 0.05) !important;
}

html[data-theme="light"].landing-html .btn.btn-primary,
html[data-theme="light"].auth-html .btn.btn-primary {
  background: var(--text-main, #0a0a0e);
  color: var(--bg-base, #f4f6f8);
  box-shadow: none;
}

html[data-theme="light"].landing-html .btn.btn-primary:hover:not(:disabled),
html[data-theme="light"].auth-html .btn.btn-primary:hover:not(:disabled) {
  background: #111827;
  box-shadow: 0 8px 24px rgba(10, 10, 14, 0.12);
}

html[data-theme="light"].landing-html .btn.btn-secondary,
html[data-theme="light"].auth-html .btn.btn-secondary {
  background: rgba(10, 10, 14, 0.03);
  color: var(--text-main, #0a0a0e);
  border-color: rgba(10, 10, 14, 0.16);
  backdrop-filter: none;
}

html[data-theme="light"].landing-html .btn.btn-secondary:hover,
html[data-theme="light"].auth-html .btn.btn-secondary:hover {
  background: rgba(10, 10, 14, 0.07);
  border-color: rgba(10, 10, 14, 0.28);
}

.cleo-public-gate {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.cleo-public-gate .tagline {
  margin: 0 0 0.65rem;
}

.cleo-public-gate .ds-display {
  margin: 0 0 0.85rem;
}

.cleo-public-gate__lead {
  margin: 0 0 1.75rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-dim, #94a3b8);
}

.cleo-public-gate .auth-login__card {
  text-align: center;
}

.cleo-public-gate .ds-cta-row {
  justify-content: center;
}

.cleo-public-gate .auth-login__card p {
  margin: 0 0 1rem;
  color: var(--text-dim, #94a3b8);
  line-height: 1.5;
}

.cleo-public-gate .auth-login__card code {
  font-size: 0.85em;
}
