/* Faciotech CRM/ERP marketing pages
 *
 * All styles scoped under .ft-crm-erp to avoid impacting other WHMCS/Lagom pages.
 * No Bootstrap class dependencies — buttons/inputs use ft-* classes only.
 */

/* ── Tokens ── */
.ft-crm-erp {
  --ft-navy: #041133;
  --ft-blue: #0146C7;
  --ft-blue-hover: #0D5BD9;
  --ft-blue-light: #D6E5FA;
  --ft-blue-50: #EEF3FC;
  --ft-yellow: #FFD602;
  --ft-yellow-hover: #FFE44D;
  --ft-bg: #ffffff;
  --ft-text: #2D3130;
  --ft-heading: #0F1110;
  --ft-muted: #555B59;
  --ft-card: #ffffff;
  --ft-border: #D5DAD8;
  --ft-radius: 12px;
  --ft-shadow: 0 8px 32px rgba(4, 17, 51, 0.10);
  --ft-shadow-sm: 0 2px 10px rgba(4, 17, 51, 0.06);
  --ft-shadow-hover: 0 8px 24px rgba(4, 17, 51, 0.08);
  --ft-max: 1200px;
  --ft-gutter: clamp(1rem, 5vw, 2rem);

  --text-hero: clamp(2rem, 4vw, 3rem);
  --text-h2: clamp(1.5rem, 2.5vw, 2rem);
  --text-h3: clamp(1.125rem, 2vw, 1.5rem);
  --text-body-lg: 1.25rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-micro: 0.75rem;

  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  color: var(--ft-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.ft-crm-erp,
.ft-crm-erp * {
  box-sizing: border-box;
}

/* ── Container ── */
.ft-crm-erp .ft-container {
  max-width: var(--ft-max);
  margin: 0 auto;
  padding: 0 var(--ft-gutter);
}

/* ── Typography ── */
.ft-crm-erp .ft-h1 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 1rem;
}
.ft-crm-erp .ft-h2 {
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ft-heading);
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  margin: 0 0 0.75rem;
}
.ft-crm-erp .ft-h3 {
  font-weight: 800;
  line-height: 1.25;
  color: var(--ft-heading);
  font-size: 1.15rem;
  margin: 0;
}
.ft-crm-erp .ft-subtitle {
  margin: 0;
  color: var(--ft-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 65ch;
}
.ft-crm-erp .ft-small { font-size: 0.95rem; color: var(--ft-muted); }

/* ── Sections ── */
.ft-crm-erp .ft-section {
  padding: var(--space-9) 0;
  scroll-margin-top: 92px;
}
.ft-crm-erp .ft-section-alt {
  background: var(--ft-blue-50);
}
.ft-crm-erp .ft-section-heading {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 65ch;
}
.ft-crm-erp .ft-section-heading .ft-h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ft-yellow);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

/* ── Buttons (fully independent — no Bootstrap classes) ── */
.ft-crm-erp .ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.4;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 180ms ease;
  font-family: inherit;
}
.ft-crm-erp .ft-btn:hover { text-decoration: none; }

.ft-crm-erp .ft-btn-primary {
  background: var(--ft-yellow);
  border-color: var(--ft-yellow);
  color: #0f1110;
}
.ft-crm-erp .ft-btn-primary:hover,
.ft-crm-erp .ft-btn-primary:focus {
  filter: brightness(1.06);
  transform: translateY(-1px);
  color: #0f1110;
  box-shadow: 0 4px 16px rgba(255, 214, 2, 0.35);
}

