/* =====================================================================
   Content pages (Challenges, Who We Help): expandable situations, story
   cards, split bands. Built on the shared site components; also load
   css/product-detail.css (cards, chips, FAQ, dark cards).
   ===================================================================== */

/*: : : STEP PATH (top of the Situations section): : : : : : : : : : : : : : : : : : One line grows from node 1 to node 3 (a segment per gap, drawn one after
   the other at constant speed, so it reads as a single line). Each node pops
   as the line reaches it; there is no grey track before the line is drawn.
   Then a small pulse travels the path. Starts when .visible is added
   (js/main.js). Vertical on phones. */
.cp-path { max-width: 1200px; margin: 0 auto 3.5rem; position: relative; }
.cp-path ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.cp-node { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 1.25rem; text-align: center; }
.cp-node-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 8px 22px rgba(24, 117, 204, .25);
  font-family: var(--font-display);
  font-size: 1.25rem;   /* custom: step number */
  font-weight: 700;
  color: #fff;
  transform: scale(.3);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .15s;
}
.cp-node strong {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.35;
  color: var(--txt-head);
}
.cp-node p { margin: 0; max-width: 26ch; font-size: var(--fs-card-sm); line-height: 1.55; color: var(--txt-muted); text-wrap: balance; }
.cp-node strong, .cp-node p { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }

/* line segment from this node's centre to the next node's centre, behind the nodes */
.cp-node:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 27px;
  left: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad) no-repeat left / 0% 100%;
  transition: background-size .4s linear;
}

/* timeline: node 1 at 0s, line to node 2 (.1s-.5s), node 2 pops as it arrives,
   line to node 3 (.5s-.9s), node 3 pops as it arrives */
.cp-path.visible .cp-node-dot { transform: scale(1); opacity: 1; }
.cp-path.visible .cp-node strong, .cp-path.visible .cp-node p { opacity: 1; transform: none; }
.cp-path.visible .cp-node:not(:last-child)::after { background-size: 100% 100%; }
.cp-path.visible .cp-node:nth-child(1) .cp-node-dot { transition-delay: 0s; }
.cp-path.visible .cp-node:nth-child(1) strong { transition-delay: .08s; }
.cp-path.visible .cp-node:nth-child(1) p { transition-delay: .14s; }
.cp-path.visible .cp-node:nth-child(1)::after { transition-delay: .1s; }
.cp-path.visible .cp-node:nth-child(2) .cp-node-dot { transition-delay: .45s; }
.cp-path.visible .cp-node:nth-child(2) strong { transition-delay: .53s; }
.cp-path.visible .cp-node:nth-child(2) p { transition-delay: .59s; }
.cp-path.visible .cp-node:nth-child(2)::after { transition-delay: .5s; }
.cp-path.visible .cp-node:nth-child(3) .cp-node-dot { transition-delay: .85s; }
.cp-path.visible .cp-node:nth-child(3) strong { transition-delay: .93s; }
.cp-path.visible .cp-node:nth-child(3) p { transition-delay: .99s; }

/* a small pulse travelling node 1 -> node 3, once the path is drawn */
.cp-path-pulse {
  position: absolute;
  top: 22px;
  left: calc(100% / 6);
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 194, 199, .9);
  opacity: 0;
  pointer-events: none;
}
.cp-path.visible .cp-path-pulse { animation: cpTravel 1.6s cubic-bezier(.45, 0, .55, 1) 1.3s 1 both; }
@keyframes cpTravel {
  0% { left: calc(100% / 6); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% * 5 / 6); opacity: 0; }
}

