/* ── CUSTOM ERP LANDING PAGE (/custom-erp-software) ──
   Scoped to #main.erp / .erp-*. Same palette and type as the case-study pages (codifly-theme.css
   tokens: ink bands, violet accent, white and #faf8ff sections, Outfit headings), kept quieter:
   flat cards with one border, no floating shapes, motion only on hover and focus. */
.erp {
  --erp-line: #ece7fb;
  --erp-soft: #faf8ff;
  --erp-band: linear-gradient(135deg, var(--ink) 0%, #2a1766 60%, #33196f 100%);
  --erp-accent: linear-gradient(100deg, var(--v1) 10%, #9fd0ff 60%, var(--cyan) 100%);
  --erp-ease: cubic-bezier(.16, 1, .3, 1);
  overflow-x: clip;
  color: var(--ink2);
}
#main.erp h1,
#main.erp h2,
#main.erp h3 { font-family: 'Outfit', sans-serif !important; color: var(--ink) !important; }
#main.erp h1 span,
#main.erp h2 span,
#main.erp h3 span { font-family: inherit; }
#main.erp .erp-band h1,
#main.erp .erp-band h2,
#main.erp .erp-band h3 { color: #fff !important; }
.erp p { margin: 0; }
.erp ul,
.erp ol { margin: 0; padding: 0; list-style: none; }
.erp li { margin: 0; }
.erp a:not(.erp-btn) { color: var(--v2); text-decoration: underline; text-decoration-color: rgba(124,92,252,.35); text-underline-offset: 3px; }
.erp a:not(.erp-btn):hover { color: var(--ink); text-decoration-color: currentColor; }
.erp a:focus-visible,
.erp button:focus-visible,
.erp summary:focus-visible,
.erp input:focus-visible,
.erp select:focus-visible,
.erp textarea:focus-visible { outline: 2px solid var(--v2) !important; outline-offset: 3px; }
.erp-band a:focus-visible,
.erp-band button:focus-visible { outline-color: var(--cyan) !important; }
.erp svg { flex: none; }

/* desktop header fit (as on the case-study, hire and AI pages): the header shows from 871px but needs
   ~1200px at full size, so compact it until it fits */
@media (min-width: 871px) and (max-width: 1279px) {
  #header .logo-size { height: 46px !important; margin-right: 16px; }
  #header #navbar ul li a,
  #header #navbar .nav-link { font-size: 13px !important; padding: 8px 8px !important; }
  #header .nav-cta-btn { margin-left: 10px; padding: 9px 16px !important; font-size: 12.5px !important; }
}
@media (min-width: 871px) and (max-width: 1023px) {
  #header #navbar ul li a,
  #header #navbar .nav-link { font-size: 12.5px !important; padding: 8px 7px !important; }
  #header .nav-cta-btn { display: none !important; }
}

/* ── shared pieces ── */
.erp-sec { padding: 96px 0; background: #fff; }
.erp-sec.is-soft { background: var(--erp-soft); }
.erp-band { position: relative; background: var(--erp-band); color: rgba(255,255,255,.78); }
.erp-head { max-width: 760px; margin: 0 0 44px; }
#main.erp h2 { margin: 0 0 16px; font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; text-wrap: balance; }
.erp-lead { font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.erp-band .erp-lead { color: rgba(255,255,255,.72); }
.erp-eyebrow { display: inline-block; margin: 0 0 16px !important; padding: 6px 14px; border: 1px solid rgba(163,140,255,.35); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #cfc4ff; }
.erp-eyebrow.is-light { border-color: var(--bdr); background: var(--v4); color: var(--v2); }
.erp-note { margin-top: 20px !important; padding: 14px 16px; border-left: 3px solid var(--v2); border-radius: 0 10px 10px 0; background: var(--v5); font-size: 14.5px; line-height: 1.6; color: var(--ink2); }
.erp-note.is-center { max-width: 640px; margin: 28px auto 0 !important; border-left: 0; border-radius: 10px; text-align: center; }
.erp-list-title { margin: 0 0 16px !important; font-size: 18px !important; font-weight: 700; }
.erp-list-title.is-spaced { margin-top: 48px !important; }

/* buttons */
.erp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none !important; cursor: pointer; transition: transform .3s var(--erp-ease), box-shadow .3s, background .3s, border-color .3s, color .3s; }
.erp-btn svg { width: 18px; height: 18px; transition: transform .3s var(--erp-ease); }
.erp-btn:hover svg { transform: translateX(3px); }
.erp-btn-primary { background: var(--v2); color: #fff !important; box-shadow: 0 12px 28px -12px rgba(124,92,252,.8); }
.erp-btn-primary:hover { background: #6a48f0; color: #fff !important; transform: translateY(-1px); box-shadow: 0 16px 34px -12px rgba(124,92,252,.9); }
.erp-btn-ghost { border-color: rgba(255,255,255,.28); background: transparent; color: #fff !important; }
.erp-btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); color: #fff !important; }
.erp-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.erp-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 700; text-decoration: none !important; }
.erp-link svg { width: 17px; height: 17px; transition: transform .3s var(--erp-ease); }
.erp-link:hover svg { transform: translateX(3px); }

/* icon tile */
.erp-ic { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 0 16px; border-radius: 12px; background: var(--v4); color: var(--v2); }
.erp-ic svg { width: 21px; height: 21px; }
.erp-ic.is-sm { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.erp-ic.is-sm svg { width: 18px; height: 18px; }

/* grids and cards */
.erp-grid { display: grid; gap: 20px; }
.erp-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.erp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.erp-card { display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--erp-line); border-radius: 18px; background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--erp-ease); }
.erp-card:hover { border-color: rgba(124,92,252,.35); box-shadow: 0 20px 40px -30px rgba(76,52,170,.55); }
.erp-card.is-flat .erp-ic { margin-bottom: 14px; }
#main.erp .erp-card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.erp-card p { font-size: 15px; line-height: 1.65; color: var(--muted); }

.erp-checks { display: grid; gap: 10px; margin: 18px 0 24px !important; }
.erp-checks li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.erp-checks svg { width: 18px; height: 18px; margin-top: 2px; padding: 2px; border-radius: 50%; background: var(--v4); color: var(--v2); stroke-width: 3; }

/* ── 1. HERO ── */
.erp-hero { padding: 72px 0 80px; overflow: hidden; }
.erp-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 60% at 80% 40%, rgba(124,92,252,.28), transparent 70%); pointer-events: none; }
.erp-hero-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 48px; }
#main.erp h1 { margin: 0 0 20px; font-size: clamp(34px, 4.2vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -1.6px; text-wrap: balance; }
.erp-accent { display: block; background: var(--erp-accent); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
.erp-hero-text { max-width: 580px; margin: 0 0 30px !important; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.76); }
.erp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.erp-proof { display: flex; gap: 10px; max-width: 560px; margin-top: 28px !important; font-size: 14.5px; line-height: 1.55; color: rgba(255,255,255,.7); }
.erp-proof svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(0,229,255,.16); color: var(--cyan); stroke-width: 3; }
.erp .erp-proof a { color: #fff !important; text-decoration-color: rgba(255,255,255,.4); }
.erp .erp-proof a:hover { color: #fff !important; text-decoration-color: #fff; }

.erp-hero-visual { margin: 0; }
/* the dashboard window, with the dealer app over its lower-right corner (the blurred revenue card) */
.erp-hero-screens { position: relative; padding: 0 0 18% 0; }
.erp-win { overflow: hidden; width: 88%; border-radius: 12px; background: #fff; box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.12); }
.erp-win img,
.erp-phone img,
.erp-project-shot img { display: block; width: 100%; height: auto; }
.erp-phone { position: absolute; right: 0; bottom: 0; width: 26%; overflow: hidden; border: 6px solid #0b0918; border-radius: 28px; background: #0b0918; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.12); }
.erp-phone img { border-radius: 22px; }
.erp-frame-bar { display: flex; gap: 6px; padding: 9px 12px; background: #f1eef8; border-bottom: 1px solid #e6e0f5; }
.erp-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d6cfe8; }
.erp-hero-visual figcaption { margin-top: 16px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.55); }

/* ── 3. SOLUTION ── */
.erp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 56px; }
.erp-split .erp-head { margin: 0; }
.erp-caps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.erp-caps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--erp-line); border-radius: 12px; background: #fff; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }

/* ── 4. USE CASES ── */
.erp-usecase { padding: 32px 30px; }
#main.erp .erp-usecase h3 { font-size: 22px; }

/* ── 5. WORK ── */
.erp-projects { display: grid; gap: 28px; }
.erp-project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px; padding: 28px; border: 1px solid var(--erp-line); border-radius: 22px; background: #fff; }
.erp-project:nth-child(even) .erp-project-shot { order: 2; }
.erp-project-shot { overflow: hidden; border: 1px solid var(--erp-line); border-radius: 12px; background: #fff; box-shadow: 0 24px 50px -36px rgba(26,16,64,.6); }
.erp-project-body { display: flex; flex-direction: column; }
.erp-project-cat { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--v2); }
#main.erp .erp-project h3 { margin: 6px 0 14px; font-size: 26px; font-weight: 800; }
.erp-project-label { margin: 8px 0 6px !important; font-size: 13px; font-weight: 700; color: var(--ink); }
.erp-project-body > p:not([class]) { font-size: 15px; line-height: 1.6; color: var(--muted); }
.erp-project .erp-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px !important; }
.erp-project .erp-checks li { font-size: 14px; }

