/* =============================================================
   Erplab — Pro-SaaS design system v2 (Stripe-grade)
   Light-first. Loaded after output.css + main.css.
   ============================================================= */

:root {
  /* Surfaces */
  --erp-bg:        #ffffff;
  --erp-bg-soft:   #fafbff;
  --erp-bg-tint:   #f4f6fb;
  --erp-bg-deep:   #0a1f44;
  --erp-ink:       #0a1f44;
  --erp-ink-2:     #3c4257;
  --erp-mute:      #687385;
  --erp-line:      #e6e8eb;
  --erp-line-2:    #eef0f4;
  --erp-cream:     #fff8f3;

  /* Brand */
  --erp-sky:    #00d4ff;
  --erp-blue:   #0a84ff;
  --erp-indigo: #635bff;
  --erp-violet: #a855f7;
  --erp-pink:   #ff4d8d;
  --erp-amber:  #ffb547;

  /* Composite gradients — restrained, indigo-centric */
  --erp-grad:        linear-gradient(135deg, #635bff 0%, #4f46e5 100%);
  --erp-grad-text:   linear-gradient(110deg, #635bff 0%, #4f46e5 100%);
  --erp-grad-soft:   linear-gradient(135deg, rgba(99,91,255,0.06) 0%, rgba(79,70,229,0.06) 100%);

  /* Shadows */
  --erp-sh-card:    0 1px 2px rgba(15,23,42,0.04), 0 1px 0 rgba(15,23,42,0.02);
  --erp-sh-hover:   0 20px 40px -20px rgba(15,23,42,0.18), 0 8px 16px -8px rgba(15,23,42,0.10);
  --erp-sh-float:   0 30px 60px -24px rgba(15,23,42,0.18), 0 12px 28px -12px rgba(99,91,255,0.25);
  --erp-sh-deep:    0 48px 96px -40px rgba(99,91,255,0.45), 0 24px 48px -24px rgba(15,23,42,0.30);

  --erp-r-sm: 12px;
  --erp-r-md: 18px;
  --erp-r-lg: 24px;
  --erp-r-xl: 32px;
}

/* ============================================ Base */
html { background: var(--erp-bg) !important; }
html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
  background: var(--erp-bg) !important;
  color: var(--erp-ink) !important;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
.dark body { background: #060914 !important; color: #e6e8eb !important; }

/* Typography reset — beats Tailwind utility classes */
h1, h2, h3, h4,
.text-fluid-3xl, .text-fluid-4xl,
.text-5xl, .text-6xl, .text-7xl, .text-8xl,
.text-2xl, .text-3xl, .text-4xl {
  font-family: inherit !important;
  font-weight: 800 !important;
  letter-spacing: -0.028em !important;
  color: var(--erp-ink);
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: #f6f7fb; }

h1 {
  font-weight: 900 !important;
  letter-spacing: -0.045em !important;
  line-height: 0.98 !important;
}

/* ============================================ Layout helpers */
.erp-section {
  position: relative;
  padding: clamp(5rem, 8vw, 9rem) 0;
}
.erp-section.is-tight  { padding: clamp(3rem, 5vw, 5rem) 0; }
.erp-section.is-tint   { background: var(--erp-bg-soft); }
.erp-section.is-cream  { background: var(--erp-cream); }
.erp-section.is-deep   {
  background: #0a1f44;
  color: #e6e8eb;
}
.erp-section.is-deep h2, .erp-section.is-deep h3 { color: #fff; }
.erp-section.is-deep p { color: #b9c0d0; }

.erp-container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ============================================ The Stripe ribbon (animated SVG-ish CSS) */
/* Hero backdrop disabled — pure white hero */
.erp-ribbon { display: none !important; }
.erp-grid-bg { display: none !important; }
@keyframes erp-ribbon-spin {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1.05); }
  50%  { transform: translate3d(-3%, 2%, 0) rotate(180deg) scale(1.15); }
  100% { transform: translate3d(0,0,0) rotate(360deg) scale(1.05); }
}

/* Faded grid + mask, layered over ribbon */
.erp-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10,31,68,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,31,68,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 80%);
  opacity: 0.7;
}
.dark .erp-grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
}

/* ============================================ Eyebrow */
.erp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--erp-ink-2);
  background: var(--erp-bg-soft);
  border: 1px solid var(--erp-line);
}
.erp-eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--erp-indigo);
}
.dark .erp-eyebrow { color: #c7d2fe; background: rgba(99,91,255,0.14); border-color: rgba(99,91,255,0.32); }

/* ============================================ Gradient headline accent */
.erp-grad-text {
  /* monochrome dark ink — Stripe headlines are NOT gradient */
  color: var(--erp-ink);
  background: none;
}
@keyframes erp-grad-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ============================================ Buttons */
.erp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-position 0.6s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}
.erp-btn-primary {
  background: var(--erp-indigo);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 8px 20px -8px rgba(99,91,255,0.30);
}
.erp-btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 14px 28px -12px rgba(99,91,255,0.40);
}
.erp-btn-ghost {
  background: rgba(255,255,255,0.6);
  color: var(--erp-ink);
  border-color: var(--erp-line);
  backdrop-filter: blur(8px);
}
.erp-btn-ghost:hover { background: #fff; border-color: rgba(99,91,255,0.4); }
.dark .erp-btn-ghost { background: rgba(255,255,255,0.04); color: #e6e8eb; border-color: rgba(255,255,255,0.14); }
.dark .erp-btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(99,91,255,0.5); }

.erp-btn-text {
  padding: 10px 4px;
  background: transparent;
  color: var(--erp-indigo);
  font-weight: 600;
}
.erp-btn-text:hover { color: var(--erp-pink); }
.erp-btn-text .erp-arrow { transition: transform 0.2s ease; }
.erp-btn-text:hover .erp-arrow { transform: translateX(4px); }

/* ============================================ HERO */
.erp-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(6rem, 11vw, 10rem) 0 clamp(4rem, 7vw, 7rem);
  overflow: hidden;
}
/* Defeat GSAP's `gsap.from('section h1')` opacity-0 reveal on above-fold heroes */
.erp-hero h1,
.erp-hero p,
.erp-hero .erp-eyebrow,
.erp-hero .erp-cta-row,
.erp-hero .erp-trust,
.erp-section h2,
.erp-section h3,
.erp-section p,
.erp-section li {
  opacity: 1 !important;
  transform: none !important;
}

