/* ==========================================================================
   eSmartSchoolconnect - SAAS PRODUCT LANDING PAGE STYLES
   ========================================================================== */

:root {
  --lp-bg: #f8fafc;
  --lp-surface: #ffffff;
  --lp-ink: #0f172a;
  --lp-muted: #475569;
  --lp-subtle: #64748b;
  --lp-border: #e2e8f0;
  --lp-primary: #1e3a8a;
  --lp-primary-hover: #172554;
  --lp-blue: #2563eb;
  --lp-accent: #0f766e;
  --lp-amber: #d97706;
  --lp-radius: 14px;
  --lp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --lp-shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --lp-shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--lp-bg);
  color: var(--lp-ink);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--lp-ink);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

.lp-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   TOP NAVIGATION BAR
   ========================================================================== */
.lp-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lp-border);
  z-index: 1000;
  transition: box-shadow 0.25s ease;
}

.lp-navbar.scrolled {
  box-shadow: var(--lp-shadow-sm);
}

.lp-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--lp-ink);
  letter-spacing: -0.02em;
}

.lp-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-blue));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.22);
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lp-nav-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--lp-muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.lp-nav-link:hover,
.lp-nav-link.active {
  color: var(--lp-primary);
}

.lp-nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--lp-primary);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.lp-nav-link:hover::after,
.lp-nav-link.active::after {
  width: 100%;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lp-btn-primary {
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-blue));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.lp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.32);
}

.lp-btn-outline {
  background: #ffffff;
  color: var(--lp-ink);
  border-color: var(--lp-border);
}

.lp-btn-outline:hover {
  border-color: var(--lp-primary);
  color: var(--lp-primary);
  background: #f8fafc;
}

.lp-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background: #ffffff;
  color: var(--lp-ink);
  font-size: 1.15rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.lp-mobile-menu {
  display: none;
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow-md);
  padding: 16px 24px 22px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.lp-mobile-menu.open {
  display: flex;
}

.lp-mobile-menu a.lp-nav-link {
  padding: 10px 4px;
  border-bottom: 1px solid #f1f5f9;
}

.lp-mobile-menu .lp-btn {
  margin-top: 8px;
  width: 100%;
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.lp-hero {
  padding: 130px 0 88px;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.08), transparent 42%),
    radial-gradient(circle at 88% 22%, rgba(15, 118, 110, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--lp-border);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.07);
  border: 1px solid rgba(30, 58, 138, 0.14);
  color: var(--lp-primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.lp-hero-title {
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.lp-hero-title span {
  color: var(--lp-blue);
}

.lp-hero-subtitle {
  font-size: 1.06rem;
  color: var(--lp-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.lp-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.lp-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--lp-border);
}

.lp-trust-item strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: var(--lp-ink);
}

.lp-trust-item span {
  font-size: 0.8rem;
  color: var(--lp-subtle);
  font-weight: 500;
}

/* Interactive Preview Mockup Card */
.lp-preview-shell {
  background: #0f172a;
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--lp-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.lp-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lp-preview-dots {
  display: flex;
  gap: 6px;
}

.lp-preview-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.lp-preview-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 8px;
  gap: 4px;
}

.lp-preview-tab {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lp-preview-tab.active {
  background: #ffffff;
  color: var(--lp-ink);
}

.lp-preview-screen {
  background: #ffffff;
  color: var(--lp-ink);
  border-radius: 14px;
  padding: 20px;
  min-height: 290px;
}

.lp-preview-pane {
  display: none;
}

.lp-preview-pane.active {
  display: block;
  animation: lpFade 0.25s ease;
}

@keyframes lpFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.lp-mock-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--lp-border);
  margin-bottom: 14px;
}

.lp-mock-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(30, 58, 138, 0.1);
  color: var(--lp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.lp-mock-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.84rem;
}

.lp-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
}

.lp-pill.green {
  background: #dcfce7;
  color: #166534;
}

.lp-pill.amber {
  background: #fef3c7;
  color: #92400e;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
.lp-section {
  padding: 84px 0;
}

.lp-section-alt {
  background: #ffffff;
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}

.lp-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.lp-section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-blue);
  margin-bottom: 10px;
}

