/* ==========================================================================
   /erp-migration/ — long-form page on moving off 1C or BAS.
   Loaded only on that route (see synvolve_assets in functions.php), because
   nothing here is reused anywhere else on the site.
   Tokens come from bento.css; no new colours are introduced.
   ========================================================================== */

/* Measure: every text container is capped at 54ch rather than the 58ch to
   68ch it started at. `ch` is the width of the digit zero, which is wider
   than average lowercase, so 58ch rendered 84 English characters per line.
   Ukrainian words are longer and were already inside the comfortable range;
   English was not. Measured per rendered line, not estimated. */
.erp-wrap { padding: 120px 28px 60px; max-width: 1100px; }

/* ---------- head ---------- */
.erp-head { max-width: 780px; margin-bottom: 44px; }
.erp-head h1 {
  text-wrap: balance;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
  color: var(--ink);
}
.erp-lead {
  color: var(--ink-soft);
  font-size: 17.5px;
  line-height: 1.62;
  max-width: 54ch;
  text-wrap: pretty;
  margin: 0 0 26px;
}

/* ---------- sections ---------- */
.erp-section { margin: 0 0 64px; }
.erp-section > h2 {
  font-size: clamp(23px, 2.7vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--ink);
  scroll-margin-top: 90px;
}
.erp-section > p {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.68;
  max-width: 54ch;
  text-wrap: pretty;
  margin: 0 0 16px;
}
.erp-section h3 {
  font-size: 16.5px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--ink);
}



.erp-note {
  color: var(--ink-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.erp-note--wide {
  max-width: 54ch;
  border-left: 2px solid var(--border-strong);
  padding-left: 16px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---------- risks ---------- */
.erp-risks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.erp-risk {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 24px;
}
.erp-risk p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.62;  text-wrap: pretty;
}
.erp-risk--hard { border-color: rgba(245,148,24,0.34); background: var(--card-soft); }

/* ---------- facts ---------- */
.erp-facts { list-style: none; padding: 0; margin: 20px 0 22px; }
.erp-facts li {
  position: relative;
  padding: 0 0 12px 20px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  max-width: 54ch;
  text-wrap: pretty;
}
.erp-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  background: var(--accent-solid);
}

/* ---------- faq ---------- */
.erp-faq {
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.erp-faq details { border-bottom: 1px solid var(--border); }
.erp-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
}
.erp-faq summary::-webkit-details-marker { display: none; }
.erp-faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 26px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-dim);
  border-bottom: 2px solid var(--ink-dim);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.erp-faq details[open] summary::after { transform: rotate(225deg); top: 24px; }
.erp-faq summary:hover { color: var(--accent-solid-hover); }
.erp-faq details p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.68;
  max-width: 54ch;
}

/* ---------- mid-page contact ---------- */
.erp-mid {
  background: var(--card-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 38px 32px;
  margin: 0 0 64px;
}
.erp-mid__inner { max-width: 54ch; }
.erp-mid h2 {
  text-wrap: balance;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ink);
}
.erp-mid p {
  text-wrap: pretty;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.64;
  margin: 0 0 22px;
}

/* ---------- hero: secondary action ---------- */
/* A text link rather than a second button: the page has one primary action,
   and two buttons of equal weight above the fold split it. */
.erp-actions__link {
  align-self: center;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border-strong);
}
.erp-actions__link:hover { color: var(--ink); text-decoration-color: var(--accent-solid); }

/* ---------- two starting points ---------- */
/* Neither column is the good one, so they carry no yes/no colour. The reader
   is meant to recognise themselves here, not pick a side. */
.erp-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.erp-fork__col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
}
.erp-fork__col h3 { margin: 0 0 14px; font-size: 17px; }
.erp-fork__col ul { list-style: none; padding: 0; margin: 0; }
.erp-fork__col li {
  position: relative;
  padding: 0 0 12px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.58;
  text-wrap: pretty;
}
.erp-fork__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink-dim);
  border-radius: 3px;
}
.erp-fork__end {
  margin: 10px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.56;
  font-weight: 600;
  text-wrap: pretty;
}

