/* ============================================================================
   Landing page — the first screen a visitor sees.
   Full-bleed (not clamped to --max-content-width like the employee app), since
   this is the one page a desktop visitor is likely to arrive on.
   Every animation is decorative and sits behind a prefers-reduced-motion
   guard at the bottom of this file.
   ========================================================================= */

.lp {
  --lp-ink: #1a1226;
  --lp-ink-soft: #6b6070;
  --lp-line: rgba(26, 18, 38, 0.09);
  min-height: 100dvh;
  width: 100%;
  max-width: none;
  background: #fffafa;
  color: var(--lp-ink);
  overflow-x: hidden;
  position: relative;
}

/* ── Animated background ─────────────────────────────────────────────── */
.lp-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.lp-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  will-change: transform;
}
.lp-orb-1 {
  width: 460px; height: 460px; top: -140px; left: -110px;
  background: radial-gradient(circle at 30% 30%, #ff8a6b, #f4485c);
  animation: lp-drift-a 19s ease-in-out infinite;
}
.lp-orb-2 {
  width: 380px; height: 380px; top: 18%; right: -120px;
  background: radial-gradient(circle at 70% 30%, #7c5cfc, #ec4e8c);
  animation: lp-drift-b 23s ease-in-out infinite;
}
.lp-orb-3 {
  width: 420px; height: 420px; bottom: -150px; left: 32%;
  background: radial-gradient(circle at 50% 50%, #4dabf7, #0fb5a7);
  animation: lp-drift-c 27s ease-in-out infinite;
}

@keyframes lp-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, 50px) scale(1.12); }
}
@keyframes lp-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-60px, 70px) scale(0.9); }
}
@keyframes lp-drift-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(50px, -60px) scale(1.08); }
}

/* Faint grid, masked to fade out toward the edges. */
.lp-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--lp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 40%, transparent 100%);
}

.lp-shell { position: relative; z-index: 1; }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: 1120px; margin: 0 auto;
  padding: 20px 24px;
  /* Stays above .lp-signin-backdrop so the trigger + open menu are never
     dimmed by their own backdrop. */
  position: relative; z-index: 60;
}
.lp-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.lp-brand svg { width: 30px; height: 30px; color: var(--color-primary); }
.lp-nav-actions { display: flex; align-items: center; gap: 10px; }

.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 650; font-size: 15px;
  padding: 12px 22px; border-radius: 999px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  white-space: nowrap;
}
.lp-btn:active { transform: translateY(1px); }

.lp-btn-primary {
  background: var(--grad-primary); color: #fff;
  box-shadow: 0 8px 22px rgba(var(--color-primary-rgb), 0.32);
}
.lp-btn-primary:hover { box-shadow: 0 12px 30px rgba(var(--color-primary-rgb), 0.42); transform: translateY(-2px); }

.lp-btn-ghost { background: rgba(255,255,255,0.72); color: var(--lp-ink); box-shadow: inset 0 0 0 1px var(--lp-line); }
.lp-btn-ghost:hover { background: #fff; }

.lp-btn-lg { padding: 15px 30px; font-size: 16px; }

/* ── Sign-in role menu ───────────────────────────────────────────────── */
.lp-signin { position: relative; }
.lp-signin-caret { transition: transform 0.18s ease; }
.lp-signin.is-open .lp-signin-caret { transform: rotate(180deg); }
#signin-trigger[aria-expanded="true"] { background: #fff; box-shadow: inset 0 0 0 1px var(--lp-line), 0 4px 14px rgba(90, 50, 40, 0.1); }

.lp-signin-menu {
  position: absolute; top: calc(100% + 14px); right: 0;
  width: 288px; background: #fff; border-radius: 18px;
  box-shadow: 0 22px 50px rgba(90, 50, 40, 0.18), 0 4px 12px rgba(90, 50, 40, 0.08);
  padding: 10px; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2), visibility 0.16s ease;
  z-index: 100;
}
/* A small pointer nub ties the panel visually back to the trigger above it. */
.lp-signin-menu::before {
  content: ''; position: absolute; top: -6px; right: 22px;
  width: 12px; height: 12px; background: #fff;
  transform: rotate(45deg); border-radius: 3px 0 0 0;
  box-shadow: -2px -2px 6px rgba(90, 50, 40, 0.05);
}
.lp-signin:hover .lp-signin-menu,
.lp-signin:focus-within .lp-signin-menu,
.lp-signin.is-open .lp-signin-menu {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}