/*: : : EXPANDING ITEMS (situations, business contexts, challenges): : : */
.cp-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 2.5rem auto 1rem;
  font-size: var(--fs-card-sm);
  color: var(--txt-muted);
}
.cp-hint p { margin: 0; max-width: none; }
.cp-expand {
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  background: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-card-sm);
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.cp-expand:hover { border-color: var(--blue); background: var(--bg-blue); }
.cp-expand:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* 1200px = the width of the scrolled (merged) navbar capsule, css/styles.css */
.cp-list { display: grid; gap: .75rem; max-width: 1200px; margin: 0 auto; }
.cp-list--first { margin-top: 3rem; }
.cp-item {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.cp-item[open] { border-color: #a6c8ed; box-shadow: var(--sh-sm); }
.cp-item summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  list-style: none;
  cursor: pointer;
}
.cp-item summary::-webkit-details-marker { display: none; }
.cp-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; border-radius: var(--r-lg); }
.cp-num {
  flex: none;
  min-width: 2.1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;   /* custom: item number */
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cp-sum { flex: 1; min-width: 0; }
.cp-sum h3 { font-size: var(--fs-h4); line-height: 1.35; margin: 0; }
.cp-sum p { margin: .25rem 0 0; max-width: none; font-size: var(--fs-card-sm); color: var(--txt-muted); }
.cp-plus {
  flex: none;
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-blue);
}
.cp-plus::before, .cp-plus::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--blue);
  transition: transform .25s;
}
.cp-plus::after { transform: rotate(90deg); }
.cp-item[open] .cp-plus::after { transform: rotate(0); }
.cp-item.is-closing .cp-plus::after { transform: rotate(90deg); }

/* Body text lines up with the item title (summary padding + number + gap on the
   left, summary padding + plus icon + gap on the right). */
.cp-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
  padding: 1.5rem calc(1.5rem + 28px + 1.25rem) 1.75rem calc(1.5rem + 2.1rem + 1.25rem);
  border-top: 1px solid var(--border-soft);
}
.cp-body .cp-label {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--txt-muted);
}
.cp-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.cp-body li {
  position: relative;
  padding-left: 1.2rem;
  font-size: var(--fs-card-body);
  line-height: 1.55;
}
.cp-body li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.cp-body p { max-width: none; font-size: var(--fs-card-body); line-height: 1.65; }
.cp-box {
  margin-top: 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.cp-box strong {
  display: block;
  margin-bottom: .25rem;
  font-family: var(--font-display);
  font-size: var(--fs-card-sm);
  color: var(--txt-head);
}
.cp-box p { margin: 0; font-size: var(--fs-card-body); }
.cp-resp h4 { margin: 0 0 .6rem; line-height: 1.35; }
.cp-resp .btn { margin-top: 1.5rem; }
.cp-resp .offer-link { display: inline-block; margin-top: 1.25rem; }
.cp-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.cp-tags a {
  padding: .3rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--blue);
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.cp-tags a:hover { background: var(--bg-blue); border-color: var(--blue); }
.cp-quote { margin: 1rem 0 0; padding-left: 1rem; border-left: 3px solid var(--cyan); font-size: var(--fs-card-sm); color: var(--txt-muted); }
.cp-quote cite { display: block; margin-top: .4rem; font-style: normal; font-weight: 600; }

/*: : : STORIES (today / connected experience): : : : : : : : : : : : : : : */
.cp-stories { display: grid; gap: 1.25rem; max-width: 62rem; margin: 3rem auto 0; }
.cp-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem;
  padding: 1.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}