/* Secondary: dark bg variant (hero, mid-cta) */
.ft-crm-erp .ft-btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.ft-crm-erp .ft-btn-secondary:hover,
.ft-crm-erp .ft-btn-secondary:focus {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
/* Secondary: light bg variant (product cards, form, etc.) */
.ft-crm-erp .ft-section .ft-btn-secondary,
.ft-crm-erp .ft-product-actions .ft-btn-secondary {
  background: transparent;
  border-color: var(--ft-border);
  color: var(--ft-heading);
}
.ft-crm-erp .ft-section .ft-btn-secondary:hover,
.ft-crm-erp .ft-product-actions .ft-btn-secondary:hover {
  border-color: var(--ft-blue);
  color: var(--ft-blue);
  background: var(--ft-blue-light);
}

/* ── Hero ── */
.ft-crm-erp .ft-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 214, 2, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(91, 155, 245, 0.10) 0%, transparent 40%),
    linear-gradient(170deg, var(--ft-navy) 0%, #062266 60%, var(--ft-blue) 100%);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.ft-crm-erp .ft-hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 992px) {
  .ft-crm-erp .ft-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.ft-crm-erp .ft-hero-copy .ft-hero-sub {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  line-height: 1.7;
}
.ft-crm-erp .ft-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.ft-crm-erp .ft-hero-micro {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0.75rem 0 0;
}
/* Hero image with glow */
.ft-crm-erp .ft-hero-media {
  position: relative;
}
.ft-crm-erp .ft-hero-media::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(255,214,2,0.12) 0%, transparent 65%);
  z-index: 0;
  filter: blur(25px);
  pointer-events: none;
}
.ft-crm-erp .ft-hero-media picture,
.ft-crm-erp .ft-hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
}
.ft-crm-erp .ft-hero-media img {
  border-radius: var(--ft-radius);
  box-shadow: var(--ft-shadow);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Icon badges ── */
.ft-crm-erp .ft-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ft-blue-light);
  display: grid;
  place-items: center;
  color: var(--ft-blue);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}
.ft-crm-erp .ft-icon svg {
  width: 20px;
  height: 20px;
}

/* ── Social proof cards ── */
.ft-crm-erp .ft-proof-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ft-crm-erp .ft-proof-grid { grid-template-columns: repeat(3, 1fr); }
}
.ft-crm-erp .ft-proof-item {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 1.5rem;
  box-shadow: var(--ft-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ft-crm-erp .ft-proof-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--ft-shadow-hover);
}
.ft-crm-erp .ft-proof-item h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.ft-crm-erp .ft-proof-item p { margin: 0; color: var(--ft-muted); line-height: 1.6; }

/* ── Pillars (outcomes) ── */
.ft-crm-erp .ft-pillars {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ft-crm-erp .ft-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .ft-crm-erp .ft-pillars { grid-template-columns: repeat(4, 1fr); }
}
.ft-crm-erp .ft-pillar {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 1.5rem;
  box-shadow: var(--ft-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ft-crm-erp .ft-pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--ft-shadow-hover);
}
.ft-crm-erp .ft-pillar p { margin: 0.5rem 0 0; color: var(--ft-muted); line-height: 1.6; }

/* ── Mid CTA ── */
.ft-crm-erp .ft-mid-cta {
  background: linear-gradient(170deg, var(--ft-blue-50) 0%, #fff 55%, rgba(255,214,2,0.08) 100%);
  border-top: 1px solid var(--ft-border);
  border-bottom: 1px solid var(--ft-border);
}
.ft-crm-erp .ft-mid-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
}
.ft-crm-erp .ft-mid-cta p { margin: 0; color: var(--ft-muted); max-width: 65ch; }

