/* ============================================================================
   pibiCo Auth — marketable landing (served at "/" only when no SSO markers).
   Theme is scoped with :has(.auth-landing) so base.html body needs no change.
   Brand: steel-blue gradient + glassmorphism, vanilla CSS only.
   ============================================================================ */

html:has(.auth-landing) {
  background: linear-gradient(140deg, #2c5171 0%, #4682b4 52%, #6a9bc3 100%);
  background-attachment: fixed;
  color: #f5f9fc;
}
html:has(.auth-landing) body { min-height: 100vh; }

/* Navbar reads as translucent glass over the gradient */
html:has(.auth-landing) .app-header {
  background: rgba(20, 40, 64, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
html:has(.auth-landing) .app-header-title #brandName { color: #fff; }
html:has(.auth-landing) .pibico-lang-btn { color: #eaf2fa; }

html:has(.auth-landing) main.app-main { padding: 0; }

/* Footer transparent over the gradient */
html:has(.auth-landing) .app-footer {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.72);
}
html:has(.auth-landing) .app-footer a { color: rgba(255, 255, 255, 0.88); }

/* ── Layout shell ─────────────────────────────────────────────────────────── */
.auth-landing {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.lnd-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  padding: 56px 12px 48px;
  overflow: hidden;
}
.lnd-hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90vw);
  height: 680px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
  z-index: 0;
}
.lnd-hero > *:not(.lnd-hero-glow) { position: relative; z-index: 1; }

.lnd-eyebrow {
  font-family: var(--font-brand, 'Raleway', sans-serif);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
}
.lnd-wordmark {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.02em;
}
.lnd-wordmark .wm-pibi { color: #ffffff; }
.lnd-wordmark .wm-co   { color: #bfe0ff; }
.lnd-wordmark .wm-auth { color: rgba(255, 255, 255, 0.55); font-weight: 300; }

.lnd-hero-sub {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
  max-width: 60ch;
  margin: 0;
}

/* ── CTA buttons ──────────────────────────────────────────────────────────── */
.lnd-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}
.lnd-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lnd-btn i { font-size: 1.1rem; }
.lnd-btn-primary {
  background: #fff;
  color: #2c5171;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}
.lnd-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32); }
.lnd-btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lnd-btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.lnd-section { padding: 48px 4px 8px; }
.lnd-section-title {
  font-family: var(--font-brand, 'Raleway', sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 8px;
  color: #fff;
}
.lnd-section-sub {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 28px;
}

/* ── Card grid ────────────────────────────────────────────────────────────── */
.lnd-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) { .lnd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .lnd-grid { grid-template-columns: repeat(3, 1fr); } }
.lnd-grid-apps { max-width: 880px; margin: 0 auto; }

.lnd-card,
.lnd-app-card {
  background: rgba(13, 30, 48, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px 20px 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lnd-app-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.lnd-app-card:hover {
  transform: translateY(-3px);
  background: rgba(13, 30, 48, 0.48);
  border-color: rgba(255, 255, 255, 0.26);
}
.lnd-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.5rem;
}
.lnd-card h3,
.lnd-app-card h3 {
  font-family: var(--font-heading, 'Montserrat', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}
.lnd-card p,
.lnd-app-card p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

/* ── CTA band ─────────────────────────────────────────────────────────────── */
.lnd-cta-band {
  margin: 44px auto 0;
  max-width: 760px;
  text-align: center;
  background: rgba(13, 30, 48, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 38px 24px 30px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lnd-cta-band h2 {
  font-family: var(--font-brand, 'Raleway', sans-serif);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0 0 6px;
  color: #fff;
}
.lnd-cta-band p {
  font-family: var(--font-body, 'Inter', sans-serif);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px;
}
.lnd-legal {
  margin-top: 18px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}
.lnd-legal a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.lnd-legal a:hover { text-decoration: underline; }
.lnd-legal-sep { margin: 0 8px; opacity: 0.5; }