.cp-story h3 { margin: .6rem 0 .75rem; line-height: 1.3; }
.cp-story-label { margin: 0; font-family: var(--font-display); font-size: var(--fs-small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.cp-story-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.cp-story-cols > div { padding: 1rem 1.15rem; border-radius: var(--r-md); background: var(--bg-soft); }
.cp-story-cols > div + div { background: var(--bg-blue); }
.cp-story-cols h4 { margin: 0 0 .4rem; }
.cp-story-cols p { margin: 0; max-width: none; font-size: var(--fs-card-body); line-height: 1.65; }
.cp-note {
  max-width: 62rem;
  margin: 1.25rem auto 0;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  background: var(--grad);
  color: #fff;
}
.cp-note h3 { color: #fff; margin: 0 0 .5rem; }
.cp-note p { margin: 0; max-width: none; color: rgba(255, 255, 255, .92); font-size: var(--fs-card-body); }

/*: : : SPLIT BANDS (first conversation, working together, rapid): : */
.cp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3rem;
  align-items: center;
}
.cp-split h2 { margin-bottom: 1rem; }
.cp-split > div > p { max-width: none; }
.cp-split .btn { margin-top: 1.75rem; }
.cp-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cp-price {
  display: block;
  margin: .35rem 0 .5rem;
  font-family: var(--font-display);
  font-size: 2rem;   /* custom: price */
  font-weight: 700;
  line-height: 1.1;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cp-dark-lead { color: rgba(255, 255, 255, .8); }

/* Route cards: number chip, title, text, link */
.cp-route .pp-chip { margin-bottom: .6rem; }

/*: : : RESPONSIVE: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : */
@media (max-width: 860px) {
  /* steps stack: nodes on the left, the line runs down between them */
  .cp-path ol { grid-template-columns: 1fr; }
  .cp-node { flex-direction: row; flex-wrap: wrap; align-items: flex-start; text-align: left; padding: 0 0 1.75rem; column-gap: 1rem; }
  .cp-node:last-child { padding-bottom: 0; }
  .cp-node-dot { margin-bottom: 0; flex: none; }
  .cp-node strong { align-self: center; flex: 1 1 calc(100% - 72px); margin: 0; }
  .cp-node p { flex: 1 1 100%; max-width: none; margin: -.55rem 0 0 72px; }
  .cp-node:not(:last-child)::after { top: 28px; bottom: -28px; left: 27px; width: 2px; height: auto; background: var(--grad) no-repeat top / 100% 0%; transition-property: background-size; }
  .cp-path.visible .cp-node:not(:last-child)::after { background-size: 100% 100%; }
  .cp-path-pulse { display: none; }
  .cp-body, .cp-story, .cp-split, .cp-story-cols { grid-template-columns: 1fr; }
  .cp-body { padding: 1.25rem 1.5rem 1.5rem; gap: 1.75rem; }
  .cp-split { gap: 2rem; }
}
@media (max-width: 600px) {
  .cp-item summary { padding: 1rem; gap: .9rem; }
  .cp-body { padding: 1.25rem 1rem 1.5rem; }
  .cp-grid2 { grid-template-columns: 1fr; }
  .cp-story { padding: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-node-dot, .cp-node strong, .cp-node p, .cp-node::after { transition: none !important; transform: none; opacity: 1; }
  .cp-node:not(:last-child)::after { background-size: 100% 100%; }
  .cp-path-pulse { display: none; }
  .cp-item, .cp-plus::before, .cp-plus::after { transition: none; }
}

/*: : : COMPANY PAGES (About Us, Our Approach, Careers): : : : : : : : : : : : : : */
/* cards, centred: five cards sit 3 + 2 */
.cp-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; max-width: var(--page-max-width); margin: 3rem auto 0; }
.cp-cards > .offer-card { flex: 0 0 calc((100% - 2.5rem) / 3); min-width: 0; }

/* heading left, text right (reverses nothing: on phones they stack) */
.cp-split--dark { align-items: start; }
.cp-prose > p { margin: 0 0 1.1rem; max-width: none; font-size: var(--fs-card-body); line-height: 1.7; }
.cp-prose > p:last-of-type { margin-bottom: 0; }
.cp-prose--light > p { color: rgba(255, 255, 255, .85); }

/* "Life at Ynnovative": a short, centred text band */
.cp-life { max-width: 52rem; margin: 0 auto; text-align: center; }
.cp-life > p { max-width: none; font-size: var(--fs-card-body); line-height: 1.7; }
.cp-life > p + p { margin-top: 1rem; }
.cp-tagline {
  margin: .75rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.3;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cp-tagline--light { background: var(--grad-tg); -webkit-background-clip: text; background-clip: text; }

/* mission statement and sub-heading in the dark band */
.cp-statement {
  max-width: 52rem;
  margin: 3rem auto 0;
  padding: 2rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05);
  text-align: center;
}
.cp-statement h3 { margin: 0 0 .6rem; color: #fff; }
.cp-statement p { margin: 0; max-width: none; font-size: var(--fs-card-body); line-height: 1.65; color: rgba(255, 255, 255, .88); }
.cp-subhead { margin: 0 0 .5rem; color: #fff; font-size: var(--fs-h3); }

/* delivery stages: number and text, "what you get" beside it */
.cp-stages { display: grid; gap: 1rem; max-width: 1200px; margin: 3rem auto 0; }
.cp-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding: 1.75rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
}
.cp-stage-main { display: flex; gap: 1.25rem; align-items: flex-start; }
.cp-stage-num {
  min-width: 2.6rem;
  flex: none;
  font-family: var(--font-display);
  font-size: 1.6rem;   /* custom: stage number */
  font-weight: 700;
  line-height: 1.2;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cp-stage h3 { margin: 0 0 .6rem; }
.cp-stage p { margin: 0 0 .75rem; max-width: none; font-size: var(--fs-card-body); line-height: 1.65; }
.cp-stage p:last-child { margin-bottom: 0; }
.cp-stage .cp-box { margin-top: 0; }
.cp-stage .cp-box p { font-size: var(--fs-card-body); }

/* careers form */
.cp-apply-form { padding: 2rem 2.25rem 2.25rem; }
.cp-apply-form .form-nav { display: flex; justify-content: flex-end; }

@media (max-width: 860px) {
  .cp-cards > .offer-card { flex-basis: calc((100% - 1.25rem) / 2); }
  .cp-stage { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
}
@media (max-width: 600px) {
  .cp-cards > .offer-card { flex-basis: 100%; }
  .cp-stage-main { flex-direction: column; gap: .35rem; }
  .cp-statement { padding: 1.5rem; }
  .cp-apply-form { padding: 1.5rem 1.25rem 1.75rem; }
}

.sec-head-center .cp-tagline { margin: .6rem 0 1rem; }

/*: : : ABOUT: mission and values: : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : : */
.cp-mv {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}
.cp-motto {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2.5rem 2.25rem;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #0B1E3F 0%, #1A3A7C 55%, #1875CC 100%);
  color: #fff;
  box-shadow: var(--sh-md);
}
.cp-motto::after {   /* soft brand glow in the corner */
  content: '';
  position: absolute;
  right: -90px; bottom: -110px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 199, .55), rgba(0, 194, 199, 0) 70%);
  pointer-events: none;
}
.cp-motto-lines {
  position: relative;
  z-index: 1;
  margin: 0 0 1.5rem;
  max-width: none;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}
.cp-motto-lines span { display: block; }
.cp-motto-lines span:nth-child(2) { color: #7ED6F0; }
.cp-motto-lines span:nth-child(3) { background: var(--grad-tg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cp-motto-text { position: relative; z-index: 1; margin: 0; max-width: 34rem; font-size: var(--fs-card-body); line-height: 1.65; color: rgba(255, 255, 255, .88); }

.cp-mission {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--cyan);
  border-radius: var(--r-lg);
  background: #fff;
}
.cp-mission h3 { margin: 0 0 1rem; font-size: var(--fs-small); letter-spacing: .08em; text-transform: uppercase; color: var(--txt-muted); }
.cp-mission p { margin: 0; max-width: none; font-family: var(--font-display); font-size: clamp(1.25rem, 1.9vw, 1.65rem); font-weight: 600; line-height: 1.45; color: var(--txt-head); }

.cp-values-title { margin: 0 0 .5rem; font-size: var(--fs-h3); }
.cp-values-steps { margin-top: 2.5rem; }
.cp-values-steps .x-step { min-height: 21rem; }

@media (max-width: 860px) {
  .cp-mv { grid-template-columns: 1fr; }
  .cp-motto, .cp-mission { padding: 1.75rem; }
}

/* hero subtitle with more than one line of copy */
.cp-hero-line { display: block; }
.cp-hero-line + .cp-hero-line { margin-top: .9rem; }

/* "Life at Ynnovative": taller band, title left, text right */
#life { padding-top: 7rem; padding-bottom: 7rem; }
.cp-life--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3.5rem;
  align-items: center;
  text-align: left;
}
.cp-life--split .cp-tagline { margin: .9rem 0 0; }
.cp-life-body p { margin: 0; max-width: none; font-size: var(--fs-card-body); line-height: 1.7; }
.cp-life-body p + p { margin-top: 1.1rem; }
@media (max-width: 860px) {
  #life { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .cp-life--split { grid-template-columns: 1fr; gap: 1.5rem; }
}


/*: : : INTEGRATIONS (single System Integrations page): : : : : : : : : : : : : : : */
.ig-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ig-note {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding: 1.1rem 1.4rem;
  border-left: 4px solid var(--cyan);
  border-radius: var(--r-md);
  background: var(--bg-blue);
  font-size: var(--fs-card-body);
  line-height: 1.6;
}
.ig-note strong { color: var(--txt-head); font-family: var(--font-display); }

/* Business Central: the featured connection */
.ig-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  max-width: 1200px;
  margin: 2rem auto 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  scroll-margin-top: 120px;
}
.ig-feature-main { padding: 2rem 2.25rem; }
.ig-feature-main h3 { margin: .9rem 0 .6rem; }
.ig-feature-main p { max-width: none; font-size: var(--fs-card-body); line-height: 1.65; }
.ig-feature-main .btn { margin-top: 1.5rem; }
.ig-feature-detail { padding: 2rem 2.25rem; background: var(--bg-soft); border-left: 1.5px solid var(--border); }
.ig-feature-detail h4, .ig-detail h4 { margin: 0 0 .5rem; }
.ig-feature-detail h4:not(:first-child) { margin-top: 1.25rem; }
.ig-feature-detail p { max-width: none; font-size: var(--fs-card); line-height: 1.6; }
.ig-logo2 { width: auto; padding: 0 .5rem; gap: .35rem; }
.ig-logo2 img { width: 28px; height: 28px; }


.ig-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.ig-list li { position: relative; padding-left: 1.15rem; font-size: var(--fs-card); line-height: 1.55; }
.ig-list li::before { content: ''; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }

/* expanding "scope and prerequisites" */
.ig-more { margin-top: 1rem; border-top: 1px solid var(--border-soft); }
.ig-more summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .85rem 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--fs-card-sm); font-weight: 700; color: var(--blue);
}
.ig-more summary::-webkit-details-marker { display: none; }
.ig-more summary::after { content: '+'; font-size: 1.2rem; line-height: 1; }
.ig-more[open] summary::after { content: '\2212'; }
.ig-more summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ig-more p { max-width: none; font-size: var(--fs-card-sm); line-height: 1.6; }
.ig-detail p { margin: .8rem 0 0; }
.ig-prereq { padding: .8rem 1rem; border-radius: var(--r-md); background: var(--bg-soft); }
.ig-doc { display: inline-block; margin-top: .8rem; font-size: var(--fs-card-sm); font-weight: 600; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.ig-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; max-width: 1200px; margin: 1.25rem auto 0; }
.ig-card { scroll-margin-top: 120px; }
.ig-card h3 { margin-bottom: .1rem; }
.ig-sub { display: block; margin-bottom: .75rem; font-size: var(--fs-card-sm); color: var(--txt-muted); }
.ig-card > p { flex: none; }
.ig-card .cp-box { margin-top: 1rem; }
.ig-card .cp-box p { font-size: var(--fs-card); }

/* custom integrations (dark band) */
.ig-custom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 1200px; margin: 3rem auto 0; }
.ig-custom-item { flex: none; }
.ig-custom-item .ig-examples { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: var(--fs-card); }
.ig-bottom { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; max-width: 1200px; margin: 3rem auto 0; }
.ig-bottom h3 { margin: 0 0 .5rem; color: #fff; font-size: var(--fs-h4); }
.ig-bottom p { margin: 0; max-width: none; font-size: var(--fs-card-body); line-height: 1.65; color: rgba(255, 255, 255, .85); }

/* use cases */
.ig-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 1200px; margin: 3rem auto 0; }
.ig-case h3 { margin: .75rem 0 0; }
.ig-case > p { flex: none; }
.ig-case .cp-box { margin-top: 1rem; }
.ig-case .cp-box p { font-size: var(--fs-card); }

@media (max-width: 1000px) {
  .ig-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-feature { grid-template-columns: 1fr; }
  .ig-feature-detail { border-left: 0; border-top: 1.5px solid var(--border); }
}
@media (max-width: 700px) {
  .ig-cards, .ig-custom, .ig-cases, .ig-bottom { grid-template-columns: 1fr; }
  .ig-feature-main, .ig-feature-detail { padding: 1.5rem; }
}

/* Integrations: fixes after review */
.ig-logo2 { display: flex; align-items: center; justify-content: center; }
.ig-cards { align-items: stretch; }   /* equal heights per row, as on Services */
.ig-card .ig-more { margin-top: auto; }   /* the expander sits at the bottom of every card */
.ig-card .ig-detail h4 { font-size: var(--fs-h4); line-height: 1.4; margin: 0 0 .5rem; }

/* Integrations: body text in boxes, lists and expanders matches the other cards (--fs-card-body) */
.ig-card .cp-box p, .ig-case .cp-box p,
.ig-list li, .ig-feature-detail p, .ig-more p, .ig-prereq,
.ig-custom-item p { font-size: var(--fs-card-body); }
.ig-doc, .ig-more summary { font-size: var(--fs-card-sm); }

/* Business Central: two connections side by side */
.ig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; max-width: 1200px; margin: 2.5rem auto 0; }
.ig-pair .ig-pagelink { margin-top: 1.25rem; }
.ig-pair .ig-logo2 { width: auto; }
@media (max-width: 700px) { .ig-pair { grid-template-columns: 1fr; } }
.ig-card .cp-box, .ig-card > p:last-of-type { margin-bottom: 1.1rem; }
/* box and expander both sit at the bottom of the card, so they line up across a row */
.ig-card .cp-box { margin-top: auto; }
.ig-card .ig-more { margin-top: 0; }