/* ── Solutions overview ── */
.ft-crm-erp .ft-solutions {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 992px) {
  .ft-crm-erp .ft-solutions { grid-template-columns: 1fr 1fr; }
}
.ft-crm-erp .ft-solution {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 1.5rem;
  box-shadow: var(--ft-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ft-crm-erp .ft-solution:hover {
  transform: translateY(-2px);
  box-shadow: var(--ft-shadow-hover);
}
.ft-crm-erp .ft-solution p { margin: 0.75rem 0 0; color: var(--ft-muted); line-height: 1.65; }
.ft-crm-erp .ft-compare {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.ft-crm-erp .ft-compare li {
  padding-left: 1.4rem;
  position: relative;
  margin: 0.4rem 0;
  color: var(--ft-text);
  line-height: 1.6;
}
.ft-crm-erp .ft-compare li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ft-blue);
  font-weight: 900;
}

/* ── Product cards ── */
.ft-crm-erp .ft-products-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ft-crm-erp .ft-products-grid { grid-template-columns: repeat(2, 1fr); }
}
.ft-crm-erp .ft-product-card {
  background: var(--ft-card);
  border: 1.5px solid var(--ft-border);
  border-radius: var(--ft-radius);
  box-shadow: var(--ft-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ft-crm-erp .ft-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ft-shadow-hover);
  border-color: var(--ft-blue-light);
}
.ft-crm-erp .ft-product-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--ft-shadow-hover);
  outline: 3px solid rgba(1,70,199,0.35);
  outline-offset: 3px;
}
/* Fixed aspect ratio for consistent card heights (images are box art with mixed aspect ratios) */
.ft-crm-erp .ft-product-media {
  background: linear-gradient(170deg, var(--ft-blue-light) 0%, #f6f9fd 100%);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ft-crm-erp .ft-product-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}
.ft-crm-erp .ft-product-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.ft-crm-erp .ft-product-title { font-size: 1.15rem; }
.ft-crm-erp .ft-product-tagline { margin: 0; font-weight: 700; color: var(--ft-blue); font-size: 0.95rem; }
.ft-crm-erp .ft-product-desc {
  margin: 0;
  color: var(--ft-text);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ft-crm-erp .ft-product-bullets {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--ft-text);
  font-size: 0.95rem;
  line-height: 1.6;
}
.ft-crm-erp .ft-product-bullets li {
  margin: 0.3rem 0;
}
.ft-crm-erp .ft-product-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
}
@media (min-width: 768px) {
  .ft-crm-erp .ft-product-actions { grid-template-columns: 1fr 1fr; }
}
.ft-crm-erp .ft-product-actions .ft-btn {
  width: 100%;
  min-height: 40px;
  white-space: nowrap;
}

/* ── Product page: feature groups — tabbed layout ── */
.ft-crm-erp .ft-features-wrap {
  max-width: 900px;
  margin: 0 auto;
}
.ft-crm-erp .ft-feature-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--ft-border);
  padding-bottom: 0;
}
.ft-crm-erp .ft-feature-tab {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ft-muted);
  cursor: pointer;
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 180ms ease, border-color 180ms ease;
  font-family: inherit;
}
.ft-crm-erp .ft-feature-tab:hover { color: var(--ft-blue); }
.ft-crm-erp .ft-feature-tab.ft-active {
  color: var(--ft-blue);
  border-bottom-color: var(--ft-blue);
}
.ft-crm-erp .ft-feature-panel { display: none; }
.ft-crm-erp .ft-feature-panel.ft-active { display: block; }
.ft-crm-erp .ft-feature-group {
  background: transparent;
  padding: 0;
}
.ft-crm-erp .ft-feature-group h3 { margin: 0 0 1.25rem; font-size: 1.2rem; text-align: center; }
.ft-crm-erp .ft-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.ft-crm-erp .ft-feature {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ft-border);
}
.ft-crm-erp .ft-feature:last-child { border-bottom: none; }
.ft-crm-erp .ft-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ft-blue-light);
  display: grid;
  place-items: center;
  color: var(--ft-blue);
  grid-row: 1 / 3;
}
.ft-crm-erp .ft-feature-icon svg { width: 22px; height: 22px; }
.ft-crm-erp .ft-feature strong { display: block; color: var(--ft-heading); font-size: 1rem; }
.ft-crm-erp .ft-feature span { display: block; color: var(--ft-muted); margin-top: 0.2rem; line-height: 1.6; font-size: 0.93rem; }

/* ── Product page: screenshots gallery ── */
.ft-crm-erp .ft-gallery {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .ft-crm-erp .ft-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .ft-crm-erp .ft-gallery { grid-template-columns: repeat(3, 1fr); }
}
.ft-crm-erp .ft-shot {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  overflow: hidden;
  box-shadow: var(--ft-shadow-sm);
  margin: 0;
}
.ft-crm-erp .ft-shot-img { width: 100%; height: auto; display: block; }
.ft-crm-erp .ft-shot-cap {
  padding: 0.85rem 1.1rem;
  color: var(--ft-muted);
  font-size: 0.95rem;
}

