/**
 * PayrollXL Landing Page Styles
 * Color scheme: primary #274689, secondary #7389ae, success #4FB55D, etc.
 */

:root {
  --pxl-primary: #274689;
  --pxl-primary-rgb: 39, 70, 137;
  --pxl-secondary: #7389ae;
  --pxl-secondary-rgb: 115, 137, 174;
  --pxl-success: #4FB55D;
  --pxl-success-rgb: 79, 181, 93;
  --pxl-light: #f7fbfb;
  --pxl-dark: #343a40;
  --pxl-body: #212529;
  --pxl-hero-overlay: rgba(var(--pxl-primary-rgb), 0.75);
}

html {
  scroll-behavior: smooth;
}

.pxl-landing {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--pxl-body);
  overflow-x: hidden;
}

/* ----- Sticky Nav ----- */
.pxl-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.pxl-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.pxl-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.pxl-nav-logo {
  height: 42px;
  width: auto;
  display: block;
}

.pxl-nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pxl-nav-links a {
  color: var(--pxl-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.pxl-nav-links a:hover {
  color: var(--pxl-secondary);
  background: rgba(var(--pxl-primary-rgb), 0.06);
}

.pxl-nav-links a.active {
  color: white;
  background: var(--pxl-primary);
}

/* Current user? / Sign-in */
.pxl-nav-auth-wrap {
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(var(--pxl-primary-rgb), 0.2);
  flex-shrink: 0;
}

.pxl-nav-auth {
  position: relative;
}

.pxl-nav-auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, var(--pxl-success) 0%, #3e8f48 100%);
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.pxl-nav-auth-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--pxl-success-rgb), 0.35);
  color: white;
}

.pxl-nav-auth-trigger[aria-expanded="true"] {
  background: linear-gradient(135deg, #3e8f48 0%, var(--pxl-success) 100%);
  box-shadow: 0 4px 16px rgba(var(--pxl-success-rgb), 0.3);
}

.pxl-nav-auth-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.pxl-nav-auth-label {
  white-space: nowrap;
}

.pxl-nav-auth-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 220px;
  padding: 1rem 1.1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.pxl-nav-auth-dropdown[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pxl-nav-auth-dropdown-text {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
  color: var(--pxl-body);
}

.pxl-nav-auth-signin {
  display: inline-block;
  width: 100%;
  padding: 0.6rem 1rem;
  background: var(--pxl-primary);
  color: white !important;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.pxl-nav-auth-signin:hover {
  background: #004d7a;
  color: white;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.pxl-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--pxl-primary);
}

@media (max-width: 768px) {
  .pxl-nav-toggle { display: flex; align-items: center; justify-content: center; }
  .pxl-nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s, opacity 0.3s;
  }
  .pxl-nav-links.open {
    max-height: 380px;
    opacity: 1;
  }
  .pxl-nav-links a { padding: 0.75rem 1rem; }
  .pxl-nav-auth-wrap {
    margin-left: 0.25rem;
    padding-left: 0.25rem;
    border-left: 1px solid rgba(var(--pxl-primary-rgb), 0.15);
  }
  .pxl-nav-auth-label { display: none; }
  .pxl-nav-auth-trigger { padding: 0.5rem 0.65rem; }
  .pxl-nav-auth-dropdown {
    right: 0;
    left: auto;
  }
}

/* ----- Hero ----- */
.pxl-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pxl-primary) 0%, #004d7a 40%, var(--pxl-secondary) 100%);
  background-size: cover;
  background-position: center;
  color: white;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

.pxl-hero.has-bg-image {
  background-image: linear-gradient(var(--pxl-hero-overlay), var(--pxl-hero-overlay)), var(--pxl-hero-bg-url);
}

.pxl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.pxl-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.pxl-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: pxl-fade-in-up 0.8s ease forwards;
}

.pxl-hero .pxl-hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: pxl-fade-in-up 0.8s ease 0.2s forwards;
}

.pxl-hero .pxl-cta {
  opacity: 0;
  animation: pxl-fade-in-up 0.8s ease 0.4s forwards;
}

.pxl-btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--pxl-success);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.pxl-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 181, 93, 0.4);
  color: white;
}

.pxl-btn-outline {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.8);
  transition: background 0.2s, border-color 0.2s;
}

.pxl-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  color: white;
}

@keyframes pxl-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- Section common ----- */
.pxl-section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  scroll-margin-top: 80px;
}

#home { scroll-margin-top: 0; }

.pxl-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--pxl-primary);
  margin-bottom: 1rem;
}

.pxl-section-subtitle {
  font-size: 1.1rem;
  color: #495057;
  line-height: 1.7;
  max-width: 720px;
}

/* Reveal on scroll */
.pxl-reveal {
  opacity: 0;
  transform: translateY(30px);
}

.pxl-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ----- Features ----- */
.pxl-features {
  background: var(--pxl-light);
}

.pxl-features .pxl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pxl-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(0,0,0,0.04);
}

.pxl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(39, 70, 137, 0.12);
}

.pxl-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pxl-primary);
  margin-bottom: 0.75rem;
}

.pxl-card p {
  color: #495057;
  line-height: 1.65;
  margin: 0;
}

/* ----- About ----- */
.pxl-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.pxl-about-img {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pxl-secondary) 0%, var(--pxl-primary) 100%);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

.pxl-about-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .pxl-about { grid-template-columns: 1fr; }
}

