:root {
  --primary: #5b1a62;
  --primary-dark: #43124a;
  --accent: #d0153f;
  --accent-dark: #b01234;
  --cyan: #0891b2;
  --orange: #ea580c;
  --green: #059669;
  --blue: #2563eb;
  --violet: #7c3aed;
  --ink: #0e0e0f;
  --muted: #6b6b70;
  --bg: #ffffff;
  --bg-soft: #f8f5fa;
  --border: #e8e4ec;
  --shadow: 0 12px 40px rgba(91, 26, 98, 0.12);
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 228, 236, 0.8);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(91, 26, 98, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--primary);
}

.brand img { height: 36px; width: auto; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  padding: 0.5rem 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #3a3a40;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  position: relative;
}

.nav-menu a:hover {
  color: var(--accent);
  background: rgba(208, 21, 63, 0.06);
  transform: translateY(-1px);
}

.nav-menu a.nav-active {
  color: var(--primary);
  background: rgba(91, 26, 98, 0.08);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #e11d48, var(--violet));
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 8px 24px rgba(208, 21, 63, 0.3);
  animation: gradientShift 4s ease infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-dark), #be123c, #6d28d9);
  box-shadow: 0 12px 28px rgba(208, 21, 63, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--ink);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  background: rgba(14, 14, 15, 0.45);
  z-index: 99;
}

.mobile-nav.open { display: block; animation: fadeIn 0.25s ease; }

.mobile-panel {
  background: #fff;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
}

/* Hero */
.hero {
  position: relative;
  padding: 8.5rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(91, 26, 98, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(208, 21, 63, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(37, 99, 235, 0.08), transparent 50%),
    linear-gradient(180deg, #fdfbff 0%, #fff8fb 50%, #fff 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
  width: 320px;
  height: 320px;
  background: rgba(124, 58, 237, 0.25);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 240px;
  height: 240px;
  background: rgba(208, 21, 63, 0.2);
  bottom: 15%;
  left: -5%;
  animation-delay: -3s;
}

.hero-blob-3 {
  width: 180px;
  height: 180px;
  background: rgba(8, 145, 178, 0.2);
  top: 40%;
  right: 30%;
  animation-delay: -5s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: linear-gradient(135deg, rgba(91, 26, 98, 0.1), rgba(208, 21, 63, 0.08));
  border: 1px solid rgba(91, 26, 98, 0.2);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
  animation: pulseBadge 2.5s ease-in-out infinite;
}

.hero-badge i { color: var(--accent); animation: sparkle 1.5s ease-in-out infinite; }

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--violet), var(--cyan));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 5s ease infinite;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-bottom: 2rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  border: 1px solid rgba(232, 228, 236, 0.9);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-trust span:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(91, 26, 98, 0.1);
}

.hero-trust i { color: var(--accent); }

.hero-trust span:nth-child(2) i { color: var(--blue); }
.hero-trust span:nth-child(3) i { color: var(--green); }

.hero-visual { position: relative; }

.hero-card {
  background: linear-gradient(145deg, #fff, #faf7fc);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  overflow: hidden;
  position: relative;
  animation: floatCard 5s ease-in-out infinite;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--violet), var(--cyan));
  background-size: 300% 100%;
  animation: gradientShift 4s linear infinite;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.hero-card-header strong { color: var(--primary); font-size: 0.9375rem; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}

.metric-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.metric-value { font-size: 1.375rem; font-weight: 800; color: var(--primary); }

.metric.accent .metric-value { color: var(--accent); }

.hero-modules-preview {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(91, 26, 98, 0.12);
}

.metric-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.25rem; }
.metric-value { font-size: 1.375rem; font-weight: 800; color: var(--primary); }

.metric.accent .metric-value { color: var(--accent); }
.metric:nth-child(3) .metric-value { color: var(--blue); }
.metric:nth-child(4) .metric-value { color: var(--green); }