/* ── 6. COMPARE ── */
.erp-compare.is-accent { border-color: rgba(124,92,252,.35); background: linear-gradient(180deg, var(--v5), #fff 60%); }
.erp-compare .erp-checks { margin-bottom: 0 !important; }
.erp-tradeoffs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.erp-tradeoffs div { padding: 20px; border-top: 3px solid var(--v3); border-radius: 0 0 12px 12px; background: var(--erp-soft); }
.erp-tradeoffs dt { margin: 0 0 6px; font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700; color: var(--ink); }
.erp-tradeoffs dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ── 7. PROCESS ── */
.erp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.erp-steps li { position: relative; padding: 24px 20px; border: 1px solid rgba(163,140,255,.22); border-radius: 16px; background: rgba(255,255,255,.04); }
.erp-step-n { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 0 16px; border-radius: 50%; background: var(--v2); font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 800; color: #fff; }
#main.erp .erp-steps h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.erp-steps p { font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.7); }

/* ── 8. COST ── */
.erp-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 40px; padding: 28px 32px; border-radius: 18px; background: var(--erp-soft); border: 1px solid var(--erp-line); }
.erp-inline-cta p { max-width: 620px; font-size: 16px; line-height: 1.6; color: var(--ink2); }
.erp-inline-cta .erp-btn { flex: none; }

/* ── 9. FAQ ── */
.erp-faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; gap: 48px; }
.erp-faq { display: grid; gap: 10px; }
.erp-faq details { border: 1px solid var(--erp-line); border-radius: 14px; background: #fff; transition: border-color .3s; }
.erp-faq details[open] { border-color: rgba(124,92,252,.35); }
.erp-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; border-radius: 14px; }
.erp-faq summary::-webkit-details-marker { display: none; }
#main.erp .erp-faq h3 { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.erp-faq-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--v4); color: var(--v2); transition: transform .3s var(--erp-ease); }
.erp-faq-ic svg { width: 16px; height: 16px; }
.erp-faq details[open] .erp-faq-ic { transform: rotate(45deg); }
.erp-faq details p { padding: 0 20px 20px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ── 10. ENQUIRY ── */
.erp-enquiry { scroll-margin-top: 80px; }
.erp-enquiry-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: 56px; }
.erp-enquiry-copy .erp-lead { margin-bottom: 32px !important; }
.erp-next { display: grid; gap: 12px; counter-reset: erp-next; }
.erp-next li { position: relative; padding-left: 40px; font-size: 15px; line-height: 1.55; counter-increment: erp-next; }
.erp-next li::before { content: counter(erp-next); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(163,140,255,.2); font-size: 13px; font-weight: 800; color: #fff; }
.erp-alt { margin-top: 32px !important; font-size: 15px; }
.erp .erp-alt a { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-weight: 700; text-decoration-color: rgba(255,255,255,.4); }
.erp-alt svg { width: 18px; height: 18px; color: #25d366; }

.erp-form-card { padding: 32px; border-radius: 22px; background: #fff; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); color: var(--ink2); }
.erp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.erp-field { display: flex; flex-direction: column; min-width: 0; margin: 0; padding: 0; border: 0; }
.erp-field.is-wide { grid-column: 1 / -1; }
.erp-field label,
.erp-field legend { margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.erp-field label span[aria-hidden],
.erp-field legend span[aria-hidden] { color: #c0264d; }
.erp-opt { font-weight: 500; color: var(--muted); }
.erp-field input,
.erp-field select,
.erp-field textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #d9d2ee; border-radius: 10px; background: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 16px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.erp-field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.erp-field input::placeholder,
.erp-field textarea::placeholder { color: #9a92b5; }
.erp-field input:focus,
.erp-field select:focus,
.erp-field textarea:focus { border-color: var(--v2); box-shadow: 0 0 0 3px rgba(124,92,252,.18); outline: none; }
.erp-field [aria-invalid="true"] { border-color: #c0264d; }
.erp-err { margin-top: 6px !important; font-size: 13.5px; font-weight: 600; color: #b3123f; }
.erp-hint { margin-top: 6px !important; font-size: 13px; color: var(--muted); }
.erp-radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.erp-radio { position: relative; display: inline-flex; cursor: pointer; margin: 0 !important; }
.erp-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.erp-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #d9d2ee; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink2); transition: border-color .2s, background .2s, color .2s; }
.erp-radio input:checked + span { border-color: var(--v2); background: var(--v4); color: var(--v2); }
.erp-radio input:focus-visible + span { outline: 2px solid var(--v2); outline-offset: 2px; }
.erp-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.erp-form-alert { margin: 0 0 18px !important; padding: 12px 14px; border-radius: 10px; background: #fdecf0; font-size: 14.5px; font-weight: 600; color: #8c0e33; }
.erp-form .g-recaptcha { margin-top: 18px; }
.erp-privacy { margin-top: 20px !important; font-size: 13px; line-height: 1.55; color: var(--muted); }
.erp-submit { width: 100%; margin-top: 18px; min-height: 56px; font-size: 16px; }
.erp-form[hidden],
.erp-form [hidden],
.erp-done[hidden] { display: none !important; }

.erp-done { padding: 12px 4px; outline: none; }
.erp-done-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 0 18px; border-radius: 50%; background: #e6f7ee; color: #1b7a46; }
.erp-done-ic svg { width: 28px; height: 28px; stroke-width: 3; }
#main.erp .erp-done h3 { margin: 0 0 10px; font-size: 24px; font-weight: 800; color: var(--ink) !important; }
.erp-done > p { font-size: 15.5px; line-height: 1.65; color: var(--ink2); }
.erp-done .erp-next { margin: 22px 0 !important; }
.erp-done .erp-next li { color: var(--ink2); }
.erp-done .erp-next li::before { background: var(--v4); color: var(--v2); }
.erp-done-alt { font-size: 14px; color: var(--muted) !important; }

/* ── responsive ── */
@media (max-width: 1100px) {
  .erp-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .erp-tradeoffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erp-project { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .erp-project:nth-child(even) .erp-project-shot { order: 0; }
}
@media (max-width: 900px) {
  .erp-sec { padding: 72px 0; }
  .erp-hero { padding: 40px 0 56px; }
  .erp-hero-wrap,
  .erp-split,
  .erp-faq-wrap,
  .erp-enquiry-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .erp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erp-hero-visual { max-width: 560px; }
  .erp-faq-wrap .erp-head { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .erp-sec { padding: 56px 0; }
  .erp-hero { padding: 28px 0 48px; }
  #main.erp h1 { font-size: clamp(29px, 8vw, 36px); letter-spacing: -1px; }
  .erp-hero-text { font-size: 16px; margin-bottom: 24px !important; }
  .erp-actions .erp-btn { width: 100%; }
  .erp-grid-2,
  .erp-grid-3,
  .erp-caps,
  .erp-steps,
  .erp-tradeoffs,
  .erp-fields,
  .erp-project .erp-checks { grid-template-columns: minmax(0, 1fr); }
  .erp-card { padding: 22px 20px; }
  .erp-project { padding: 18px; }
  .erp-inline-cta { flex-direction: column; align-items: stretch; padding: 22px 20px; }
  .erp-form-card { padding: 22px 18px; border-radius: 18px; }
  .erp-phone { border-width: 4px; border-radius: 20px; }
  .erp-phone img { border-radius: 16px; }
  .erp-faq summary { padding: 16px; }
  .erp-faq details p { padding: 0 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .erp *,
  .erp *::before,
  .erp *::after { transition: none !important; animation: none !important; }
}