/* At the hero's 2-column desktop layout, the card sits almost directly
   under the sign-in menu's open position — without this the two white,
   shadowed panels visually run into each other. Dimming everything below
   the header (which stays above this via its own z-index) keeps them
   clearly separated regardless of viewport size. */
.lp-signin-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(250, 246, 246, 0.72);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
body:has(.lp-signin:hover) .lp-signin-backdrop,
body:has(.lp-signin:focus-within) .lp-signin-backdrop,
body.signin-open .lp-signin-backdrop {
  opacity: 1; visibility: visible;
}

.lp-signin-menu-label {
  margin: 4px 8px 6px; padding-bottom: 8px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--lp-ink-soft);
}

.lp-signin-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px; border-radius: 13px;
  text-decoration: none; color: var(--lp-ink);
  transition: background 0.14s ease, transform 0.14s ease;
}
.lp-signin-item + .lp-signin-item { margin-top: 2px; }
.lp-signin-item:hover, .lp-signin-item:focus-visible {
  background: var(--color-primary-pale);
  outline: none;
}
.lp-signin-item:hover { transform: translateX(2px); }
.lp-signin-item:focus-visible { box-shadow: 0 0 0 2px var(--color-primary); }

.lp-signin-item-ic {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.lp-signin-item-ic svg { width: 18px; height: 18px; }
.lp-signin-item-ic-admin { background: linear-gradient(135deg, #4dabf7, #0fb5a7); }
.lp-signin-item-ic-super { background: linear-gradient(135deg, #7c5cfc, #ec4e8c); }

.lp-signin-item-text { flex: 1 1 auto; min-width: 0; }
.lp-signin-item .t { display: block; font-weight: 700; font-size: 14px; }
.lp-signin-item .d { display: block; font-size: 12px; color: var(--lp-ink-soft); margin-top: 1px; }

.lp-signin-item-go {
  flex-shrink: 0; color: var(--lp-ink-soft);
  opacity: 0; transform: translateX(-4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}
.lp-signin-item:hover .lp-signin-item-go,
.lp-signin-item:focus-visible .lp-signin-item-go {
  opacity: 1; transform: translateX(0);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.lp-hero {
  max-width: 1120px; margin: 0 auto;
  padding: 40px 24px 72px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.8); box-shadow: inset 0 0 0 1px var(--lp-line);
  color: var(--lp-ink-soft);
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.lp-eyebrow .lp-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--color-success-solid);
  animation: lp-pulse 2.2s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(18,184,134,0.5); }
  50%      { opacity: 0.75; box-shadow: 0 0 0 6px rgba(18,184,134,0); }
}

.lp-title {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04; font-weight: 800; letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.lp-title .lp-hl {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-sub {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6;
  color: var(--lp-ink-soft); margin: 0 0 32px; max-width: 33ch;
}
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.lp-trust { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--lp-ink-soft); }
.lp-trust span { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust svg { width: 16px; height: 16px; color: var(--color-success-solid); flex: none; }

/* Entrance: each element a beat behind the last. */
.lp-rise { animation: lp-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.lp-d1 { animation-delay: 60ms; }
.lp-d2 { animation-delay: 150ms; }
.lp-d3 { animation-delay: 240ms; }
.lp-d4 { animation-delay: 330ms; }
.lp-d5 { animation-delay: 420ms; }
@keyframes lp-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ── Hero card: a live-looking attendance panel ──────────────────────── */
.lp-visual { position: relative; padding: 26px 18px; }

.lp-card {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 22px; padding: 22px;
  box-shadow: 0 24px 60px rgba(60, 20, 40, 0.14), inset 0 0 0 1px rgba(255,255,255,0.7);
  animation: lp-float 7s ease-in-out infinite;
}
@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.lp-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.lp-card-title { font-weight: 700; font-size: 15px; }
.lp-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--color-success);
  background: var(--color-success-bg); padding: 5px 10px; border-radius: 999px;
}
.lp-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-success-solid);
  animation: lp-pulse 2s ease-in-out infinite; }

.lp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.lp-stat { background: var(--color-surface-2); border-radius: 14px; padding: 13px 12px; text-align: center; }
.lp-stat-n { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.lp-stat-l { font-size: 11.5px; color: var(--lp-ink-soft); margin-top: 3px; }

.lp-rows { display: flex; flex-direction: column; gap: 9px; }
.lp-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 12px; background: var(--color-surface-2);
  animation: lp-slide 560ms cubic-bezier(0.22,1,0.36,1) both;
}
.lp-row:nth-child(1) { animation-delay: 620ms; }
.lp-row:nth-child(2) { animation-delay: 740ms; }
.lp-row:nth-child(3) { animation-delay: 860ms; }
@keyframes lp-slide {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: none; }
}

.lp-av {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
}
.lp-row-main { flex: 1; min-width: 0; }
/* These are `display:block` in their own right rather than relying on a
   utility class — the landing page deliberately doesn't load Bootstrap, so
   `.d-block` would silently do nothing and both lines would run together. */
.lp-row-n { display: block; font-size: 13.5px; font-weight: 650; }
.lp-row-s { display: block; font-size: 11.5px; color: var(--lp-ink-soft); }
.lp-pill { font-size: 11px; font-weight: 650; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.lp-pill-in { background: var(--color-success-bg); color: var(--color-success); }
.lp-pill-late { background: var(--color-warning-bg); color: var(--color-warning); }

/* Small floating chips around the card. */
.lp-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 13px; padding: 10px 13px;
  box-shadow: 0 12px 30px rgba(60,20,40,0.14);
  font-size: 12.5px; font-weight: 650; white-space: nowrap;
}
.lp-chip svg { width: 15px; height: 15px; }
.lp-chip-1 { top: -12px; left: -10px; color: var(--c-violet); animation: lp-float 6s ease-in-out infinite 0.7s; }
.lp-chip-2 { bottom: -18px; right: -14px; color: var(--c-teal); animation: lp-float 6.6s ease-in-out infinite 1.4s; }

/* ── Role cards ──────────────────────────────────────────────────────── */
.lp-section { max-width: 1120px; margin: 0 auto; padding: 8px 24px 80px; }
.lp-sec-head { text-align: center; margin-bottom: 38px; }
.lp-sec-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.lp-sec-sub { color: var(--lp-ink-soft); font-size: 16px; margin: 0; }

.lp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-role {
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 20px; padding: 26px 22px;
  box-shadow: inset 0 0 0 1px var(--lp-line);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1), box-shadow 0.22s ease;
}
.lp-role:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(60,20,40,0.13), inset 0 0 0 1px transparent;
}
.lp-role-ic {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 16px; color: #fff;
}
.lp-role-ic svg { width: 23px; height: 23px; }
.lp-role h3 { font-size: 18px; font-weight: 750; margin: 0 0 8px; letter-spacing: -0.02em; }
.lp-role p { font-size: 14px; line-height: 1.6; color: var(--lp-ink-soft); margin: 0 0 16px; }
.lp-role ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lp-role li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--lp-ink); }
.lp-role li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--color-success-solid); }