/* ── Product page: tags/pills ── */
.ft-crm-erp .ft-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.ft-crm-erp .ft-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--ft-border);
  background: var(--ft-blue-light);
  color: var(--ft-heading);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.ft-crm-erp .ft-tag:hover {
  transform: translateY(-1px);
  box-shadow: var(--ft-shadow-sm);
}
.ft-crm-erp .ft-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ft-blue);
  flex-shrink: 0;
}

/* ── Product page: security panel ── */
.ft-crm-erp .ft-security {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 992px) {
  .ft-crm-erp .ft-security { grid-template-columns: repeat(2, 1fr); }
}
.ft-crm-erp .ft-security-item {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 1.5rem;
  box-shadow: var(--ft-shadow-sm);
}
.ft-crm-erp .ft-security-item p { margin: 0.5rem 0 0; color: var(--ft-muted); line-height: 1.6; }

/* ── Process steps ── */
.ft-crm-erp .ft-steps {
  display: grid;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ftstep;
}
@media (min-width: 768px) {
  .ft-crm-erp .ft-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .ft-crm-erp .ft-steps { grid-template-columns: repeat(5, 1fr); }
}
.ft-crm-erp .ft-step {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  box-shadow: var(--ft-shadow-sm);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ft-crm-erp .ft-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--ft-shadow-hover);
}
.ft-crm-erp .ft-step::before {
  counter-increment: ftstep;
  content: counter(ftstep);
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ft-blue-light);
  color: var(--ft-blue);
  font-weight: 900;
  font-size: 0.85rem;
}
.ft-crm-erp .ft-step h3 { margin: 0 0 0.4rem; font-size: 1rem; padding-right: 2.5rem; }
.ft-crm-erp .ft-step p { margin: 0; color: var(--ft-muted); line-height: 1.6; }

/* ── Testimonials ── */
.ft-crm-erp .ft-testimonials {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 992px) {
  .ft-crm-erp .ft-testimonials { grid-template-columns: repeat(2, 1fr); }
}
.ft-crm-erp .ft-testimonial {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  padding: 1.5rem;
  box-shadow: var(--ft-shadow-sm);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.ft-crm-erp .ft-testimonial:hover {
  transform: translateY(-2px);
  box-shadow: var(--ft-shadow-hover);
}
.ft-crm-erp .ft-testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ft-text);
  font-style: italic;
}
.ft-crm-erp .ft-testimonial cite {
  font-style: normal;
  color: var(--ft-muted);
  display: block;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ft-border);
}
.ft-crm-erp .ft-testimonial .ft-cite-name { font-weight: 800; color: var(--ft-heading); }

/* ── FAQ ── */
.ft-crm-erp .ft-faq-item {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  box-shadow: var(--ft-shadow-sm);
  margin: 0 0 0.75rem;
  overflow: hidden;
}
.ft-crm-erp .ft-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 800;
  color: var(--ft-heading);
}
.ft-crm-erp .ft-faq-q::-webkit-details-marker { display: none; }
.ft-crm-erp .ft-faq-chevron {
  width: 16px;
  height: 16px;
  color: var(--ft-muted);
  transition: transform var(--duration-normal) var(--ease-out), color var(--duration-fast) ease;
  flex-shrink: 0;
}
.ft-crm-erp details[open] .ft-faq-chevron {
  transform: rotate(180deg);
  color: var(--ft-blue);
}
.ft-crm-erp details[open] {
  border-color: var(--ft-blue-light);
}
.ft-crm-erp .ft-faq-a { padding: 0 1.25rem 1.1rem; color: var(--ft-muted); }
.ft-crm-erp .ft-faq-a p { margin: 0; line-height: 1.7; }