/* ---------- interface screenshots ---------- */
/* A 1600px dashboard scaled into a 468px phone slot renders body text at four
   pixels, so a phone gets a tight crop of the part that carries the point
   rather than an unreadable thumbnail of the whole screen. */
.erp-shot { margin: 26px 0 0; }
.erp-shot picture { display: block; }
.erp-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}
.erp-shot figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 54ch;
  text-wrap: pretty;
}

/* ---------- the measured change ---------- */
.erp-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 24px;
}
.erp-num {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
}
.erp-num__fig {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-solid);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.erp-num p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- three steps ---------- */
.erp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  counter-reset: none;
}
.erp-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
}
.erp-step__idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  border-radius: 9px;
  background: var(--accent-solid);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 800;
}
.erp-step h3 { margin: 0 0 4px; font-size: 17px; }
.erp-step__term {
  display: block;
  margin-bottom: 12px;
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.erp-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---------- the pilot offer ---------- */
.erp-offer {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 0;
  margin-top: 24px;
  border: 1px solid rgba(245,148,24,0.34);
  border-radius: 20px;
  overflow: hidden;
}
.erp-offer__body { background: var(--card); padding: 28px 30px; }
.erp-offer__body h3 { margin: 0 0 14px; font-size: 16px; }
.erp-offer__body ul { list-style: none; padding: 0; margin: 0; }
.erp-offer__body li {
  position: relative;
  padding: 0 0 10px 22px;
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
}
.erp-offer__body li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 8px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--accent-solid);
  border-bottom: 2px solid var(--accent-solid);
  transform: rotate(-45deg);
}
.erp-offer__price {
  background: var(--card-soft);
  padding: 28px 30px;
  border-left: 1px solid var(--border);
}
.erp-offer__fig {
  display: block;
  color: var(--ink);
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.erp-offer__term {
  display: block;
  margin: 6px 0 14px;
  color: var(--accent-solid);
  font-size: 15px;
  font-weight: 700;
}
.erp-offer__price p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ==========================================================================
   narrow screens
   ========================================================================== */
@media (max-width: 900px) {
  .erp-fork,
  .erp-risks,
  .erp-nums,
  .erp-steps { grid-template-columns: 1fr; }
  .erp-offer { grid-template-columns: 1fr; }
  .erp-offer__price { border-left: none; border-top: 1px solid var(--border); }
}

@media (max-width: 560px) {
  .erp-wrap { padding: 32px 16px 40px; }
  .erp-head { margin-bottom: 30px; }
  .erp-section { margin-bottom: 46px; }
  .erp-lead { font-size: 16.5px; }
  .erp-fork__col,
  .erp-step,
  .erp-offer__body,
  .erp-offer__price,
  .erp-risk { padding: 20px 18px; }
  .erp-mid { padding: 28px 20px; margin-bottom: 46px; }
  .erp-faq summary { font-size: 16px; padding-right: 34px; }
}

/* The shared contact block's lead line strands its last word at this measure;
   scoped here rather than in theme.css so other pages keep their own wrapping. */
.erp-wrap .final-cta .lead { text-wrap: pretty; }

/* The related-links row sits directly above the contact block; without this
   the two read as one unit. */
.erp-wrap .service-siblings { margin-top: 10px; }
.erp-wrap .section--cta { margin-top: 48px; }

/* ---------- first screen: what is on offer, and the next step ---------- */
.erp-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.erp-proof li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.erp-proof li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent-solid);
  border-bottom: 2px solid var(--accent-solid);
  transform: rotate(-45deg);
}
.erp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 30px;
}

/* ---------- inline source link ---------- */
.erp-ref {
  margin-left: 6px;
  color: var(--ink-dim);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.erp-ref:hover { color: var(--accent-solid-hover); }

@media (max-width: 560px) {
  .erp-actions .btn { width: 100%; text-align: center; }
  .erp-proof { gap: 8px 0; }
  .erp-proof li { flex: 1 1 100%; }
}