.lp-section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

.lp-section-header p {
  color: var(--lp-muted);
  font-size: 1rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.lp-role-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.lp-role-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  background: #ffffff;
  color: var(--lp-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.lp-role-tab.active {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.2);
}

.lp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.lp-feature-card {
  background: var(--lp-bg);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lp-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--lp-shadow-md);
  border-color: #cbd5e1;
  background: #ffffff;
}

.lp-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--lp-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.lp-feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.lp-feature-card p {
  font-size: 0.9rem;
  color: var(--lp-muted);
}

/* Ecosystem Banner (escholar.com link) */
.lp-ecosystem-banner {
  margin-top: 36px;
  padding: 26px 30px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--lp-shadow-sm);
}

.lp-ecosystem-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lp-ecosystem-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-blue));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.lp-ecosystem-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lp-blue);
  margin-bottom: 3px;
}

.lp-ecosystem-content h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
}

.lp-ecosystem-content p {
  font-size: 0.88rem;
  color: var(--lp-muted);
}

.lp-ecosystem-btn {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .lp-ecosystem-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .lp-ecosystem-content {
    align-items: flex-start;
  }
  .lp-ecosystem-btn {
    width: 100%;
  }
}

/* ==========================================================================
   PRICING SECTION (CUSTOMIZABLE PLAN)
   ========================================================================== */
.lp-pricing-card {
  max-width: 920px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  box-shadow: var(--lp-shadow-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.lp-pricing-main {
  padding: 36px;
}

.lp-pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--lp-accent);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.lp-pricing-main h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.lp-pricing-main > p {
  color: var(--lp-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.lp-check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.lp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--lp-ink);
  font-weight: 500;
}

.lp-check-list li i {
  color: #16a34a;
  margin-top: 4px;
}

.lp-pricing-aside {
  background: linear-gradient(155deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.lp-pricing-aside h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.lp-pricing-aside p {
  color: #cbd5e1;
  font-size: 0.86rem;
}

.lp-custom-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.lp-chip {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lp-chip.selected,
.lp-chip:hover {
  background: #ffffff;
  color: var(--lp-primary);
  border-color: #ffffff;
}

/* ==========================================================================
   CONTACT US SECTION
   ========================================================================== */
.lp-contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.lp-contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lp-info-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
}

.lp-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--lp-border);
  color: var(--lp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.lp-contact-form-card {
  background: #ffffff;
  border: 1px solid var(--lp-border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--lp-shadow-sm);
}

.lp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lp-field {
  margin-bottom: 14px;
}

.lp-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lp-ink);
  margin-bottom: 6px;
}

.lp-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--lp-ink);
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-input:focus {
  outline: none;
  border-color: var(--lp-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.lp-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 28px;
  font-size: 0.88rem;
}

.lp-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.lp-footer-links a:hover {
  color: #ffffff;
}

.lp-footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}

/* ==========================================================================
   MODAL POPUP (CLOSABLE VIA BUTTON, BACKDROP, ESCAPE)
   ========================================================================== */
.lp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}

.lp-modal-backdrop.open {
  display: flex;
}

.lp-modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--lp-shadow-lg);
  overflow: hidden;
  animation: lpFade 0.2s ease;
}

.lp-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--lp-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: #f8fafc;
  color: var(--lp-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lp-modal-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

.lp-modal-body {
  padding: 24px 20px;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 960px) {
  .lp-hero-grid,
  .lp-pricing-card,
  .lp-contact-grid {
    grid-template-columns: 1fr;
  }
  .lp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .lp-nav-links,
  .lp-nav-actions {
    display: none;
  }
  .lp-mobile-toggle {
    display: inline-flex;
  }
  .lp-hero {
    padding: 106px 0 60px;
  }
  .lp-trust-row,
  .lp-features-grid,
  .lp-check-list,
  .lp-form-row {
    grid-template-columns: 1fr;
  }
  .lp-pricing-main,
  .lp-pricing-aside,
  .lp-contact-form-card {
    padding: 24px;
  }
}