.hero-modules-preview span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
  color: #fff;
  animation: chipPop 0.5s ease backwards;
}

.hero-modules-preview span:nth-child(1) { background: linear-gradient(135deg, #5b1a62, #7c3aed); animation-delay: 0.1s; }
.hero-modules-preview span:nth-child(2) { background: linear-gradient(135deg, #d0153f, #f43f5e); animation-delay: 0.2s; }
.hero-modules-preview span:nth-child(3) { background: linear-gradient(135deg, #2563eb, #0891b2); animation-delay: 0.3s; }
.hero-modules-preview span:nth-child(4) { background: linear-gradient(135deg, #059669, #10b981); animation-delay: 0.4s; }
.hero-modules-preview span:nth-child(5) { background: linear-gradient(135deg, #ea580c, #f59e0b); animation-delay: 0.5s; }
.hero-modules-preview span:nth-child(6) { background: linear-gradient(135deg, #7c3aed, #a855f7); animation-delay: 0.6s; }

/* SMB banner */
.smb-banner {
  padding: 2.5rem 0;
  background: linear-gradient(135deg, #5b1a62 0%, #7c3aed 45%, #d0153f 100%);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
  position: relative;
  overflow: hidden;
}

.smb-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.smb-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  position: relative;
  z-index: 1;
}

.smb-banner-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: #fff;
  animation: iconBounce 2.5s ease-in-out infinite;
}

.smb-banner-content { flex: 1; min-width: 200px; }

.smb-banner-question {
  margin: 0 0 0.5rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.smb-banner-answer {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
}

.smb-banner-answer strong {
  color: #fde68a;
  font-weight: 800;
}

.smb-banner-cta {
  flex-shrink: 0;
  background: #fff !important;
  color: var(--primary) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: none;
}

.smb-banner-cta:hover {
  background: #fef3c7 !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Sections */
section { padding: 5rem 0; position: relative; }
section.bg-soft {
  background: linear-gradient(180deg, #f8f5fa 0%, #fef7ff 50%, #f0f9ff 100%);
}

section.bg-colorful {
  background: linear-gradient(135deg, #fff5f7 0%, #f5f3ff 40%, #eff6ff 100%);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(208, 21, 63, 0.12), rgba(124, 58, 237, 0.1));
  color: var(--accent);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(208, 21, 63, 0.15);
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-header p { color: var(--muted); margin: 0; font-size: 1.0625rem; }

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(124, 58, 237, 0.04));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(91, 26, 98, 0.15);
  border-color: rgba(91, 26, 98, 0.2);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }

.feature-card:nth-child(1) .feature-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: var(--violet); }
.feature-card:nth-child(2) .feature-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--blue); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--green); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: var(--orange); }
.feature-card:nth-child(5) .feature-icon { background: linear-gradient(135deg, #fce7f3, #fbcfe8); color: var(--accent); }
.feature-card:nth-child(6) .feature-icon { background: linear-gradient(135deg, #cffafe, #a5f3fc); color: var(--cyan); }

.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.0625rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat-card {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, var(--primary), var(--violet)); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent), var(--orange)); }

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(91, 26, 98, 0.14);
}

.stat-card i {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: inline-block;
  animation: iconBounce 2s ease-in-out infinite;
}

.stat-card:nth-child(1) i { color: var(--violet); animation-delay: 0s; }
.stat-card:nth-child(2) i { color: var(--green); animation-delay: 0.3s; }
.stat-card:nth-child(3) i { color: var(--accent); animation-delay: 0.6s; }

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card:nth-child(2) .stat-number { background: linear-gradient(135deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.stat-card:nth-child(3) .stat-number { background: linear-gradient(135deg, var(--accent), var(--orange)); -webkit-background-clip: text; background-clip: text; }

.stat-label { color: var(--muted); font-weight: 600; }

/* Module tiers */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.module-tier {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.module-tier-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.module-tier {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(91, 26, 98, 0.12);
}

.module-tier.core .module-tier-header { background: linear-gradient(135deg, #d1fae5, #ecfdf5); border-bottom: 3px solid #10b981; }
.module-tier.pro .module-tier-header { background: linear-gradient(135deg, #dbeafe, #eff6ff); border-bottom: 3px solid #3b82f6; }
.module-tier.ent .module-tier-header { background: linear-gradient(135deg, #ffedd5, #fff7ed); border-bottom: 3px solid #f97316; }
.module-tier.plus .module-tier-header { background: linear-gradient(135deg, #ede9fe, #f5f3ff); border-bottom: 3px solid #8b5cf6; }

.module-tier.core .module-tier-header h3 { color: #047857; }
.module-tier.pro .module-tier-header h3 { color: #1d4ed8; }
.module-tier.ent .module-tier-header h3 { color: #c2410c; }
.module-tier.plus .module-tier-header h3 { color: #6d28d9; }

.module-chip {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4375rem 0.75rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-chip:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.module-tier.core .module-chip { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.module-tier.pro .module-chip { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
.module-tier.ent .module-chip { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; }
.module-tier.plus .module-chip { background: #f5f3ff; border: 1px solid #ddd6fe; color: #5b21b6; }

.highlight-box {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(91, 26, 98, 0.1), rgba(208, 21, 63, 0.08), rgba(37, 99, 235, 0.08));
  border: 2px solid rgba(124, 58, 237, 0.3);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: highlightGlow 3s ease-in-out infinite;
}

.highlight-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.highlight-box h3 i { color: var(--cyan); -webkit-text-fill-color: initial; }

/* Testimonials */
.testimonial-slider { position: relative; overflow: hidden; }
.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .testimonial-card { min-width: 50%; }
}

.testimonial-inner {
  background: linear-gradient(145deg, #fff, #faf8ff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid var(--accent);
}

.testimonial-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(91, 26, 98, 0.1);
}

.testimonial-dot.active {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 28px;
  border-radius: 999px;
  animation: dotPulse 1.5s ease infinite;
}

.demo-section {
  background: linear-gradient(135deg, #fdfbff 0%, #fff5f7 40%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 70%);
  top: -100px;
  right: -100px;
  animation: blobFloat 10s ease-in-out infinite;
}

.demo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(91, 26, 98, 0.12);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 26, 98, 0.12);
  transform: scale(1.01);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

textarea.form-control { min-height: 110px; resize: vertical; }

.form-status {
  display: none;
  margin: 1rem 0;
  padding: 0.875rem;
  border-radius: 10px;
  font-size: 0.9375rem;
}

.form-status.show { display: block; }
.form-status.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #1a1520 0%, #0f0d13 100%);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--violet), var(--cyan));
  background-size: 300% 100%;
  animation: gradientShift 5s linear infinite;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand p { margin: 0; line-height: 1.7; }

.footer-heading {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a:hover { color: #fff; transform: translateX(4px); display: inline-block; transition: color 0.2s, transform 0.2s; }
.footer-links a i { color: var(--accent); margin-right: 0.35rem; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
  animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover { transform: scale(1.1); color: #fff; animation: none; }

/* Animations */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulseBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(208, 21, 63, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(208, 21, 63, 0); }
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.2) rotate(15deg); opacity: 0.8; }
}

@keyframes chipPop {
  from { opacity: 0; transform: scale(0.8) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes highlightGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(124, 58, 237, 0); }
  50% { box-shadow: 0 0 30px rgba(124, 58, 237, 0.15); }
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65), 0 0 0 10px rgba(37, 211, 102, 0.15); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-animate > * {
  animation: heroFadeUp 0.8s ease backwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.1s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.2s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.35s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.5s; }
.hero-animate > *:nth-child(5) { animation-delay: 0.65s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
.section-header p { color: var(--muted); margin: 0; font-size: 1.0625rem; }
.highlight-box p { margin: 0; color: var(--muted); max-width: 48rem; margin-inline: auto; }
.module-tier-label { font-size: 0.6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.module-tier-header h3 { margin: 0.25rem 0 0; font-size: 1.125rem; }
.module-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1rem 1.25rem 1.25rem; }
.module-tier-header { padding: 1.25rem 1.25rem 1rem; border-bottom: 1px solid var(--border); }
.testimonial-inner p { color: var(--muted); font-style: italic; margin: 0 0 1rem; }
.testimonial-inner strong { display: block; }
.testimonial-inner span { font-size: 0.875rem; color: var(--muted); }
.testimonial-nav { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.25rem; }
.testimonial-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: #d1d5db; cursor: pointer; padding: 0; transition: all 0.3s ease; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 0.25rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; color: #333; }
.form-control { width: 100%; padding: 0.75rem 0.875rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
textarea.form-control { min-height: 110px; resize: vertical; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -0.03em; margin: 0 0 1.25rem; color: var(--ink); }
.mobile-panel a { padding: 0.75rem; font-weight: 600; border-radius: 8px; }
.mobile-panel a:hover { background: var(--bg-soft); }

@media (max-width: 900px) {
  .nav-menu, .nav-actions .btn:not(.nav-toggle) { display: none; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .smb-banner-inner { flex-direction: column; text-align: center; }
  .smb-banner-cta { width: 100%; }
  .features-grid, .stats-grid, .modules-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .module-detail-grid { grid-template-columns: 1fr; }
  .module-tier-nav-inner { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 0.5rem; }
  .modules-cta-actions { flex-direction: column; }
  .modules-cta-actions .btn { width: 100%; }
}

/* Modules detail page */
.modules-page { padding-top: 72px; }

.page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 70% 60% at 20% 0%, rgba(91, 26, 98, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(208, 21, 63, 0.1), transparent 50%),
    linear-gradient(180deg, #fdfbff, #fff);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.page-hero-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 42rem;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

.module-search-wrap {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.module-search-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.module-search {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.module-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 26, 98, 0.1);
}

.module-tier-nav {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.module-tier-nav-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tier-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.tier-pill:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.tier-pill.core { border-color: #a7f3d0; color: #047857; }
.tier-pill.core:hover, .tier-pill.core.active { background: #ecfdf5; }
.tier-pill.pro { border-color: #bfdbfe; color: #1d4ed8; }
.tier-pill.pro:hover, .tier-pill.pro.active { background: #eff6ff; }
.tier-pill.ent { border-color: #fed7aa; color: #c2410c; }
.tier-pill.ent:hover, .tier-pill.ent.active { background: #fff7ed; }
.tier-pill.plus { border-color: #ddd6fe; color: #6d28d9; }
.tier-pill.plus:hover, .tier-pill.plus.active { background: #f5f3ff; }

.module-detail-section { padding: 4rem 0; }

.module-detail-tier-header {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.module-detail-tier-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0.25rem 0 0.75rem;
}

.module-detail-tier-header p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}

.module-detail-tier-header.core h2 { color: #047857; }
.module-detail-tier-header.pro h2 { color: #1d4ed8; }
.module-detail-tier-header.ent h2 { color: #c2410c; }
.module-detail-tier-header.plus h2 { color: #6d28d9; }

.module-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.module-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
}

.module-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91, 26, 98, 0.1);
  border-color: rgba(91, 26, 98, 0.15);
}

.module-detail-card.is-hidden { display: none; }

.module-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.module-detail-icon.violet { background: #ede9fe; color: #7c3aed; }
.module-detail-icon.blue { background: #dbeafe; color: #2563eb; }
.module-detail-icon.green { background: #d1fae5; color: #059669; }
.module-detail-icon.cyan { background: #cffafe; color: #0891b2; }
.module-detail-icon.orange { background: #ffedd5; color: #ea580c; }
.module-detail-icon.accent { background: #fce7f3; color: #d0153f; }
.module-detail-icon.pink { background: #fdf2f8; color: #db2777; }

.module-detail-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  color: var(--ink);
}

.module-detail-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.module-search-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  margin: 0;
}

.modules-cta {
  padding: 4rem 0 5rem;
  background: linear-gradient(135deg, #5b1a62, #7c3aed, #d0153f);
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.modules-cta-inner {
  text-align: center;
  color: #fff;
  max-width: 560px;
  margin: 0 auto;
}

.modules-cta-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.modules-cta-inner p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
  line-height: 1.6;
}

.modules-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.modules-cta .btn-outline {
  border-color: #fff;
  color: #fff;
}

.modules-cta .btn-outline:hover {
  background: #fff;
  color: var(--primary);
}

@media (max-width: 1100px) {
  .module-detail-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Pricing page */
.pricing-page { padding-top: 72px; }

.pricing-models-section { padding: 2rem 0 4rem; }

.pricing-models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-model-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(91, 26, 98, 0.12);
}

.pricing-model-card-featured {
  border-color: rgba(208, 21, 63, 0.35);
  background: linear-gradient(145deg, #fff, #fff8fa);
  box-shadow: 0 12px 36px rgba(208, 21, 63, 0.1);
}

.pricing-model-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: #fff;
}

.pricing-model-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.pricing-model-icon.violet { background: #ede9fe; color: #7c3aed; }
.pricing-model-icon.accent { background: #fce7f3; color: #d0153f; }

.pricing-model-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pricing-model-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.pricing-model-summary {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 1.25rem;
}

.pricing-model-summary strong { color: var(--ink); }

.pricing-model-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.pricing-model-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: #444;
}

.pricing-model-features i {
  color: var(--green);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.pricing-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pricing-tier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-tier-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(91, 26, 98, 0.1);
}

.pricing-tier-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.pricing-tier-label.core { background: #ecfdf5; color: #047857; }
.pricing-tier-label.pro { background: #eff6ff; color: #1d4ed8; }
.pricing-tier-label.ent { background: #fff7ed; color: #c2410c; }
.pricing-tier-label.plus { background: #f5f3ff; color: #6d28d9; }

.pricing-tier-card h3 { margin: 0 0 0.5rem; font-size: 1.25rem; }

.pricing-tier-price {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.pricing-tier-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.pricing-tier-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
  font-size: 0.875rem;
  color: #444;
}

.pricing-tier-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-tier-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-tier-card .btn { width: 100%; margin-top: auto; }

.prepaid-section { padding: 5rem 0; }

.prepaid-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.prepaid-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prepaid-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(91, 26, 98, 0.1);
}

.prepaid-step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  display: grid;
  place-items: center;
}

.prepaid-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.prepaid-step p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.prepaid-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.prepaid-compare-col {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.prepaid-compare-highlight {
  border-color: rgba(208, 21, 63, 0.25);
  background: linear-gradient(145deg, #fff, #fff5f7);
  box-shadow: 0 8px 24px rgba(208, 21, 63, 0.08);
}

.prepaid-compare-col h3 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prepaid-compare-col h3 i { color: var(--accent); }

.prepaid-compare-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prepaid-compare-col li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.prepaid-compare-vs {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--muted);
  font-size: 0.875rem;
  text-transform: uppercase;
}

.pricing-factors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pricing-factor {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s ease;
}

.pricing-factor:hover { transform: translateY(-3px); }

.pricing-factor i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.pricing-factor strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.pricing-factor span {
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .pricing-models-grid,
  .pricing-tier-grid,
  .prepaid-steps { grid-template-columns: repeat(2, 1fr); }
  .prepaid-compare { grid-template-columns: 1fr; }
  .prepaid-compare-vs { padding: 0.5rem 0; }
}

@media (max-width: 600px) {
  .pricing-models-grid,
  .pricing-tier-grid,
  .prepaid-steps,
  .pricing-factors-grid { grid-template-columns: 1fr; }
}

/* Price calculator */
.calc-section { padding: 4rem 0 5rem; }

.calc-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: start;
}

.calc-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.calc-panel-summary {
  position: sticky;
  top: 88px;
}

.calc-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.calc-users-wrap label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--ink);
}

.calc-users-input {
  width: 120px;
  padding: 0.625rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.calc-users-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 26, 98, 0.1);
}

.calc-search-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.calc-search-wrap i {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.calc-search {
  width: 100%;
  padding: 0.625rem 0.875rem 0.625rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

.calc-search:focus {
  outline: none;
  border-color: var(--primary);
}

.calc-tier-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.calc-tier-filter {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.calc-tier-filter:hover { border-color: var(--primary); }
.calc-tier-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.calc-tier-filter.core.active { background: #059669; border-color: #059669; }
.calc-tier-filter.pro.active { background: #2563eb; border-color: #2563eb; }
.calc-tier-filter.ent.active { background: #ea580c; border-color: #ea580c; }
.calc-tier-filter.plus.active { background: #7c3aed; border-color: #7c3aed; }

.calc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.calc-legend-item { display: flex; align-items: center; gap: 0.4rem; }

.calc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.calc-legend-dot.p200 { background: #059669; }
.calc-legend-dot.p300 { background: #d0153f; }

.calc-module-list {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.calc-tier-group { margin-bottom: 1.5rem; }

.calc-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.calc-tier-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
}

.calc-tier-title.core { color: #047857; }
.calc-tier-title.pro { color: #1d4ed8; }
.calc-tier-title.ent { color: #c2410c; }
.calc-tier-title.plus { color: #6d28d9; }

.calc-tier-select {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.calc-tier-select:hover { background: rgba(208, 21, 63, 0.08); }

.calc-module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.calc-module-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  user-select: none;
}

.calc-module-item:hover {
  border-color: rgba(91, 26, 98, 0.25);
  background: #faf9fc;
}

.calc-module-item:has(input:checked) {
  border-color: var(--primary);
  background: linear-gradient(135deg, #faf7fc, #fff);
  box-shadow: 0 4px 12px rgba(91, 26, 98, 0.08);
}

.calc-module-item input { position: absolute; opacity: 0; pointer-events: none; }

.calc-module-check {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
}

.calc-module-item input:checked + .calc-module-check {
  background: var(--primary);
  border-color: var(--primary);
}

.calc-module-item input:checked + .calc-module-check::after {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.calc-module-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.calc-module-name {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.calc-module-price {
  font-size: 0.75rem;
  font-weight: 700;
}

.calc-module-price.price-200 { color: #059669; }
.calc-module-price.price-300 { color: #d0153f; }

.calc-empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem;
  margin: 0;
}

.calc-clear-btn { margin-top: 1rem; width: 100%; }

.calc-summary-title {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-summary-title i { color: var(--accent); }

.calc-summary-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.calc-summary-stat.highlight .calc-summary-value {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.125rem;
}

.calc-summary-label { color: var(--muted); }

.calc-summary-total {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(91, 26, 98, 0.08), rgba(208, 21, 63, 0.06));
  text-align: center;
}

.calc-summary-total .calc-summary-label {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.calc-summary-amount {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.2;
}

.calc-summary-yearly {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.calc-summary-yearly strong { color: var(--ink); }

.calc-breakdown {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.calc-breakdown-empty {
  color: var(--muted);
  margin: 0;
  text-align: center;
  padding: 0.5rem 0;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
  color: #555;
}

.calc-breakdown-row span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

.calc-breakdown-total {
  font-weight: 700;
  color: var(--ink);
  border-bottom: none;
  padding-top: 0.5rem;
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1rem;
}

.calc-cta {
  width: 100%;
  margin-bottom: 0.5rem;
}

.calc-cta:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-panel-summary { position: static; order: -1; }
  .calc-module-grid { grid-template-columns: 1fr; }
}