/* Process flow: numbered nodes on a gradient line, like the step path on Challenges.
   The line draws node to node when the block scrolls into view (.visible, js/main.js). */
.ig-flow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin: 1.25rem 0 1.1rem;
  padding: 0;
  list-style: none;
}
.ig-flow li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 .25rem; text-align: center; }
.ig-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 5px 14px rgba(24, 117, 204, .22);
  font-family: var(--font-display);
  font-size: .85rem;   /* custom: step number */
  font-weight: 700;
  color: #fff;
}
.ig-step {
  margin-top: .55rem;
  font-family: var(--font-display);
  font-size: var(--fs-card-sm);
  font-weight: 700;
  line-height: 1.3;
  color: var(--txt-head);
}
.ig-flow li:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 0;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad) no-repeat left / 0% 100%, var(--border);
  transition: background-size .5s linear;
}
.visible .ig-flow li:not(:last-child)::after { background-size: 100% 100%; }
.visible .ig-flow li:nth-child(1)::after { transition-delay: .15s; }
.visible .ig-flow li:nth-child(2)::after { transition-delay: .6s; }
.visible .ig-flow li:nth-child(3)::after { transition-delay: 1.05s; }
@media (prefers-reduced-motion: reduce) {
  .ig-flow li::after { transition: none; background-size: 100% 100%; }
}

