/* ═══════════════════════════════════════════════════════════════
   AutoGest — Landing Page CSS
   Modern, professional design for SaaS landing
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables — Brand Identity ── */
:root {
  --l-primary: #3978d3;
  --l-primary-dark: #2c5fa8;
  --l-primary-light: #e8f0fc;
  --l-amber: #fccc00;
  --l-amber-dark: #d4aa00;
  --l-amber-light: #fff9db;
  --l-green: #84cc16;
  --l-green-dark: #6ba30e;
  --l-green-light: #f0fdd4;
  --l-red: #ff3e3e;
  --l-red-light: #fff0f0;
  --l-bg: #f9f6ec;
  --l-bg-alt: #f3efe3;
  --l-bg-warm: #f9f6ec;
  --l-bg-white: #ffffff;
  --l-bg-dark: #1a1a1a;
  --l-text: #1a1a1a;
  --l-text-light: #64748b;
  --l-text-muted: #94a3b8;
  --l-border: #e5e0d5;
  --l-border-light: #ede9de;
  --l-radius: 14px;
  --l-radius-lg: 22px;
  --l-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --l-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --l-shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --l-font: 'Red Hat Display', system-ui, -apple-system, sans-serif;
  --l-font-heading: 'Unbounded', var(--l-font);
  --l-container: 1200px;
  --l-header-h: 72px;
  --l-transition: 0.2s ease;

  /* Gradientes corporativos */
  --l-gradient-brand: linear-gradient(135deg, #3978d3, #fccc00);
  --l-gradient-warm: linear-gradient(135deg, #ff3e3e, #fccc00);
  --l-gradient-cool: linear-gradient(135deg, #3978d3, #84cc16);
  --l-gradient-energy: linear-gradient(135deg, #ff3e3e, #3978d3);
  --l-gradient-full: linear-gradient(135deg, #3978d3, #84cc16, #fccc00, #ff3e3e);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--l-header-h); }

body {
  font-family: var(--l-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--l-text);
  background: var(--l-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Brand semantic color utilities */
.l-text-blue { color: var(--l-primary); }
.l-text-yellow { color: var(--l-amber); }
.l-text-green { color: var(--l-green); }
.l-text-red { color: var(--l-red); }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--l-primary); text-decoration: none; transition: color var(--l-transition); }
a:hover { color: var(--l-primary-dark); }
ul { list-style: none; }

/* ── Container ── */
.l-container {
  max-width: var(--l-container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.l-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--l-font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--l-transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.l-btn-primary {
  background: linear-gradient(135deg, #3978d3, #4a8be0);
  color: #fff;
  box-shadow: 0 4px 14px rgba(57,120,211,0.25);
}
.l-btn-primary:hover {
  background: linear-gradient(135deg, #2c5fa8, #3978d3);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57,120,211,0.4);
}

.l-btn-amber {
  background: linear-gradient(135deg, #fccc00, #ffe04a);
  color: var(--l-text);
  box-shadow: 0 4px 14px rgba(252,204,0,0.3);
}
.l-btn-amber:hover {
  background: linear-gradient(135deg, #d4aa00, #fccc00);
  color: var(--l-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(252,204,0,0.5);
}

.l-btn-ghost {
  background: transparent;
  color: var(--l-text);
  border: 1px solid var(--l-border);
}
.l-btn-ghost:hover {
  background: var(--l-bg-alt);
  border-color: var(--l-text-muted);
  color: var(--l-text);
}

.l-btn-outline {
  background: transparent;
  color: var(--l-primary);
  border: 2px solid var(--l-primary);
}
.l-btn-outline:hover {
  background: linear-gradient(135deg, #3978d3, #4a8be0);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(57,120,211,0.25);
}

.l-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1.0625rem;
  border-radius: 12px;
}

.l-btn-sm {
  padding: 0.4375rem 0.875rem;
  font-size: 0.8125rem;
}

.l-btn-block { width: 100%; }

/* ── Header ── */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--l-header-h);
  background: rgba(249,246,236,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all 0.3s ease;
}

.l-header.scrolled {
  border-bottom-color: var(--l-border);
  box-shadow: 0 2px 12px rgba(57,120,211,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

.l-header > .l-container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.l-logo {
  font-family: var(--l-font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--l-text);
  text-decoration: none;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.l-logo span { color: var(--l-text); }
.l-logo:hover { color: var(--l-text); }

.l-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.l-nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--l-text-light);
  border-radius: 8px;
  transition: all var(--l-transition);
  text-decoration: none;
}
.l-nav-link:hover {
  color: var(--l-text);
  background: var(--l-bg-alt);
}
.l-nav-link.active {
  color: var(--l-primary);
  font-weight: 600;
}

.l-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

/* Login dropdown */
.l-login-trigger {
  position: relative;
}

.l-login-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: var(--l-radius);
  box-shadow: var(--l-shadow-lg);
  border: 1px solid var(--l-border);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 100;
}

.l-login-trigger.open .l-login-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.l-form-group {
  margin-bottom: 0.75rem;
}
.l-form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--l-text);
  margin-bottom: 0.25rem;
}
.l-form-group input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: var(--l-font);
  font-size: 0.875rem;
  border: 1px solid var(--l-border);
  border-radius: 8px;
  outline: none;
  transition: border-color var(--l-transition);
}
.l-form-group input:focus {
  border-color: var(--l-primary);
  box-shadow: 0 0 0 3px rgba(57,120,211,0.1);
}

.l-login-links {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}
.l-login-links a { color: var(--l-primary); }

/* Mobile toggle */
.l-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.l-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--l-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Sections ── */
.l-section {
  padding: 5rem 0;
}
.l-section-alt {
  background: #fff;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #3978d3, #84cc16, #fccc00, #ff3e3e) 1;
}
.l-section-warm {
  background: var(--l-bg-warm);
}
.l-section-dark {
  background: var(--l-bg-dark);
  color: var(--l-bg);
}

.l-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.l-badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #3978d3, #4a8be0);
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(57,120,211,0.2);
}

.l-section-header h2 {
  font-family: var(--l-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--l-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.l-section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #3978d3, #fccc00);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.l-section-header p {
  font-size: 1.125rem;
  color: var(--l-text-light);
  line-height: 1.7;
}

/* ── Hero ── */
.l-hero {
  padding-top: calc(var(--l-header-h) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
  background: linear-gradient(170deg, #f9f6ec 0%, #e8f0fc 40%, #dce8f7 70%, #f9f6ec 100%);
  position: relative;
  overflow: hidden;
}

.l-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3978d3, #84cc16, #fccc00, #ff3e3e);
  z-index: 2;
}

.l-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252,204,0,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.l-hero h1 {
  font-family: var(--l-font-heading);
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--l-text);
  max-width: 800px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.03em;
}

.l-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #3978d3 0%, #2c5fa8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.l-hero .l-lead {
  font-size: 1.25rem;
  color: var(--l-text-light);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.l-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.l-trust-badges {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.l-trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--l-text-light);
  background: rgba(255,255,255,0.7);
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  border: 1px solid rgba(57,120,211,0.12);
}

.l-trust-badge svg {
  flex-shrink: 0;
}

/* ── Grid ── */
.l-grid {
  display: grid;
  gap: 1.5rem;
}
.l-grid-2 { grid-template-columns: repeat(2, 1fr); }
.l-grid-3 { grid-template-columns: repeat(3, 1fr); }
.l-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Cards ── */
.l-card {
  background: #fff;
  border: 1px solid var(--l-border-light);
  border-left: 4px solid #3978d3;
  border-radius: var(--l-radius);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.l-card:nth-child(2) { border-left-color: #fccc00; }
.l-card:nth-child(3) { border-left-color: #84cc16; }
.l-card:nth-child(4) { border-left-color: #ff3e3e; }
.l-card:nth-child(5) { border-left-color: #3978d3; }
.l-card:nth-child(6) { border-left-color: #fccc00; }

.l-card:hover {
  border-color: rgba(57,120,211,0.3);
  border-left-width: 4px;
  box-shadow: 0 8px 24px rgba(57,120,211,0.15);
  transform: translateY(-5px);
}

.l-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.l-card-icon-blue {
  background: linear-gradient(135deg, #e8f0fc, #c5d9f2);
  color: var(--l-primary);
}

.l-card-icon-amber {
  background: linear-gradient(135deg, #fff9db, #ffee8a);
  color: var(--l-amber-dark);
}

.l-card-icon-green {
  background: linear-gradient(135deg, #f0fdd4, #d4ed9f);
  color: var(--l-green-dark);
}

.l-card-icon-red {
  background: linear-gradient(135deg, #fff0f0, #ffc9c9);
  color: var(--l-red);
}

.l-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--l-text);
  margin-bottom: 0.5rem;
}

.l-card p {
  font-size: 0.9375rem;
  color: var(--l-text-light);
  line-height: 1.6;
}

.l-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--l-primary);
  margin-top: 0.75rem;
}

/* ── Steps ── */
.l-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.l-step {
  text-align: center;
  position: relative;
}

.l-step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3978d3, #4a8be0);
  color: #fff;
  font-family: var(--l-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(57,120,211,0.3);
}

.l-step:nth-child(2) .l-step-number {
  background: linear-gradient(135deg, #fccc00, #ffe04a);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(252,204,0,0.35);
}

.l-step:nth-child(3) .l-step-number {
  background: linear-gradient(135deg, #84cc16, #9ae02e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(132,204,22,0.35);
}

.l-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.l-step p {
  font-size: 0.9375rem;
  color: var(--l-text-light);
}

/* ── Pricing ── */
.l-pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.l-toggle {
  width: 52px;
  height: 28px;
  background: var(--l-border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background var(--l-transition);
}
.l-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--l-transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.l-toggle.active {
  background: linear-gradient(135deg, #3978d3, #4a8be0);
}
.l-toggle.active::after {
  transform: translateX(24px);
}

.l-save-badge {
  background: var(--l-green-light);
  color: var(--l-green-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 100px;
}

.l-pricing-card {
  background: #fff;
  border: 2px solid var(--l-border-light);
  border-radius: var(--l-radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  border-top: 4px solid #84cc16;
}

.l-pricing-card:nth-child(2) { border-top-color: #3978d3; }
.l-pricing-card:nth-child(3) { border-top-color: #fccc00; }

.l-pricing-card:hover {
  border-color: var(--l-border);
  border-top-width: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.l-pricing-card.popular {
  border-color: #3978d3;
  box-shadow: 0 10px 40px rgba(57,120,211,0.15), 0 0 0 1px rgba(57,120,211,0.1);
  transform: scale(1.03);
}

.l-pricing-card.popular::before {
  content: 'M\00e1s popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #3978d3, #4a8be0);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(57,120,211,0.3);
}

.l-plan-name {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--l-text-muted);
  margin-bottom: 0.5rem;
}

.l-price {
  font-family: var(--l-font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--l-text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.l-price small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--l-text-muted);
}

.l-price-desc {
  font-size: 0.9375rem;
  color: var(--l-text-light);
  margin-bottom: 1.5rem;
}

.l-pricing-features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.l-pricing-features li {
  padding: 0.4rem 0;
  font-size: 0.9375rem;
  color: var(--l-text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.l-pricing-features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2384cc16' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/contain;
  margin-top: 2px;
}

.l-pricing-features li strong {
  font-weight: 600;
}

/* ── FAQ ── */
.l-faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.l-faq-item {
  border-bottom: 1px solid var(--l-border-light);
}

.l-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 0;
  font-family: var(--l-font);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--l-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color var(--l-transition);
}

.l-faq-question:hover {
  color: var(--l-primary);
}

.l-faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3978d3, #4a8be0);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.l-faq-item.open .l-faq-question::after {
  content: '\2212';
  background: linear-gradient(135deg, #ff3e3e, #ff6b6b);
}

.l-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.l-faq-item.open .l-faq-answer {
  max-height: 300px;
}

.l-faq-answer-inner {
  padding-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: var(--l-text-light);
  line-height: 1.7;
}

/* ── CTA Section ── */
.l-cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, #2c5fa8 0%, #3978d3 40%, #4a8be0 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.l-cta::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(252,204,0,0.2);
  pointer-events: none;
}

.l-cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -30px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(132,204,22,0.15);
  pointer-events: none;
}

.l-cta h2 {
  font-family: var(--l-font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.l-cta p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.l-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Demo form inside CTA */
.l-demo-form {
  max-width: 500px;
  margin: 2rem auto 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--l-radius);
  padding: 1.5rem;
}

.l-demo-form h4 {
  color: #fff;
  font-size: 1.0625rem;
  margin-bottom: 1rem;
}

.l-demo-form .l-demo-fields {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.l-demo-form input {
  flex: 1;
  min-width: 140px;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--l-font);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--l-transition);
}

.l-demo-form input::placeholder {
  color: rgba(255,255,255,0.4);
}

.l-demo-form input:focus {
  border-color: rgba(255,255,255,0.5);
}

.l-demo-msg {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #a7f3d0;
  display: none;
}

/* ── Footer ── */
.l-footer {
  background: var(--l-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #3978d3, #84cc16, #fccc00, #ff3e3e) 1;
}

.l-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 3fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.l-footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.l-logo-footer {
  font-size: 1.375rem;
}
.l-logo-footer, .l-logo-footer:hover {
  color: #fff;
}

.l-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.l-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--l-transition);
}
.l-social-link:hover {
  background: linear-gradient(135deg, rgba(57,120,211,0.3), rgba(252,204,0,0.3));
  color: #fff;
}

.l-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.l-footer-col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.l-footer-col li {
  margin-bottom: 0.5rem;
}

.l-footer-col a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--l-transition);
}
.l-footer-col a:hover {
  color: #fff;
}

.l-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

/* ── Alert ── */
.l-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.l-alert-success { background: var(--l-green-light); color: #166534; border-left: 3px solid var(--l-green); }
.l-alert-danger { background: var(--l-red-light); color: #991b1b; border-left: 3px solid var(--l-red); }
.l-alert-warning { background: var(--l-amber-light); color: #92400e; border-left: 3px solid var(--l-amber); }
.l-alert-info { background: var(--l-primary-light); color: #1e40af; border-left: 3px solid var(--l-primary); }

/* ── Cookie Banner ── */
.l-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--l-bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 1rem 1.5rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}

.l-cookie-text { flex: 1; min-width: 280px; }
.l-cookie-text a { color: var(--l-primary); text-decoration: underline; }
.l-cookie-actions { display: flex; gap: 0.5rem; }

/* ── Problems Grid (Home) ── */
.l-problems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.l-problem {
  background: #fff;
  border: 1px solid var(--l-border-light);
  border-radius: var(--l-radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.3s ease;
  border-left: 4px solid #ff3e3e;
}

.l-problem:nth-child(2) { border-left-color: #fccc00; }
.l-problem:nth-child(3) { border-left-color: #3978d3; }
.l-problem:nth-child(4) { border-left-color: #84cc16; }

.l-problem:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.l-problem-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe0e0, #ffc4c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.l-problem:nth-child(2) .l-problem-icon { background: linear-gradient(135deg, #fff9db, #ffee8a); }
.l-problem:nth-child(3) .l-problem-icon { background: linear-gradient(135deg, #dce8f7, #b8d4f0); }
.l-problem:nth-child(4) .l-problem-icon { background: linear-gradient(135deg, #e8f5d0, #cce99f); }

.l-problem h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--l-text);
  margin-bottom: 0.25rem;
}

.l-problem p {
  font-size: 0.875rem;
  color: var(--l-text-light);
  line-height: 1.5;
}

/* ── Features page - Feature detail ── */
.l-feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.l-feature-detail:nth-child(even) {
  direction: rtl;
}
.l-feature-detail:nth-child(even) > * {
  direction: ltr;
}

.l-feature-detail h3 {
  font-family: var(--l-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.l-feature-detail p {
  font-size: 1rem;
  color: var(--l-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.l-feature-list {
  list-style: none;
}

.l-feature-list li {
  padding: 0.3rem 0;
  font-size: 0.9375rem;
  color: var(--l-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.l-feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233978d3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/contain;
  flex-shrink: 0;
}

.l-feature-visual {
  background: linear-gradient(135deg, rgba(57,120,211,0.04), rgba(252,204,0,0.04), rgba(132,204,22,0.04));
  border-radius: var(--l-radius-lg);
  padding: 2rem;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--l-border-light);
}

.l-feature-visual-icon {
  font-size: 4rem;
  opacity: 0.6;
}

/* ── Stats row ── */
.l-stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  padding: 2.5rem 0;
  flex-wrap: wrap;
}

.l-stat {
  text-align: center;
}

.l-stat-number {
  font-family: var(--l-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #3978d3, #2c5fa8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.l-stat-label {
  font-size: 0.875rem;
  color: var(--l-text-muted);
  margin-top: 0.25rem;
}

/* ── Breadcrumb ── */
.l-breadcrumb {
  padding: calc(var(--l-header-h) + 1.5rem) 0 0;
  font-size: 0.875rem;
  color: var(--l-text-muted);
}

.l-breadcrumb a {
  color: var(--l-text-muted);
}
.l-breadcrumb a:hover {
  color: var(--l-primary);
}

.l-breadcrumb span {
  margin: 0 0.5rem;
}

/* ── Colorful section backgrounds (brand palette) ── */
.l-section-blue {
  background: #3978d3;
  color: #fff;
}
.l-section-blue h2,
.l-section-blue h3,
.l-section-blue h4 { color: #fff; }
.l-section-blue p,
.l-section-blue .l-section-header p { color: rgba(255,255,255,0.85); }
.l-section-blue .l-badge { background: rgba(255,255,255,0.2); color: #fff; }

.l-section-yellow {
  background: #fccc00;
  color: #1a1a1a;
}
.l-section-yellow h2,
.l-section-yellow h3 { color: #1a1a1a; }
.l-section-yellow p { color: rgba(26,26,26,0.75); }

.l-section-green {
  background: #84cc16;
  color: #1a1a1a;
}
.l-section-green h2,
.l-section-green h3 { color: #1a1a1a; }

.l-section-red {
  background: #ff3e3e;
  color: #fff;
}
.l-section-red h2,
.l-section-red h3 { color: #fff; }
.l-section-red p { color: rgba(255,255,255,0.9); }

/* ── Interactive card animations ── */

/* Flip card */
.l-flip-card {
  perspective: 1000px;
  cursor: pointer;
  min-height: 200px;
}
.l-flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}
.l-flip-card:hover .l-flip-card-inner,
.l-flip-card.flipped .l-flip-card-inner {
  transform: rotateY(180deg);
}
.l-flip-card-front,
.l-flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backface-visibility: hidden;
  border-radius: var(--l-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.l-flip-card-front {
  background: #fff;
  text-align: center;
  align-items: center;
  gap: 0.75rem;
}
.l-flip-card-back {
  background: #fff;
  transform: rotateY(180deg);
}

/* Tilt / lift on hover */
.l-tilt-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.l-tilt-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Expandable card */
.l-expand-card {
  cursor: pointer;
  transition: all 0.3s ease;
}
.l-expand-card .l-expand-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding-top: 0;
}
.l-expand-card.expanded .l-expand-content {
  max-height: 300px;
  padding-top: 0.75rem;
}
.l-expand-card .l-expand-icon {
  transition: transform 0.3s ease;
  display: inline-block;
}
.l-expand-card.expanded .l-expand-icon {
  transform: rotate(45deg);
}

/* Scale on hover (for pricing) */
.l-scale-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.l-scale-card:hover {
  transform: scale(1.03);
  box-shadow: var(--l-shadow-lg);
}

/* Scroll reveal animation */
.l-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.l-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.l-reveal-delay-1 { transition-delay: 0.1s; }
.l-reveal-delay-2 { transition-delay: 0.2s; }
.l-reveal-delay-3 { transition-delay: 0.3s; }
.l-reveal-delay-4 { transition-delay: 0.4s; }

/* Stat counter */
.l-stat-counter {
  font-family: var(--l-font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

/* Left color border for feature cards */
.l-border-blue { border-left: 4px solid #3978d3 !important; }
.l-border-yellow { border-left: 4px solid #fccc00 !important; }
.l-border-green { border-left: 4px solid #84cc16 !important; }
.l-border-red { border-left: 4px solid #ff3e3e !important; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .l-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .l-feature-detail { grid-template-columns: 1fr; gap: 2rem; }
  .l-feature-detail:nth-child(even) { direction: ltr; }
  .l-footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .l-hero h1 { font-size: 2.25rem; }
  .l-hero .l-lead { font-size: 1.0625rem; }
  .l-section { padding: 3.5rem 0; }
  .l-section-header h2 { font-size: 1.75rem; }
  .l-grid-2, .l-grid-3 { grid-template-columns: 1fr; }
  .l-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .l-problems { grid-template-columns: 1fr; }
  .l-stats { gap: 2rem; }
  .l-stat-number { font-size: 2rem; }

  .l-pricing-card.popular { transform: none; }

  .l-nav {
    position: fixed;
    top: var(--l-header-h);
    left: 0;
    right: 0;
    background: var(--l-bg);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--l-border);
    box-shadow: var(--l-shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .l-nav.open {
    transform: translateY(0);
  }

  .l-nav-link {
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 1rem;
  }

  .l-mobile-toggle {
    display: flex;
  }

  .l-header-actions .l-login-trigger {
    display: none;
  }

  .l-nav::after {
    content: '';
    display: block;
    padding: 0.5rem 0;
    border-top: 1px solid var(--l-border);
    margin-top: 0.5rem;
  }

  /* Add login link in mobile nav */
  .l-nav .l-nav-mobile-login {
    display: block;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--l-primary);
  }

  .l-footer-links { grid-template-columns: repeat(2, 1fr); }
  .l-footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .l-cta h2 { font-size: 1.75rem; }

  .l-login-dropdown { width: 290px; right: -4rem; }
}

@media (max-width: 480px) {
  .l-hero h1 { font-size: 1.875rem; }
  .l-hero-actions { flex-direction: column; align-items: center; }
  .l-hero-actions .l-btn { width: 100%; }
  .l-container { padding: 0 1rem; }
  .l-footer-links { grid-template-columns: 1fr; }
  .l-pricing-card { padding: 1.5rem; }
  .l-demo-form .l-demo-fields { flex-direction: column; }
}