.erp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) { .erp-hero-grid { grid-template-columns: 1fr; } }

.erp-hero h1 {
  font-size: clamp(2.75rem, 7.5vw, 6.5rem);
  margin: 22px 0 24px;
}
.erp-hero h1 .erp-grad-text { display: inline; }

.erp-hero-lede {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: var(--erp-ink-2);
  max-width: 40rem;
  margin: 0 0 36px;
}
.dark .erp-hero-lede { color: #b9c0d0; }

.erp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 44px; }

.erp-trust {
  display: flex; flex-wrap: wrap;
  gap: 14px 28px;
  color: var(--erp-mute);
  font-size: 14px;
  align-items: center;
}
.erp-trust > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.erp-trust svg { width: 18px; height: 18px; color: #10b981; flex-shrink: 0; }

/* ============================================ Hero stack composition (3D card cluster) */
.erp-stack {
  position: relative;
  perspective: 1600px;
  width: 100%;
  min-height: 520px;
}
.erp-stack-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-12deg);
  transition: transform 0.7s cubic-bezier(0.2,0.7,0.3,1);
}
.erp-stack:hover .erp-stack-inner { transform: rotateX(4deg) rotateY(-6deg); }

/* Main browser-style panel */
.erp-panel {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: min(100%, 560px);
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-r-lg);
  box-shadow: var(--erp-sh-deep);
  overflow: hidden;
  transform: translateZ(0);
}
.erp-panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #fafbff;
  border-bottom: 1px solid var(--erp-line);
}
.erp-dot { width: 11px; height: 11px; border-radius: 9999px; background: #e6e8eb; }
.erp-dot.r { background: #ff5f57; }
.erp-dot.y { background: #febc2e; }
.erp-dot.g { background: #28c840; }
.erp-panel-url {
  margin-inline-start: 12px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: 7px;
  font-size: 11.5px;
  color: var(--erp-mute);
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
}
.erp-panel-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px 0;
  background: #fafbff;
  border-bottom: 1px solid var(--erp-line);
}
.erp-panel-tab {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--erp-mute);
  border-radius: 6px 6px 0 0;
  background: transparent;
  border-bottom: 2px solid transparent;
}
.erp-panel-tab.is-active {
  color: var(--erp-indigo);
  background: #fff;
  border-bottom-color: var(--erp-indigo);
}
.erp-panel-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.erp-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.erp-kpi {
  background: linear-gradient(180deg, #fff, #fafbff);
  border: 1px solid var(--erp-line);
  border-radius: 12px;
  padding: 12px 14px;
}
.erp-kpi .lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--erp-mute); }
.erp-kpi .val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 4px;
  color: var(--erp-ink);
}
.erp-kpi .delta { font-size: 11px; color: #10b981; font-weight: 600; margin-top: 2px; }

/* Mini chart inside panel */
.erp-chart {
  position: relative;
  height: 160px;
  border-radius: 12px;
  border: 1px solid var(--erp-line);
  background:
    linear-gradient(180deg, rgba(99,91,255,0.06) 0%, transparent 60%),
    #fff;
  overflow: hidden;
  padding: 14px;
}
.erp-chart-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Floating card 1: transaction list */
.erp-float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-r-md);
  box-shadow: var(--erp-sh-float);
  padding: 14px 16px;
  transform: translateZ(60px);
}
.erp-float-card.is-tx {
  inset-block-start: 60%;
  inset-inline-start: -8%;
  width: 270px;
}
.erp-float-card.is-tx .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--erp-line-2);
}
.erp-float-card.is-tx .row:last-child { border-bottom: 0; }
.erp-float-card.is-tx .av {
  width: 28px; height: 28px;
  border-radius: 9999px;
  background: var(--erp-bg-soft);
  border: 1px solid var(--erp-line);
  flex-shrink: 0;
}
.erp-float-card.is-tx .row .av.v2,
.erp-float-card.is-tx .row .av.v3 { background: var(--erp-bg-soft); border: 1px solid var(--erp-line); }
.erp-float-card.is-tx .t { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.erp-float-card.is-tx .t1 { font-size: 12.5px; font-weight: 600; color: var(--erp-ink); }
.erp-float-card.is-tx .t2 { font-size: 11px; color: var(--erp-mute); }
.erp-float-card.is-tx .amt { font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.erp-float-card.is-tx .amt.up { color: #10b981; }

/* Floating card 2: AI assistant chip */
.erp-float-card.is-ai {
  inset-block-start: -3%;
  inset-inline-start: -10%;
  width: 240px;
  background:
    linear-gradient(135deg, rgba(99,91,255,0.06), rgba(168,85,247,0.06)),
    #fff;
}
.erp-float-card.is-ai .ai-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700;
  color: var(--erp-indigo);
  margin-bottom: 8px;
}
.erp-float-card.is-ai .ai-head .av {
  width: 28px; height: 28px; border-radius: 9999px;
  background: var(--erp-ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px;
}
.erp-float-card.is-ai .msg {
  font-size: 12px; line-height: 1.5; color: var(--erp-ink-2);
}
.erp-float-card.is-ai .typing {
  display: inline-flex; gap: 3px; margin-top: 8px;
}
.erp-float-card.is-ai .typing span {
  width: 5px; height: 5px; border-radius: 9999px;
  background: var(--erp-indigo);
  animation: erp-bounce 1.2s ease-in-out infinite;
}
.erp-float-card.is-ai .typing span:nth-child(2) { animation-delay: 0.18s; }
.erp-float-card.is-ai .typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes erp-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.dark .erp-panel,
.dark .erp-panel-bar,
.dark .erp-panel-tabs,
.dark .erp-kpi,
.dark .erp-chart,
.dark .erp-float-card { background: #0e1525; border-color: rgba(255,255,255,0.08); }
.dark .erp-panel-bar { background: #0a1120; }
.dark .erp-panel-url { background: #0a1120; color: #9aa3b2; }
.dark .erp-panel-tabs { background: #0a1120; }
.dark .erp-kpi { background: linear-gradient(180deg, #0e1525, #0a1120); }
.dark .erp-float-card.is-ai { background: linear-gradient(135deg, rgba(99,91,255,0.10), rgba(168,85,247,0.10)), #0e1525; }
.dark .erp-float-card.is-tx .t1 { color: #e6e8eb; }
.dark .erp-panel-tab.is-active { background: #0e1525; }

/* ============================================ Section head */
.erp-section-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 56px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.erp-section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.05;
  margin: 0;
}
.erp-section-head p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--erp-mute);
  margin: 0;
  max-width: 600px;
}

/* ============================================ Bento feature grid */
.erp-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
  gap: 20px;
}
.erp-bento > .erp-card { grid-column: span 3; }
.erp-bento > .erp-card.is-wide { grid-column: span 4; }
.erp-bento > .erp-card.is-narrow { grid-column: span 2; }
.erp-bento > .erp-card.is-tall { grid-column: span 3; grid-row: span 2; }
@media (max-width: 1024px) {
  .erp-bento { grid-template-columns: repeat(2, 1fr); }
  .erp-bento > .erp-card,
  .erp-bento > .erp-card.is-wide,
  .erp-bento > .erp-card.is-narrow,
  .erp-bento > .erp-card.is-tall { grid-column: span 1; grid-row: span 1; }
}
@media (max-width: 560px) {
  .erp-bento { grid-template-columns: 1fr; }
}

.erp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) { .erp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .erp-grid { grid-template-columns: 1fr; } }

/* ============================================ Card (flattened — no chrome) */
.erp-card {
  position: relative;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 24px 0;
  box-shadow: none;
  display: flex; flex-direction: column; gap: 12px;
}
.erp-card::before { display: none; }
.erp-card:hover { background: transparent; box-shadow: none; transform: none; border-color: transparent; }
.erp-card h3 { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.25; margin: 0; font-weight: 700 !important; }
.erp-card p { font-size: 0.95rem; line-height: 1.65; color: var(--erp-mute); margin: 0; }
.dark .erp-card p { color: #9aa3b2; }

.erp-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--erp-bg-soft);
  border: 1px solid var(--erp-line);
  color: var(--erp-ink);
  flex-shrink: 0;
}
.erp-icon svg { width: 22px; height: 22px; }
/* All variants now monochrome — same as base */
.erp-icon.is-sky,
.erp-icon.is-indigo,
.erp-icon.is-violet,
.erp-icon.is-pink,
.erp-icon.is-amber { color: var(--erp-ink); background: var(--erp-bg-soft); border-color: var(--erp-line); }
.dark .erp-icon { color: #e6e8eb; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }

/* ============================================ Split layout (no cards) */
.erp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .erp-split { grid-template-columns: 1fr; } }
.erp-split h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  margin: 0;
}

/* Feature list (no cards) */
.erp-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.erp-feature-list > li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--erp-line);
}
.erp-feature-list > li:first-child { padding-top: 0; }
.erp-feature-list > li:last-child  { border-bottom: 0; }

/* 2-column variant — two flat feature columns separated by a divider */
.erp-feature-list.is-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.erp-feature-list.is-two-col > li {
  grid-template-columns: 48px 1fr;
  padding: 28px 0;
}
.erp-feature-list.is-two-col > li:nth-child(2) { padding-top: 28px; border-top: 0; }
.erp-feature-list.is-two-col > li:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 800px) {
  .erp-feature-list.is-two-col { grid-template-columns: 1fr; }
  .erp-feature-list.is-two-col > li:nth-last-child(2) { border-bottom: 1px solid var(--erp-line); }
}
.erp-feature-list h3 {
  font-size: 1.05rem !important;
  line-height: 1.3;
  margin: 0 0 4px;
  font-weight: 700 !important;
}
.erp-feature-list p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--erp-mute);
  margin: 0;
}
.dark .erp-feature-list > li { border-color: rgba(255,255,255,0.08); }
.dark .erp-feature-list p { color: #9aa3b2; }

/* Form styles */
.erp-form {
  background: #fff;
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-r-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--erp-sh-card);
}
.dark .erp-form { background: rgba(14,21,37,0.7); border-color: rgba(255,255,255,0.08); }
.erp-form .erp-field {
  margin-bottom: 18px;
}
.erp-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--erp-ink-2);
  margin-bottom: 8px;
}
.dark .erp-form label { color: #b9c0d0; }
.erp-form input,
.erp-form select,
.erp-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--erp-line) !important;
  border-radius: 10px !important;
  font-size: 15px;
  color: var(--erp-ink);
  font-family: inherit;
}
.dark .erp-form input,
.dark .erp-form select,
.dark .erp-form textarea { background: #0e1525; color: #e6e8eb; border-color: rgba(255,255,255,0.08) !important; }
.erp-form textarea { resize: vertical; }
.erp-field-error {
  display: none;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 6px;
}
.erp-field-error:not(:empty) { display: block; }
.erp-alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-size: 14.5px;
}
.erp-alert.is-ok  { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.erp-alert.is-err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Tech-stack grid (chip-style) */
.erp-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.erp-tech-item {
  padding: 14px 18px;
  border: 1px solid var(--erp-line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--erp-ink-2);
  text-align: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.erp-tech-item:hover {
  border-color: rgba(99,91,255,0.4);
  color: var(--erp-indigo);
  transform: translateY(-1px);
}
.dark .erp-tech-item { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); color: #c9cfdb; }

/* Numbered phase badge */
.erp-phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--erp-bg-soft);
  border: 1px solid var(--erp-line);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--erp-indigo);
  flex-shrink: 0;
}
.dark .erp-phase-num { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); color: #c7d2fe; }

