/**
 * LegalCTL Landing — design.pdf
 * Navbar, hero, sections, pricing, testimonials, FAQ, CTA.
 */

/* ----- Navbar (sticky, transparent over hero → white after scroll) ----- */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: 72px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.landing-nav.is-transparent {
  background: transparent;
  box-shadow: none;
}
/* Scrolled: navy glass — matches brand theme; avoids harsh white bar */
.landing-nav.is-scrolled {
  background: rgba(27, 42, 74, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.22);
}
.landing-nav.is-scrolled .landing-nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}
.landing-nav.is-scrolled .landing-nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
.landing-nav.is-scrolled .landing-nav-logo {
  color: #fff !important;
}
.landing-nav.is-scrolled .landing-mobile-toggle {
  color: #fff !important;
}
.landing-nav.is-scrolled .landing-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}
@media (max-width: 767px) {
  .landing-nav { height: 64px; }
}

/* Full-screen mobile drawer: same layered gradient + mesh feel as landing hero */
.landing-mobile-menu {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(212, 160, 23, 0.12), transparent 50%),
    var(--lc-gradient-hero);
  -webkit-overflow-scrolling: touch;
}
.landing-mobile-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 28%, rgba(15, 23, 42, 0.25) 100%);
  z-index: 0;
}
.landing-mobile-menu > * {
  position: relative;
  z-index: 1;
}

/* ----- Hero ----- */
.landing-hero {
  position: relative;
  background: var(--lc-gradient-hero);
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  color: #fff;
}
.landing-hero .typed-wrap { min-height: 1.5em; }
.landing-hero .typed-cursor { color: var(--lc-gold); }

/* ----- Section spacing ----- */
.landing-section { padding: 4rem 0; }
@media (min-width: 768px) {
  .landing-section { padding: 5rem 0; }
}

/* ----- Pain cards ----- */
.landing-pain-card {
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  border: 1px solid var(--lc-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.landing-pain-card:hover {
  box-shadow: var(--lc-shadow-md);
  transform: translateY(-2px);
}

/* ----- Stats (navy bg, animated numbers) ----- */
.landing-stats { background: var(--lc-navy); color: #fff; }

/* ----- How it works: dashed connector ----- */
.landing-steps-connector {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  border-top: 2px dashed var(--lc-border);
  transform: translateY(-50%);
  pointer-events: none;
}

/* ----- Pricing cards (Vanilla Tilt) ----- */
.landing-pricing-card {
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow-md);
  transition: transform 0.25s ease;
}

/* ----- Testimonials Swiper ----- */
.landing-testimonials .swiper-pagination-bullet-active { background: var(--lc-accent); }

/* ----- FAQ accordion ----- */
.landing-faq-item { border-bottom: 1px solid var(--lc-border); }
.landing-faq-item:last-child { border-bottom: none; }
.landing-faq-item.is-open .landing-faq-body { display: block; }

/* ----- Final CTA ----- */
.landing-cta-final { background: var(--lc-gradient-hero); color: #fff; }

/* ----- Mega menu ----- */
.landing-mega-wrap { position: relative; }
.landing-mega-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  padding-top: 0.5rem;
  z-index: 1040;
  width: min(980px, calc(100vw - 2rem));
}
.landing-mega-inner {
  background: #fff;
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow-lg);
  border: 1px solid var(--lc-border);
  overflow: hidden;
}
.landing-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .landing-mega-grid {
    grid-template-columns: 1fr minmax(220px, 280px);
  }
  .landing-mega-grid--solutions {
    grid-template-columns: minmax(560px, 1fr) minmax(260px, 320px);
  }
  .landing-mega-grid--compact {
    grid-template-columns: 1fr;
  }
  .landing-mega-grid--resources {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
}
.landing-mega-panel--resources {
  width: min(1140px, calc(100vw - 2rem));
}
.landing-mega-resources-col {
  padding: 1.2rem 1.45rem 1.4rem;
  border-bottom: 1px solid var(--lc-border);
}
@media (min-width: 768px) {
  .landing-mega-resources-col {
    border-bottom: none;
    border-right: 1px solid var(--lc-border);
  }
  .landing-mega-resources-col--accent {
    border-right: none;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  }
}
.landing-mega-resources-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lc-muted);
  margin-bottom: 0.85rem;
}
.landing-mega-links--resources {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
}
@media (min-width: 640px) {
  .landing-mega-links--resources {
    display: flex;
    flex-direction: column;
  }
}
.landing-mega-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding: 1rem;
}
@media (min-width: 640px) {
  .landing-mega-links:not(.landing-mega-links--compact) {
    grid-template-columns: 1fr 1fr;
    padding: 1.25rem;
  }
}
.landing-mega-link {
  display: flex;
  gap: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--lc-radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.landing-mega-link:hover {
  background: var(--lc-surface-alt);
}
.landing-mega-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--lc-surface-alt);
  color: var(--lc-accent);
  font-size: 1.25rem;
}
.landing-mega-link-title {
  display: block;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--lc-text);
}
.landing-mega-link-desc {
  display: block;
  font-size: 0.86rem;
  color: var(--lc-muted);
  margin-top: 0.125rem;
  line-height: 1.45;
}
.landing-mega-feature {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid var(--lc-border);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  transition: background 0.2s ease;
}
@media (min-width: 768px) {
  .landing-mega-feature {
    border-top: none;
    border-left: 1px solid var(--lc-border);
  }
}
.landing-mega-feature:hover {
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}
.landing-mega-feature-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 200px;
}
.landing-mega-feature-text {
  padding: 1rem 1.25rem 1.25rem;
}
.landing-mega-feature-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lc-accent);
}
.landing-mega-promo {
  padding: 1.15rem 1.15rem 1.25rem;
  border-top: 1px solid var(--lc-border);
  background: var(--lc-surface);
}
@media (min-width: 768px) {
  .landing-mega-promo {
    border-top: none;
    border-left: 1px solid var(--lc-border);
  }
}