.ig-detail h4:not(:first-child) { margin-top: 1.25rem; }
.ig-detail .ig-list + h4 { margin-top: 1.25rem; }
/* no "Where It Helps" box now: the expander itself sits at the bottom so the lines align across a row */
.ig-cards .ig-card .ig-more { margin-top: auto; }
.ig-cards .ig-card > p { margin-bottom: 1.25rem; }

/* Links inside FAQ answers (Microsoft documentation) read as links */
.pp-faq details p a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pp-faq details p a:hover { color: var(--cyan); }
.pp-faq details p a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
.ig-links { display: block; margin-top: .75rem; font-size: var(--fs-card-sm); }

/* Business Central cards: the two share one set of rows (subgrid), so icons, titles,
   body text, flows, expanders and buttons start at the same height in both. */
@supports (grid-template-rows: subgrid) {
  .ig-pair { row-gap: 0; }
  .ig-pair > .ig-card {
    display: grid;
    grid-row: span 6;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }
  .ig-pair > .ig-card > * { min-width: 0; }
  .ig-pair > .ig-card > .ig-flow { align-self: center; }
  .ig-pair > .ig-card .ig-more { margin-top: 0; align-self: start; }
  .ig-pair > .ig-card > p { margin-bottom: 0; }
  .ig-pair > .ig-card > .ig-pagelink { align-self: end; }
}
@media (max-width: 700px) {
  .ig-pair > .ig-card { grid-row: auto; display: flex; }
}
.ig-pair > .ig-card > h3 { margin-bottom: .75rem; }