/* Inline checklist */
.erp-checklist {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}
@media (max-width: 720px) { .erp-checklist { grid-template-columns: 1fr; } }
.erp-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--erp-ink-2);
  padding: 0 !important;
  border: 0 !important;
}
.erp-checklist svg { color: var(--erp-indigo); flex-shrink: 0; }
.dark .erp-checklist li { color: #b9c0d0; }

/* Pill row (no cards) */
.erp-pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.erp-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 9999px;
  background: var(--erp-bg-soft);
  border: 1px solid var(--erp-line);
  font-weight: 600;
  font-size: 15px;
  color: var(--erp-ink);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.erp-pill:hover { border-color: rgba(99,91,255,0.4); transform: translateY(-1px); }
.erp-pill .erp-icon { width: 32px; height: 32px; border-radius: 9999px; }
.erp-pill .erp-icon svg { width: 16px; height: 16px; }
.dark .erp-pill { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); color: #e6e8eb; }

/* ============================================ Stat band */
.erp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .erp-stats { grid-template-columns: repeat(2, 1fr); } }
.erp-stat { text-align: start; padding: 28px; border-radius: var(--erp-r-lg); background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.08); }
.erp-stat .num {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.erp-stat .lbl { display: block; margin-top: 10px; font-size: 13px; color: #b9c0d0; font-weight: 500; }

/* ============================================ Logo strip */
.erp-logostrip { padding: 36px 0 56px; text-align: center; }
.erp-logostrip-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--erp-mute);
  margin-bottom: 24px;
  font-weight: 600;
}
.erp-logostrip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  opacity: 0.9;
}
.erp-logostrip-item {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--erp-ink-2);
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.erp-logostrip-item:hover { opacity: 1; color: var(--erp-indigo); }
.dark .erp-logostrip-item { color: #c9cfdb; }

/* ============================================ Divider */
.erp-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(99,91,255,0.30) 50%, transparent 100%);
  border: 0;
  margin: 0 auto;
  width: min(60%, 720px);
}

