/* doAttendance — Premium face verification story */

:root {
  --lp-face-glow: rgba(99, 102, 241, 0.45);
  --lp-face-success: #10b981;
}

/* Hero stack: tablet + security row, dashboard below */
.lp-mockups.lp-hero-stack {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  max-width: 680px;
  width: 100%;
  margin-inline: auto;
}

.lp-hero-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.lp-hero-top-row .lp-tablet {
  width: 100%;
  min-width: 0;
}

.lp-hero-top-row .lp-hero-security {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.lp-hero-top-row .lp-hero-security-layers {
  flex: 1;
}

.lp-hero-top-row .lp-tablet-screen {
  min-height: 360px;
}

.lp-hero-top-row .lp-face-premium {
  min-height: 340px;
  padding: 12px;
}

.lp-hero-top-row .lp-face-oval-lg {
  width: 120px;
  height: 152px;
}

.lp-tablet {
  width: 100%;
  padding: 14px;
  background: linear-gradient(155deg, #1e293b 0%, #0f172a 50%, #1a1030 100%);
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(99, 102, 241, 0.08);
}

.lp-tablet-camera {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
  margin: 0 auto 10px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.5);
}

.lp-tablet-screen {
  background: radial-gradient(ellipse at center 30%, #1a1f35 0%, #0a0e17 70%);
  border-radius: 18px;
  overflow: hidden;
  min-height: 380px;
  position: relative;
}

.lp-hero-stack .lp-dashboard {
  position: static;
  width: 100%;
  transition: border-color 0.5s, box-shadow 0.5s;
}

.lp-hero-stack .lp-dashboard.verified {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.12);
}

.lp-hero-stack .lp-dash-present {
  transition: color 0.3s;
}

.lp-hero-stack .lp-dashboard.verified .lp-dash-present {
  color: var(--lp-face-success);
}

/* Hero security story — beside tablet */
.lp-hero-security {
  width: 100%;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 14px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.lp-hero-security-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.lp-hero-security-head strong {
  font-size: 0.85rem;
}

.lp-hero-security-phase {
  font-size: 0.65rem;
  font-weight: 600;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lp-hero-security-gps {
  text-align: center;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--lp-border);
  margin-bottom: 12px;
  transition: opacity 0.4s;
}

.lp-hero-security-gps.dim {
  opacity: 0.45;
}

.lp-gps-hero-mini .lp-gps-ring {
  width: 72px;
  height: 72px;
  margin-inline: auto;
}

.lp-gps-hero-mini .lp-gps-label {
  font-size: 0.72rem;
  margin-top: 8px;
}

.lp-hero-security-sub {
  margin: 0 0 8px;
  font-size: 0.7rem;
  color: var(--lp-muted);
}

.lp-layers-hero {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lp-layers-hero .lp-layer {
  padding: 6px 8px;
  font-size: 0.62rem;
}

.lp-layers-hero .lp-layer-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-hero-security-foot {
  margin: 10px 0 0;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--lp-green);
  text-align: center;
}

.lp-hero-security.all-pass .lp-hero-security-phase {
  color: var(--lp-face-success);
}

/* Premium face component */
.lp-face-premium {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 360px;
  padding: 16px;
  position: relative;
}

.lp-face-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(99, 102, 241, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.lp-face-glass {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lp-face-glass-step {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #93c5fd;
  margin-bottom: 4px;
}

.lp-face-glass-hint {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
}

.lp-face-glass-sub {
  margin: 6px 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.lp-face-pills {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.lp-face-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  transition: all 0.35s ease;
}

.lp-face-pill.on {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
  transform: scale(1.05);
}

.lp-face-pill.done {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.lp-face-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  z-index: 1;
}

.lp-face-brackets span {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(99, 102, 241, 0.7);
  animation: lpBracketPulse 2s ease-in-out infinite;
}

.lp-face-brackets span:nth-child(1) { top: 8%; left: 12%; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.lp-face-brackets span:nth-child(2) { top: 8%; right: 12%; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
.lp-face-brackets span:nth-child(3) { bottom: 8%; left: 12%; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
.lp-face-brackets span:nth-child(4) { bottom: 8%; right: 12%; border-left: none; border-top: none; border-radius: 0 0 8px 0; }

.lp-face-arc {
  position: absolute;
  width: 200px;
  height: 240px;
  transform: rotate(-90deg);
  pointer-events: none;
}

.lp-face-arc-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 4;
}

.lp-face-arc-fill {
  fill: none;
  stroke: url(#faceArcGrad);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 628;
  stroke-dashoffset: 628;
  transition: stroke-dashoffset 1.2s ease, stroke 0.5s;
}

.lp-face-premium.success .lp-face-arc-fill {
  stroke: url(#faceArcGradGreen);
}

.lp-face-oval-lg {
  width: 150px;
  height: 190px;
  border: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.6), 0 0 40px var(--lp-face-glow);
  animation: lpRingPulse 2.5s ease-in-out infinite;
}

.lp-face-premium.success .lp-face-oval-lg {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.8), 0 0 48px rgba(16, 185, 129, 0.35);
  animation: lpRingSuccess 0.6s ease;
}

.lp-face-ring-glow {
  position: absolute;
  width: 170px;
  height: 210px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.2);
  animation: lpGlowExpand 2.5s ease-out infinite;
  pointer-events: none;
}

.lp-face-premium.success .lp-face-ring-glow {
  border-color: rgba(16, 185, 129, 0.3);
}

.lp-face-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  position: relative;
  z-index: 2;
}

.lp-face-chip {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  transition: all 0.4s ease;
}

.lp-face-chip.ok {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.lp-face-match-row {
  text-align: center;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.lp-face-match-pct {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.5s, transform 0.5s;
}

.lp-face-premium.show-match .lp-face-match-pct {
  opacity: 1;
  transform: scale(1);
}

.lp-face-premium.success .lp-face-match-pct {
  background: linear-gradient(135deg, #10b981, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
}

.lp-face-success-burst {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

.lp-face-premium.success .lp-face-success-burst {
  animation: lpBurstFade 1.2s ease forwards;
}

.lp-face-success-burst::after {
  content: '✓';
  font-size: 3rem;
  color: #10b981;
  text-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
}

.lp-face-push {
  position: relative;
  z-index: 2;
  padding: 10px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9), rgba(67, 56, 202, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  font-weight: 600;
  animation: lpSlideDown 0.5s ease;
}

.lp-face-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.lp-face-compare-item {
  text-align: center;
}

.lp-face-compare-thumb {
  width: 56px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(99, 102, 241, 0.5);
  margin: 0 auto 4px;
}

.lp-face-compare-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.lp-face-compare-arrow {
  font-size: 1.2rem;
  color: #10b981;
  font-weight: 800;
}

.lp-face-compare-label {
  font-size: 0.58rem;
  color: #94a3b8;
}

.lp-face-compare-result {
  text-align: center;
  margin-top: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #10b981;
}

/* Face story section */
.lp-face-story {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.04), transparent 50%);
}

.lp-face-story-layout {
  display: grid;
  grid-template-columns: minmax(320px, 400px) 1fr;
  gap: 48px;
  align-items: start;
}

.lp-face-story-sticky {
  position: sticky;
  top: calc(var(--lp-nav-h) + 24px);
}

.lp-face-story-stage {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.lp-face-story-tablet .lp-tablet-screen {
  min-height: 420px;
}

.lp-face-scene-beat {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.lp-face-scene-beat.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 1;
}

.lp-face-story-steps .lp-story-step {
  min-height: 50vh;
}

.lp-face-story-head .lp-label {
  color: #818cf8;
}

@keyframes lpRingPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5), 0 0 32px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.8), 0 0 48px rgba(99, 102, 241, 0.35); }
}

@keyframes lpRingSuccess {
  0% { transform: scale(1); }
  40% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes lpGlowExpand {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.08); opacity: 0; }
}

@keyframes lpBracketPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes lpBurstFade {
  0% { opacity: 0; transform: scale(0.5); }
  30% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.3); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-face-oval-lg,
  .lp-face-ring-glow,
  .lp-face-brackets span,
  .lp-face-scan {
    animation: none !important;
  }
  .lp-face-arc-fill {
    transition: none !important;
  }
}

@media (max-width: 960px) {
  .lp-face-story-layout {
    grid-template-columns: 1fr;
  }

  .lp-face-story-sticky {
    position: relative;
    top: 0;
  }

  .lp-hero-top-row {
    grid-template-columns: 1fr;
  }

  .lp-mockups.lp-hero-stack {
    max-width: 360px;
  }

  .lp-face-oval-lg {
    width: 130px;
    height: 165px;
  }

  .lp-mockups.lp-hero-stack {
    max-width: 100%;
  }
}