/* ── Footer band ─────────────────────────────────────────────────────── */
.lp-foot {
  border-top: 1px solid var(--lp-line);
  padding: 26px 24px 40px; text-align: center;
  color: var(--lp-ink-soft); font-size: 13.5px;
}
.lp-foot a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.lp-foot a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 44px; padding-top: 20px; padding-bottom: 52px; }
  .lp-sub { max-width: none; }
  .lp-roles { grid-template-columns: 1fr; }
  .lp-chip-1 { left: -8px; }
  .lp-chip-2 { right: -8px; }
}
@media (max-width: 560px) {
  .lp-nav { padding: 16px; }
  /* The sign-in trigger is the only way an admin/superadmin can reach their
     login on mobile (their links live only in this menu), so it stays —
     only the redundant ghost buttons get dropped for space. */
  .lp-nav .lp-btn-ghost:not(#signin-trigger) { display: none; }
  #signin-trigger { padding: 10px 14px; font-size: 14px; }
  .lp-signin-menu { width: min(288px, calc(100vw - 32px)); right: -16px; }
  .lp-signin-menu::before { right: 38px; }
  .lp-hero, .lp-section { padding-left: 16px; padding-right: 16px; }
  .lp-cta .lp-btn { flex: 1 1 100%; }
  .lp-chip { display: none; }
}

/* Motion is decorative throughout — with it off, everything still renders
   in its final state rather than disappearing. */
@media (prefers-reduced-motion: reduce) {
  .lp-orb, .lp-card, .lp-chip, .lp-eyebrow .lp-dot, .lp-live i { animation: none !important; }
  .lp-rise, .lp-row { animation: none !important; opacity: 1 !important; transform: none !important; }
  .lp-role:hover { transform: none; }
}