/* ============================================ Final CTA band */
.erp-cta-band {
  position: relative;
  isolation: isolate;
  border-radius: var(--erp-r-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  background: #0a1f44;
  color: #fff;
  overflow: hidden;
  margin: 0 24px;
  max-width: 1200px;
  margin-inline: auto;
}
.erp-cta-band::before { display: none; }
.erp-cta-band h2 { color: #fff !important; font-size: clamp(2rem, 4.5vw, 3.5rem); margin-bottom: 16px; }
.erp-cta-band p { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 620px; margin: 0 auto 28px; }

/* ============================================ Misc */
nav.fixed {
  background-color: rgba(255,255,255,0.78) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(15,23,42,0.06);
}
.dark nav.fixed {
  background-color: rgba(6,9,20,0.80) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

footer.bg-gray-900 {
  background: #0a1f44 !important;
  position: relative;
}
footer.bg-gray-900::before { display: none; }

input:not([type="radio"]):not([type="checkbox"]),
textarea, select {
  border-radius: 12px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
input:focus:not([type="radio"]):not([type="checkbox"]),
textarea:focus, select:focus {
  box-shadow: 0 0 0 4px rgba(99,91,255,0.18) !important;
  border-color: var(--erp-indigo) !important;
  outline: none !important;
}

::selection { background: rgba(99,91,255,0.4); color: #fff; }

/* ============================================================
   LEGACY MARKUP ADAPTER
   Pages that still use the old Tailwind/glass-morphism classes
   inherit the new Erplab look automatically.
   ============================================================ */

/* Old hero/section glass cards → FLATTENED (no card chrome at all) */
body .card-hover,
body .card,
body [class*="rounded-2xl"][class*="shadow"]:not(nav *):not(footer *):not(.erp-panel):not(.erp-float-card):not(.erp-kpi):not(.erp-chart):not(.erp-cta-band) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 24px 0 !important;
  transform: none !important;
  transition: none !important;
}
body .card-hover:hover,
body .card:hover,
body [class*="rounded-2xl"][class*="shadow"]:not(nav *):not(footer *):not(.erp-panel):not(.erp-float-card):not(.erp-cta-band):hover {
  transform: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* Add a thin top divider between former-cards inside a grid */
body .grid > .card-hover + .card-hover,
body .grid > .card + .card,
body .grid > [class*="rounded-2xl"][class*="shadow"]:not(:first-child) {
  border-top: 1px solid var(--erp-line) !important;
}
.dark body .grid > .card-hover + .card-hover,
.dark body .grid > .card + .card,
.dark body .grid > [class*="rounded-2xl"][class*="shadow"]:not(:first-child) {
  border-top-color: rgba(255,255,255,0.08) !important;
}

/* Old colorful gradient icon tiles → monochrome navy */
/* Small icon tiles (w-16 h-16 gradient boxes): keep compact, monochrome */
body .w-16.h-16[class*="bg-gradient"],
body [class*="bg-gradient-to-br"][class*="rounded-2xl"]:not(.erp-icon):not([class*="w-32"]):not([class*="w-48"]) {
  background: var(--erp-bg-soft) !important;
  border: 1px solid var(--erp-line) !important;
  color: var(--erp-ink) !important;
  box-shadow: none !important;
}
body [class*="bg-gradient-to-r"][class*="rounded-xl"]:not(.erp-btn-primary):not(.erp-btn-primary *) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body [class*="bg-gradient-to-br"][class*="rounded-2xl"] svg,
body .w-16.h-16[class*="bg-gradient"] svg {
  color: var(--erp-ink) !important;
}
.dark body [class*="bg-gradient-to-br"][class*="rounded-2xl"]:not(.erp-icon),
.dark body .w-16.h-16[class*="bg-gradient"] {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.10) !important;
}

/* Neutral-tint illustration boxes (bg-gray-100/50, bg-white/X with rounded) → flatten */
body [class*="bg-gray-100"][class*="rounded"]:not(footer *):not(nav *):not(.erp-icon),
body [class*="bg-gray-50"][class*="rounded-2xl"]:not(footer *):not(nav *):not(.erp-icon),
body [class*="bg-gray-50"][class*="rounded-3xl"]:not(footer *):not(nav *):not(.erp-icon),
body [class*="bg-white/"][class*="rounded-2xl"]:not(footer *):not(nav *):not(.erp-icon),
body [class*="bg-white/"][class*="rounded-3xl"]:not(footer *):not(nav *):not(.erp-icon),
body [class*="bg-gray-100/"][class*="rounded"]:not(footer *):not(nav *):not(.erp-icon),
body .card-hover > div[class*="rounded"],
body .card > div[class*="rounded"] {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

/* Large gradient illustration boxes (the </> hero blocks on /en/services etc.) → fully flatten */
body [class*="w-32"][class*="bg-gradient"],
body [class*="w-48"][class*="bg-gradient"],
body [class*="w-64"][class*="bg-gradient"],
body [class*="h-64"][class*="bg-gradient"],
body [class*="aspect-square"][class*="bg-gradient"],
body .aspect-square[class*="bg-gradient"],
body .aspect-square.rounded-2xl,
body [class*="rounded-3xl"][class*="bg-gradient"],
body [class*="rounded-2xl"][class*="bg-gradient"]:not(.erp-btn-primary):not(footer *):not(nav *) {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--erp-ink) !important;
  box-shadow: none !important;
}
body [class*="w-32"][class*="bg-gradient"] svg,
body [class*="aspect-square"][class*="bg-gradient"] svg,
body .aspect-square svg,
body [class*="rounded-3xl"][class*="bg-gradient"] svg,
body [class*="rounded-2xl"][class*="bg-gradient"] svg {
  color: var(--erp-indigo) !important;
}

/* Kill the heavy blob/blur backdrops on legacy sections */
body .blob,
body .filter.blur-3xl,
body [class*="filter blur-3xl"],
body [class*="bg-primary-500/"][class*="rounded-full"][class*="blur"],
body [class*="bg-secondary-500/"][class*="rounded-full"][class*="blur"],
body [class*="bg-accent-500/"][class*="rounded-full"][class*="blur"],
body [class*="bg-violet-500/"][class*="rounded-full"][class*="blur"],
body [class*="bg-purple-500/"][class*="rounded-full"][class*="blur"] {
  display: none !important;
}

/* Mesh gradient on hero sections → kill the multi-color glow */
body .mesh-gradient,
body [class*="mesh-gradient"] {
  background: none !important;
  background-image: none !important;
  animation: none !important;
  opacity: 0 !important;
}

/* Particles canvas + any canvas/star backdrop → hide (scope: anywhere outside hero mockup) */
body canvas:not(.erp-mockup canvas),
body #particlesCanvas,
body #starsCanvas,
body [id*="particles" i],
body [id*="stars" i] { display: none !important; }

/* Legacy hero sections (min-h-screen) → compact, not viewport-tall */
section.min-h-screen,
section[class*="min-h-screen"],
.min-h-screen:not(body):not(html) {
  min-height: 0 !important;
  padding-top: clamp(5rem, 9vw, 8rem) !important;
  padding-bottom: clamp(3rem, 5vw, 5rem) !important;
}

/* Scroll indicator (down arrow) → hide */
.animate-bounce,
[class*="animate-bounce"]:not(footer *):not(nav *) {
  display: none !important;
}

/* Strip all kinds of multi-color gradient page backgrounds */
section [class*="bg-gradient-to-"]:not(.erp-btn-primary):not(.erp-btn-primary *),
section .absolute[class*="bg-"][class*="opacity"],
section .absolute[style*="linear-gradient"],
section .absolute[style*="radial-gradient"],
section .absolute > .bg-gradient-to-r,
section .absolute > .bg-gradient-to-br,
section .absolute.inset-0[style*="background"],
section .absolute.inset-0[class*="bg-"]:not(.erp-cta-band *):not(.erp-hero *) {
  background: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
}

/* Doubled required asterisk fix — main.css adds one via ::after, EJS adds one in text */
label::after { content: none !important; }

/* Legacy badge pills (violet/purple/primary) → Erplab eyebrow style */
body span[class*="bg-violet-100"],
body span[class*="bg-violet-900/30"],
body span[class*="bg-primary-100"] {
  background: var(--erp-bg-soft) !important;
  color: var(--erp-ink-2) !important;
  border: 1px solid var(--erp-line) !important;
}

/* Legacy headings → Inter 800-900, navy */
body h1, body h2, body h3 { color: var(--erp-ink); }
.dark body h1, .dark body h2, .dark body h3 { color: #f6f7fb; }

/* Legacy primary CTA links → erp-btn-primary look */
body .btn-magnetic.bg-white,
body a.bg-white.text-primary-700,
body a[class*="bg-primary-600"][class*="rounded"]:not(footer *),
body button[class*="bg-primary-600"]:not(footer *) {
  background: var(--erp-grad) !important;
  background-size: 220% 220% !important;
  color: #fff !important;
  border-radius: 9999px !important;
  padding: 14px 24px !important;
  box-shadow: 0 12px 28px -10px rgba(99,91,255,0.55) !important;
  font-weight: 600 !important;
}

/* Legacy text-gradient (rainbow) — neutralize */
body .gradient-text,
body .text-gradient,
body [class*="gradient-text"] {
  background: none !important;
  background-image: none !important;
  -webkit-text-fill-color: var(--erp-ink) !important;
  color: var(--erp-ink) !important;
  background-clip: initial !important;
  -webkit-background-clip: initial !important;
  animation: none !important;
}
.dark body .gradient-text,
.dark body .text-gradient {
  -webkit-text-fill-color: #f6f7fb !important;
  color: #f6f7fb !important;
}

/* Old colored bg tags */
body [class*="bg-violet-100"],
body [class*="dark:bg-violet-900"] { color: var(--erp-ink-2) !important; }

@media (prefers-reduced-motion: reduce) {
  .erp-grad-text, .erp-ribbon::before, .erp-ribbon::after,
  .erp-cta-band::before, .erp-float-card.is-ai .typing span,
  .erp-stack-inner { animation: none !important; transition: none !important; }
}