/*: : : SYSTEM AUDIT, CRM RESCUE & PROJECT RECOVERY: : : : : : : : : : : : : : : */
.cp-path--4 ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cp-path--4 .cp-node:nth-child(3)::after { transition-delay: 1.5s; }
.cp-path--4.visible .cp-node:nth-child(4) .cp-node-dot { transition-delay: 1.55s; }
.cp-path--4.visible .cp-node:nth-child(4) strong { transition-delay: 1.63s; }
.cp-path--4.visible .cp-node:nth-child(4) p { transition-delay: 1.69s; }
.cp-path--4 .cp-path-pulse { display: none; }
.ar-choice { text-decoration: none; color: inherit; }
.ar-choice:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--sh-md); }
@media (max-width: 860px) {
  .cp-path--4 ol { grid-template-columns: 1fr; }
}

/* Closing line of each service section: what you receive, the scope text and one button */
.ar-end { max-width: 52rem; margin: 3rem auto 0; text-align: center; }
.ar-receive { margin: 0 0 1rem; max-width: none; font-size: var(--fs-card-body); line-height: 1.65; color: var(--txt-head); }
.ar-receive strong { font-family: var(--font-display); }
.ar-scope { margin: 0 0 1.75rem; max-width: none; font-size: var(--fs-card-body); line-height: 1.65; color: var(--txt-body); }
.ar-scope strong { color: var(--txt-head); font-family: var(--font-display); }
.ar-end--light .ar-receive, .ar-end--light .ar-receive strong, .ar-end--light .ar-scope strong { color: #fff; }
.ar-end--light .ar-scope { color: rgba(255, 255, 255, .85); }

.ar-measure { max-width: none; margin: 2.5rem 0 0; font-size: var(--fs-card-body); line-height: 1.65; text-align: center; }
.ar-measure strong { color: var(--txt-head); font-family: var(--font-display); }
/* the open stage panel is light: keep its text dark on the dark band */
#project-recovery .x-step p { color: var(--txt-body); }
#project-recovery .x-step h3 { color: var(--txt-head); }