.landing-mega-solutions-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0.95rem;
}
@media (min-width: 640px) {
  .landing-mega-solutions-main {
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    padding: 1.15rem;
  }
}
.landing-mega-solutions-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.landing-mega-promo-list li {
  line-height: 1.3;
}
.landing-mega-promo-docs {
  display: block;
  margin-top: 0.85rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--lc-border);
}
.landing-mega-promo-docs img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
}

.landing-mega-links--resources .landing-mega-link {
  min-height: 78px;
  align-items: flex-start;
}

.landing-nav.is-scrolled .landing-mega-trigger {
  color: rgba(255, 255, 255, 0.9) !important;
}
.landing-nav.is-scrolled .landing-mega-trigger:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}
.landing-nav.is-scrolled .landing-nav-cta {
  background: #fff;
  color: var(--lc-navy);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.landing-nav.is-scrolled .landing-nav-cta:hover {
  background: rgba(255, 255, 255, 0.95);
  opacity: 1;
}

/* ----- Hero (pro) ----- */
.landing-hero--pro {
  position: relative;
  overflow: hidden;
}
.landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(212, 160, 23, 0.12), transparent 50%),
    var(--lc-gradient-hero);
  pointer-events: none;
}
.landing-hero-float {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ----- Dark section + glass ----- */
.landing-section-dark {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
  color: #fff;
}
.landing-glass-card {
  width: 100%;
  border-radius: var(--lc-radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

/* ----- AI tilt ----- */
.landing-ai-tilt {
  transform: perspective(1200px) rotateX(4deg) rotateY(-6deg);
  transition: transform 0.4s ease;
}
@media (hover: hover) {
  .landing-ai-tilt:hover {
    transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
  }
}

/* ----- Testimonials grid ----- */
.landing-t-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .landing-t-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .landing-t-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }
  .landing-t-grid .landing-t-card:first-child {
    grid-column: span 1;
  }
}
.landing-t-card {
  margin: 0;
  border-radius: var(--lc-radius);
  border: 1px solid var(--lc-border);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--lc-shadow-sm);
}
.landing-t-card blockquote {
  font-size: 0.95rem;
  line-height: 1.55;
}
.landing-t-card--mint {
  background: linear-gradient(145deg, #ecfdf5 0%, #f0fdfa 100%);
  border-color: #a7f3d0;
}
.landing-t-card--violet {
  background: linear-gradient(145deg, #f5f3ff 0%, #faf5ff 100%);
  border-color: #ddd6fe;
}

/* ----- Landscape CTA ----- */
.landing-cta-landscape {
  padding-left: 0;
  padding-right: 0;
}

/* ----- FAQ caret ----- */
.landing-faq-caret {
  transition: transform 0.2s ease;
}
.landing-faq-item.is-open .landing-faq-caret {
  transform: rotate(180deg);
}

/* ----- Conversion / niche refresh (LegalCTL) ----- */
:root {
  --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.15);
  --lc-radius-card: 20px;
  --lc-ease-standard: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-hero-mesh {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.45;
}
.landing-hero-mesh::before,
.landing-hero-mesh::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  filter: blur(80px);
}
.landing-hero-mesh::before {
  top: -10%;
  left: -15%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, transparent 70%);
}
.landing-hero-mesh::after {
  bottom: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.25) 0%, transparent 70%);
}