/* ── Form ── */
.ft-crm-erp .ft-form-wrap {
  background: var(--ft-card);
  border: 1px solid var(--ft-border);
  border-radius: var(--ft-radius);
  box-shadow: var(--ft-shadow-sm);
  padding: 1.5rem;
}
.ft-crm-erp .ft-form-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .ft-crm-erp .ft-form-grid { grid-template-columns: repeat(2, 1fr); }
  .ft-crm-erp .ft-field-full { grid-column: 1 / -1; }
}
.ft-crm-erp .ft-label {
  font-weight: 700;
  color: var(--ft-heading);
  margin-bottom: 0.3rem;
  display: inline-block;
  font-size: 0.9rem;
}
.ft-crm-erp .ft-req { color: #d93025; font-weight: 900; }

/* Self-contained inputs — no form-control dependency */
.ft-crm-erp .ft-control {
  display: block;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid rgba(4,17,51,0.15);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ft-heading);
  background: #fff;
  font-family: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.ft-crm-erp .ft-control:focus {
  border-color: var(--ft-blue);
  box-shadow: 0 0 0 3px rgba(1,70,199,0.10);
  outline: none;
}
.ft-crm-erp .ft-control::placeholder {
  color: #a0a4a3;
}
.ft-crm-erp select.ft-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%236b7170'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}

.ft-crm-erp .ft-error { min-height: 1.1em; color: #d93025; font-size: 0.85rem; margin-top: 0.2rem; }
.ft-crm-erp .ft-form-actions { margin-top: 1.25rem; }
.ft-crm-erp .ft-form-actions .ft-micro { color: var(--ft-muted); font-size: 0.82rem; margin-top: 0.5rem; }
.ft-crm-erp .ft-form-status { margin-top: 0.75rem; }
.ft-crm-erp .ft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* LeadGen widget integration */
.ft-crm-erp .ft-form-wrap [data-whmcs-leadgen] {
  margin-top: 0.75rem;
}

/* ── Dark CTA Section ── */
.ft-crm-erp .ft-cta-dark {
  background: linear-gradient(170deg, var(--ft-navy) 0%, #062266 60%, var(--ft-blue) 100%);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}
.ft-crm-erp .ft-cta-dark::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1,70,199,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.ft-crm-erp .ft-cta-dark-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ft-crm-erp .ft-cta-dark-title {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.ft-crm-erp .ft-cta-dark-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--ft-yellow);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}
.ft-crm-erp .ft-cta-dark-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0.75rem auto 0;
  max-width: 52ch;
}
.ft-crm-erp .ft-cta-dark-form {
  margin: 2rem auto 0;
  max-width: 600px;
}
.ft-crm-erp .ft-cta-dark-form .wlg2 .card {
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.ft-crm-erp .ft-cta-dark-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}
.ft-crm-erp .ft-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 600;
}
.ft-crm-erp .ft-trust-item svg {
  color: var(--ft-yellow);
  flex-shrink: 0;
}

/* ── Sticky CTA header ── */
.ft-crm-erp .ft-sticky-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.88);
  border-bottom: 1px solid var(--ft-border);
}
@media (min-width: 992px) {
  .ft-crm-erp .ft-sticky-header { display: block; }
}
.ft-crm-erp .ft-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--ft-gutter);
}
.ft-crm-erp .ft-sticky-nav { display: flex; gap: 1rem; align-items: center; }
.ft-crm-erp .ft-sticky-link {
  color: var(--ft-heading);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}
.ft-crm-erp .ft-sticky-link:hover {
  color: var(--ft-blue);
  background: rgba(1,70,199,0.06);
  text-decoration: none;
}

/* Mobile floating CTA */
.ft-crm-erp .ft-mobile-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1100;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  background: var(--ft-yellow);
  color: #0f1110;
  font-weight: 900;
  font-size: 0.9rem;
  box-shadow: 0 12px 34px rgba(4, 17, 51, 0.25);
  display: grid;
  place-items: center;
  transition: opacity 160ms ease, transform 160ms ease;
  cursor: pointer;
  font-family: inherit;
}
@media (min-width: 992px) {
  .ft-crm-erp .ft-mobile-fab { display: none; }
}
.ft-crm-erp .ft-mobile-fab.ft-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
.ft-crm-erp .ft-mobile-fab:focus-visible { outline: 3px solid rgba(1,70,199,0.35); outline-offset: 3px; }