/* ----- Why / Icon cards ----- */
.pxl-why {
  background: var(--pxl-light);
}

.pxl-why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pxl-icon-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border: 1px solid rgba(0,0,0,0.04);
}

.pxl-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(39, 70, 137, 0.1);
}

.pxl-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(var(--pxl-primary-rgb), 0.08);
  color: var(--pxl-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pxl-icon-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pxl-icon-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pxl-primary);
  margin: 0 0 0.5rem 0;
}

.pxl-icon-card p {
  color: #495057;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* ----- Pricing ----- */
.pxl-pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pxl-pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

.pxl-pricing-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.pxl-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(39, 70, 137, 0.15);
  border-color: var(--pxl-secondary);
  cursor: pointer;
}

.pxl-pricing-card.selected {
  border-color: var(--pxl-success);
  box-shadow: 0 16px 48px rgba(79, 181, 93, 0.25);
  background: linear-gradient(to bottom, rgba(79, 181, 93, 0.02), white);
}

.pxl-pricing-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pxl-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--pxl-light);
}

.pxl-pricing-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pxl-primary);
  margin-bottom: 0.25rem;
}

.pxl-pricing-price span { font-size: 1rem; font-weight: 600; color: #6c757d; }

.pxl-pricing-meta {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.pxl-pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex: 1;
}

.pxl-pricing-card li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #495057;
  font-size: 0.95rem;
}

.pxl-pricing-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pxl-success);
  font-weight: 700;
}

.pxl-pricing-note {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.75rem;
}

/* ----- Clients / Testimonials ----- */
.pxl-clients {
  background: var(--pxl-light);
}

.pxl-testimonials {
  max-width: 700px;
  margin: 2rem auto 0;
  position: relative;
}

.pxl-testimonial {
  display: none;
  padding: 2rem;
  text-align: center;
}

.pxl-testimonial.active {
  display: block;
  animation: pxl-fade-in 0.5s ease;
}

@keyframes pxl-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pxl-testimonial blockquote {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #495057;
  margin: 0 0 1.25rem 0;
  font-style: italic;
}

.pxl-testimonial .pxl-testimonial-name {
  font-weight: 700;
  color: var(--pxl-primary);
}

.pxl-testimonial .pxl-testimonial-title {
  font-size: 0.9rem;
  color: #6c757d;
}

.pxl-testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pxl-testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #dee2e6;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.pxl-testimonial-dots button:hover {
  background: var(--pxl-secondary);
}

.pxl-testimonial-dots button.active {
  background: var(--pxl-primary);
  transform: scale(1.2);
}

/* ----- Footer ----- */
.pxl-footer {
  background: var(--pxl-primary);
  color: rgba(255,255,255,0.85);
  padding: 3rem 1.5rem 2rem;
}

.pxl-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .pxl-footer-inner { grid-template-columns: 1fr; text-align: center; }
}

.pxl-footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.pxl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.pxl-footer-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.pxl-footer-links a:hover {
  color: white;
}

.pxl-footer-social {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .pxl-footer-social { justify-content: center; }
}

.pxl-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.pxl-footer-social a:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

.pxl-footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ----- Landing sign-up (agency new) ----- */
.pxl-signup-page {
  min-height: 100vh;
  background: var(--pxl-light);
  padding-top: 80px;
  padding-bottom: 3rem;
}

.pxl-signup-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.pxl-signup-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.pxl-signup-nav a {
  color: var(--pxl-primary);
  text-decoration: none;
  font-weight: 500;
}

.pxl-signup-card {
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  border: 1px solid rgba(0,0,0,0.04);
}

.pxl-signup-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pxl-primary);
  margin-bottom: 1.5rem;
}

.pxl-signup-card .form-label {
  color: var(--pxl-primary);
  font-weight: 600;
}

.pxl-signup-card input[type="text"],
.pxl-signup-card input[type="email"],
.pxl-signup-card input[type="tel"],
.pxl-signup-card select,
.pxl-signup-card textarea {
  border-radius: 10px;
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
}

.pxl-signup-card input:focus,
.pxl-signup-card select:focus {
  border-color: var(--pxl-primary);
  box-shadow: 0 0 0 3px rgba(var(--pxl-primary-rgb), 0.15);
  outline: none;
}

.pxl-signup-card .btn-primary {
  background: var(--pxl-primary);
  border-color: var(--pxl-primary);
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
}

.pxl-signup-card .btn-primary:hover {
  background: #004d7a;
  border-color: #004d7a;
}

.pxl-signup-card .btn-secondary {
  border-radius: 10px;
  color: var(--pxl-primary);
  border-color: var(--pxl-secondary);
}

.pxl-signup-card .btn-secondary:hover {
  background: rgba(var(--pxl-secondary-rgb), 0.15);
  border-color: var(--pxl-secondary);
  color: var(--pxl-primary);
}

/* Confirmation landing */
.pxl-confirmation-page {
  min-height: 100vh;
  background: var(--pxl-light);
  padding-top: 80px;
  padding-bottom: 3rem;
}

.pxl-confirmation-card {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
}

.pxl-confirmation-card .alert-success {
  background: rgba(79, 181, 93, 0.12);
  border-color: var(--pxl-success);
  color: var(--pxl-body);
  border-radius: 12px;
}

.pxl-confirmation-card .pxl-btn-primary { margin-right: 0.5rem; }