.landing-hero .landing-hero-bg {
  position: absolute;
  inset: 0;
}

.landing-social-ticker {
  overflow: hidden;
}
.landing-social-ticker-track {
  display: flex;
  width: max-content;
  animation: landing-marquee 40s linear infinite;
}
.landing-social-ticker:hover .landing-social-ticker-track {
  animation-play-state: paused;
}
@keyframes landing-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.landing-exit-modal.is-open {
  display: flex !important;
}
.landing-scroll-cta.is-visible {
  display: block !important;
  transform: translateY(0);
}

.landing-bill-btn {
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #475569;
}
.landing-bill-btn--active {
  background: var(--lc-navy) !important;
  color: #fff !important;
  border-color: var(--lc-navy) !important;
}

.landing-how-tab--active {
  border-color: var(--lc-accent) !important;
  color: var(--lc-navy) !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

/* Reserve space for dynamic/animated content to reduce layout shift */
.landing-hero-stats {
  min-height: 84px;
}
.landing-social-ticker {
  min-height: 52px;
}
.landing-t-grid {
  min-height: 420px;
}
@media (max-width: 639px) {
  .landing-t-grid {
    min-height: 0;
  }
}

/* ----- Footer trust + legal polish ----- */
.landing-footer-trust-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.95rem 1rem;
}
.landing-footer-trust-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e2e8f0;
}
.landing-footer-trust-copy {
  margin-top: 0.45rem;
  color: #94a3b8;
  font-size: 0.78rem;
  line-height: 1.45;
}
.landing-footer-badge-row,
.landing-footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
.landing-footer-badge,
.landing-pay-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.2rem 0.55rem;
  color: #cbd5e1;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.landing-pay-chip {
  color: #e2e8f0;
  font-size: 0.7rem;
}

/* ----- Cookie consent ----- */
.lc-cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1200;
}
.lc-cookie-inner {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.92);
  color: #e2e8f0;
  box-shadow: 0 16px 48px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(10px);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
@media (min-width: 900px) {
  .lc-cookie-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}
.lc-cookie-title {
  margin: 0;
  font-weight: 700;
  color: #f8fafc;
}
.lc-cookie-text {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd5e1;
}
.lc-cookie-text a {
  color: #93c5fd;
  text-decoration: underline;
}
.lc-cookie-subtext {
  margin: 0.35rem 0 0;
  font-size: 0.73rem;
  color: #94a3b8;
}
.lc-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.lc-cookie-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.lc-cookie-btn-primary {
  background: var(--lc-accent);
  color: #fff;
}
.lc-cookie-btn-outline {
  border-color: rgba(148, 163, 184, 0.55);
  background: transparent;
  color: #e2e8f0;
}
.lc-cookie-btn-muted {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.lc-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
}
.lc-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
}
.lc-cookie-modal-card {
  position: relative;
  max-width: 620px;
  margin: 9vh auto 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--lc-border);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.28);
  padding: 1rem 1rem 0.9rem;
}
.lc-cookie-modal-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--lc-text);
}
.lc-cookie-modal-copy {
  margin: 0.45rem 0 0.8rem;
  font-size: 0.86rem;
  color: var(--lc-muted);
}
.lc-cookie-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--lc-border);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.55rem;
}
.lc-cookie-row small {
  display: block;
  margin-top: 0.2rem;
  color: var(--lc-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}
.lc-cookie-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.lc-cookie-modal-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.lc-cookie-modal-btns {
  display: flex;
  gap: 0.55rem;
}
.lc-cookie-link {
  font-size: 0.79rem;
  color: var(--lc-accent);
  text-decoration: underline;
}