/* ── Modal ── */
.ft-crm-erp .ft-modal.ft-modal-closed { display: none; }
.ft-crm-erp .ft-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.ft-modal-open { overflow: hidden; }
.ft-crm-erp .ft-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 17, 51, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ft-crm-erp .ft-modal-panel {
  position: relative;
  margin: min(6vh, 3rem) 1rem 2rem;
  width: min(560px, 100%);
  background: #fff;
  border-radius: var(--ft-radius);
  box-shadow: 0 24px 64px rgba(4, 17, 51, 0.22);
  overflow: hidden;
}
.ft-crm-erp .ft-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  border: none;
  background: rgba(255,255,255,0.85);
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ft-muted);
  transition: color 150ms ease, background 150ms ease;
  display: grid;
  place-items: center;
}
.ft-crm-erp .ft-modal-close:hover { color: var(--ft-heading); background: #fff; }
.ft-crm-erp .ft-modal-close:focus-visible { outline: 3px solid rgba(1,70,199,0.35); outline-offset: 3px; }
.ft-crm-erp .ft-modal-body { padding: 0; }
.ft-crm-erp .ft-modal-body .wlg2 .card {
  border: none;
  border-radius: 0;
  box-shadow: none;
}

/* ── Product page: pricing section (blue bg) ── */
.ft-crm-erp .ft-pricing-section {
  background: linear-gradient(170deg, var(--ft-blue) 0%, #062266 50%, #0146C7 100%);
}
.ft-crm-erp .ft-pricing-section .ft-section-heading .ft-h2 {
  color: #fff;
}
.ft-crm-erp .ft-pricing-section .ft-section-heading .ft-h2::after {
  background: var(--ft-yellow);
}
.ft-crm-erp .ft-pricing-section .ft-subtitle {
  color: rgba(255,255,255,0.8);
}
.ft-crm-erp .ft-pricing-cta {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--ft-radius);
  padding: 1.5rem 2rem;
}
.ft-crm-erp .ft-pricing-cta h3 {
  margin: 0 0 0.35rem;
  color: #fff;
}
.ft-crm-erp .ft-pricing-cta p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

/* ── Security grid: 4-col at wide ── */
@media (min-width: 1200px) {
  .ft-crm-erp .ft-security { grid-template-columns: repeat(4, 1fr); }
}

/* ── Focus styles ── */
.ft-crm-erp a:focus-visible,
.ft-crm-erp button:focus-visible,
.ft-crm-erp summary:focus-visible,
.ft-crm-erp input:focus-visible {
  outline: 3px solid rgba(1,70,199,0.35);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .ft-crm-erp *,
  .ft-crm-erp *::before,
  .ft-crm-erp *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Dark Mode ── */
.lagom-dark-mode .ft-crm-erp {
  --ft-bg: #121220;
  --ft-text: #d0d0dd;
  --ft-heading: #f0f0f5;
  --ft-muted: #b0b0c0;
  --ft-card: #1e1e2e;
  --ft-border: #3a3a4a;
  --ft-blue-light: rgba(1,70,199,.15);
  --ft-blue-50: rgba(1,70,199,.1);
  --ft-shadow: 0 8px 32px rgba(0,0,0,.25);
  --ft-shadow-sm: 0 2px 10px rgba(0,0,0,.2);
  --ft-shadow-hover: 0 8px 24px rgba(0,0,0,.2);
}
/* Keep white text on dark/gradient backgrounds */
.lagom-dark-mode .ft-crm-erp .ft-hero-title,
.lagom-dark-mode .ft-crm-erp .ft-hero-sub,
.lagom-dark-mode .ft-crm-erp .ft-cta-title,
.lagom-dark-mode .ft-crm-erp .ft-cta-sub,
.lagom-dark-mode .ft-crm-erp .ft-btn-primary { color: #fff; }
