/* ==========================================================================
   Pathway IT — sales-purchase-crm.css  (Sales & Purchase CRM page)
   Dark centred hero, what we build, a panelled 5-step flow, a dashboard
   split with a markup-built product shot, a results band and a CTA band.
   ========================================================================== */

.sp-section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.sp-section, .sp-process-wrap, .sp-stats-wrap, .sp-cta-wrap { background: #F5F6FB; }

/* Icon slots are filled with an SVG by sales-purchase-crm.js. */
span[data-icon]:not([class]) { display: inline-flex; flex: none; vertical-align: middle; }
span[data-icon]:not([class]) svg { width: 1em; height: 1em; }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */
.sp-btn { border-radius: var(--r-pill); padding: .85rem 1.6rem; font-size: .92rem; gap: .5rem; }
.sp-btn--solid { background: var(--indigo); color: #fff; }
.sp-btn--solid:hover { background: #4338CA; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .38); }
.sp-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .28); }
.sp-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .07); transform: translateY(-2px); }

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */
.sp-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: #060B1C;
  background-image:
    radial-gradient(80% 60% at 50% -10%, rgba(79, 70, 229, .30) 0%, transparent 62%),
    radial-gradient(60% 50% at 50% 110%, rgba(37, 99, 235, .18) 0%, transparent 60%);
  padding-top: calc(var(--header-h) + clamp(2.6rem, 6vw, 4.6rem));
  padding-bottom: clamp(2.8rem, 6vw, 4.4rem);
  text-align: center;
}
/* Thin glowing arcs sweeping in from each edge. Sized in px rather than vh so
   the curve stays inside the hero whatever the viewport height. */
.sp-hero-arc {
  position: absolute; z-index: -1; top: 50%; width: 1180px; height: 1180px;
  border-radius: 50%; border: 1px solid rgba(110, 150, 255, .42);
  box-shadow: 0 0 26px rgba(59, 106, 255, .20);
  pointer-events: none;
}
.sp-hero-arc--l { left: 0; transform: translate(-88%, -50%); }
.sp-hero-arc--r { right: 0; transform: translate(88%, -50%); }
/* Pushed further out on narrow screens so the two circles graze the edges
   instead of crossing behind the copy. */
@media (max-width: 760px) {
  .sp-hero-arc { width: 780px; height: 780px; border-color: rgba(96, 132, 255, .22); }
  .sp-hero-arc--l { transform: translate(-90%, -50%); }
  .sp-hero-arc--r { transform: translate(90%, -50%); }
}

.sp-hero-inner { position: relative; }
.sp-hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--indigo-400);
}
.sp-hero h1 {
  margin-top: 1rem;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.18; letter-spacing: -.03em; color: #fff;
}
.sp-hero h1 span {
  background: linear-gradient(95deg, #6C7BFF 0%, #4F8BFF 55%, #3AA0FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sp-hero-lead {
  margin: 1.2rem auto 0; max-width: 56ch; text-wrap: balance;
  font-size: clamp(.92rem, 1.2vw, 1.02rem); line-height: 1.75; color: #A8B3D1;
}
.sp-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.9rem; }

.sp-hero-chips {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: center;
  gap: clamp(1.4rem, 5vw, 4rem); margin-top: clamp(2.4rem, 5vw, 3.4rem);
}
.sp-hero-chips li { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.sp-chip-ico {
  display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: .7rem;
  border-radius: 11px; background: rgba(124, 126, 245, .16); color: var(--indigo-400);
  border: 1px solid rgba(124, 126, 245, .24);
}
.sp-chip-ico svg { width: 19px; height: 19px; }
.sp-hero-chips b { font-size: .8rem; font-weight: 600; color: #E8EDFB; }
.sp-hero-chips span { font-size: .8rem; color: #8C99BC; }

@media (max-width: 860px) {
  .sp-hero-lead br { display: none; }
  .sp-hero-chips { grid-template-columns: repeat(2, auto); gap: 1.8rem 2.4rem; }
}
@media (max-width: 430px) { .sp-hero-chips { grid-template-columns: repeat(2, auto); gap: 1.6rem 1.2rem; } }
@media (max-width: 340px) { .sp-hero-chips { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Section heading                                                            */
/* -------------------------------------------------------------------------- */
.sp-head { text-align: center; max-width: 820px; margin: 0 auto clamp(2.2rem, 4.5vw, 3.2rem); }
.sp-head h2 {
  margin-top: 1.1rem;
  font-size: clamp(1.5rem, 2.9vw, 2.05rem);
  line-height: 1.3; letter-spacing: -.02em; color: var(--slate-900);
}
/* Keeps the long "what we build" title stacked like the design. */
.sp-head--tight h2 { max-width: 15ch; margin-inline: auto; }
@media (max-width: 620px) { .sp-head--tight h2 { max-width: none; } }

/* -------------------------------------------------------------------------- */
/* What we build (3 x 2)                                                      */
/* -------------------------------------------------------------------------- */
.sp-build-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.sp-build {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--paper); border: 1px solid #E7EAF4; border-radius: 16px;
  padding: 1.7rem 1.6rem;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.sp-build:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(20, 22, 70, .09); border-color: #CFD5F5; }
.sp-ico {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--indigo-50); color: var(--indigo); margin-bottom: 1.2rem;
}
.sp-ico svg { width: 21px; height: 21px; }
.sp-build h3 { font-size: 1rem; line-height: 1.35; margin-bottom: .55rem; color: var(--slate-900); }
.sp-build p { font-size: .87rem; line-height: 1.65; color: var(--slate-500); }
.sp-more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.2rem;
  font-size: .84rem; font-weight: 600; color: var(--indigo);
}
.sp-more span { font-size: .95rem; transition: transform var(--t) var(--ease); }
.sp-more:hover span { transform: translateX(3px); }

@media (max-width: 980px) { .sp-build-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .sp-build-grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Process panel                                                              */
/* -------------------------------------------------------------------------- */
.sp-process-wrap { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.sp-process {
  background: #EEF0FA; border: 1px solid #E1E5F5; border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 3vw, 2.6rem);
}
.sp-process .sp-head { margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }

.sp-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; list-style: none; }
.sp-step { position: relative; text-align: center; padding-inline: .3rem; }
.sp-step-ico {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--paper); border: 1px solid #DDE1F2;
  color: var(--indigo); box-shadow: 0 4px 14px rgba(20, 22, 70, .07);
}
.sp-step-ico svg { width: 21px; height: 21px; }
.sp-step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; height: 1px; background: #D3D8EE;
  left: calc(50% + 33px); right: calc(-50% + 33px);
}
.sp-step-n { display: block; font-family: var(--font-mono); font-size: .7rem; font-weight: 600; letter-spacing: .1em; color: var(--slate-500); }
.sp-step h3 { margin-top: .28rem; font-size: .92rem; margin-bottom: .45rem; color: var(--slate-900); }
.sp-step p { font-size: .79rem; line-height: 1.6; color: var(--slate-500); }

@media (max-width: 900px) {
  .sp-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .sp-step:not(:last-child)::after { display: none; }
}
@media (max-width: 480px) { .sp-steps { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------- */
/* Dashboard split                                                            */
/* -------------------------------------------------------------------------- */
.sp-section--dash { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.sp-dash-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(2rem, 4vw, 3.4rem); align-items: center; }
.sp-dash-copy h2 { margin-top: 1.1rem; font-size: clamp(1.5rem, 2.9vw, 2.05rem); line-height: 1.25; letter-spacing: -.02em; color: var(--slate-900); }
.sp-dash-copy > p { margin-top: 1rem; font-size: .92rem; line-height: 1.7; color: var(--slate-500); }
.sp-dash-list { display: grid; gap: .75rem; margin: 1.6rem 0 1.9rem; }
.sp-dash-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .89rem; color: var(--slate-600); }
.sp-dash-list svg { width: 16px; height: 16px; color: var(--indigo); flex: none; margin-top: .22rem; }

@media (max-width: 940px) {
  .sp-dash-split { grid-template-columns: 1fr; }
  .sp-dash-copy h2 br { display: none; }
}

/* --- the product shot itself --- */
.sp-dash {
  display: flex; overflow: hidden;
  background: #0B1020; border: 1px solid #1B2440; border-radius: 16px;
  box-shadow: 0 26px 60px rgba(15, 20, 60, .22);
  font-size: clamp(9px, .78vw, 11px);
}
.sp-dash-rail {
  display: flex; flex-direction: column; align-items: center; gap: .5em;
  padding: 1.1em .7em; background: #070B18; border-right: 1px solid #161E36; flex: none;
}
.sp-rail-logo { display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: .7em; background: var(--indigo); color: #fff; margin-bottom: .5em; }
.sp-rail-logo svg { width: 1.5em; height: 1.5em; }
.sp-rail-i { display: grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: .6em; color: #55618A; }
.sp-rail-i svg { width: 1.35em; height: 1.35em; }
.sp-rail-i.is-active { background: var(--indigo); color: #fff; }

.sp-dash-body { flex: 1; min-width: 0; padding: 1.2em 1.3em 1.4em; }
.sp-dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1em; }
.sp-dash-top b { font-size: 1.45em; color: #fff; letter-spacing: -.01em; }
.sp-dash-tools { display: flex; align-items: center; gap: .8em; }
.sp-dash-select { display: inline-flex; align-items: center; gap: .4em; padding: .45em .8em; border-radius: .5em; background: #121A31; border: 1px solid #212C4C; color: #A9B4D2; }
.sp-dash-bell { color: #A9B4D2; }
.sp-dash-bell svg { width: 1.4em; height: 1.4em; }

.sp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; }
.sp-kpi { background: #111830; border: 1px solid #1D2744; border-radius: .7em; padding: .8em .85em; min-width: 0; }
.sp-kpi > span { display: block; color: #8290B4; }
.sp-kpi b { display: block; margin-top: .3em; font-size: 1.6em; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.sp-kpi i { display: block; margin-top: .35em; font-style: normal; color: #35C97F; white-space: nowrap; }
.sp-kpi em { font-style: normal; color: #6C789E; }

.sp-dash-grid { display: grid; grid-template-columns: 1fr 1.35fr .72fr; gap: .7em; margin-top: .7em; }
.sp-panel { background: #111830; border: 1px solid #1D2744; border-radius: .7em; padding: .85em .9em; min-width: 0; }
.sp-panel h4 { font-size: 1.05em; color: #E7ECFA; margin-bottom: .8em; }

.sp-pipe { display: grid; gap: .75em; }
.sp-pipe li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2em .5em; }
.sp-pipe-n { color: #97A3C6; }
.sp-pipe b { color: #fff; font-size: 1.15em; text-align: right; }
.sp-pipe-v { grid-column: 2; color: #6C789E; text-align: right; }
.sp-pipe-bar { grid-column: 1 / -1; grid-row: 2; height: 3px; border-radius: 3px; background: #1E2947; position: relative; }
.sp-pipe-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: var(--c); }

.sp-chart { display: grid; grid-template-columns: auto 1fr; gap: 0 .5em; }
.sp-chart-y { display: flex; flex-direction: column; justify-content: space-between; color: #6C789E; font-size: .9em; height: 7.5em; }
.sp-chart svg { width: 100%; height: 7.5em; display: block; }
.sp-chart-x { grid-column: 2; display: flex; justify-content: space-between; margin-top: .4em; color: #6C789E; font-size: .9em; }

.sp-panel--month { display: flex; flex-direction: column; align-items: flex-start; }
.sp-month-l { color: #8290B4; }
.sp-month-v { margin-top: .3em; font-size: 1.55em; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.sp-month-d { margin-top: .3em; font-style: normal; color: #35C97F; }
.sp-month-s { color: #6C789E; }
.sp-donut {
  position: relative; display: grid; place-content: center; text-align: center;
  width: 5.4em; height: 5.4em; margin: 1em auto 0; border-radius: 50%;
  background: conic-gradient(var(--indigo) 0 76%, #1E2947 76% 100%);
}
.sp-donut::before { content: ""; position: absolute; inset: .8em; border-radius: 50%; background: #111830; }
.sp-donut span, .sp-donut small { position: relative; display: block; }
.sp-donut span { font-size: 1.15em; font-weight: 700; color: #fff; }
.sp-donut small { font-size: .85em; color: #8290B4; }

@media (max-width: 620px) {
  .sp-kpis { grid-template-columns: repeat(2, 1fr); }
  .sp-dash-grid { grid-template-columns: 1fr; }
  .sp-donut { margin-top: .8em; }
}

/* -------------------------------------------------------------------------- */
/* Results band                                                               */
/* -------------------------------------------------------------------------- */
.sp-stats-wrap { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.sp-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #0A0F26; border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.1rem) clamp(1rem, 2.2vw, 1.6rem);
  background-image: radial-gradient(120% 140% at 50% 0%, rgba(79, 70, 229, .13) 0%, transparent 58%);
}
.sp-stat { display: flex; align-items: center; gap: .9rem; padding-inline: clamp(.6rem, 1.8vw, 1.4rem); min-width: 0; }
.sp-stat + .sp-stat { border-left: 1px solid rgba(255, 255, 255, .09); }
.sp-stat-ico {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 11px; background: rgba(124, 126, 245, .16); color: var(--indigo-400);
}
.sp-stat-ico svg { width: 20px; height: 20px; }
.sp-stat b { display: block; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; color: #fff; }
.sp-stat span { display: block; margin-top: .1rem; font-size: .8rem; font-weight: 600; color: #C6CEE4; }
.sp-stat small { display: block; margin-top: .1rem; font-size: .72rem; color: #8290B4; }

@media (max-width: 900px) {
  .sp-stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 0; }
  .sp-stat:nth-child(odd) { border-left: 0; }
}
@media (max-width: 480px) {
  .sp-stats { grid-template-columns: 1fr; }
  .sp-stat + .sp-stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .09); padding-top: 1.4rem; }
}

/* -------------------------------------------------------------------------- */
/* Closing CTA band                                                           */
/* -------------------------------------------------------------------------- */
.sp-cta-wrap { padding-block: 0 clamp(3.5rem, 7vw, 5.5rem); }
.sp-cta {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1.6rem, 4vw, 3rem);
  background: #0A0F26; border-radius: 18px;
  padding: clamp(1.8rem, 3.6vw, 2.6rem) clamp(1.6rem, 3.6vw, 2.8rem);
  background-image: radial-gradient(110% 150% at 15% 0%, rgba(79, 70, 229, .16) 0%, transparent 60%);
}
.sp-cta-copy h2 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.35; color: #fff; letter-spacing: -.01em; }
.sp-cta-copy p { margin-top: .6rem; font-size: .86rem; line-height: 1.6; color: #98A2C0; }

.sp-cta-action { flex: none; }
.sp-cta-form { display: flex; gap: .7rem; }
.sp-cta-form input {
  width: clamp(200px, 22vw, 260px);
  background: #131A36; border: 1px solid #262F55; color: #fff;
  border-radius: 10px; padding: .8rem 1rem; font-size: .88rem;
}
.sp-cta-form input::placeholder { color: #6E779B; }
.sp-cta-form input:focus-visible { outline: 2px solid var(--indigo-400); outline-offset: 1px; }
.sp-cta-btn {
  background: var(--indigo); color: #fff; border-radius: 10px;
  padding: .8rem 1.3rem; font-size: .88rem; white-space: nowrap; gap: .45rem;
}
.sp-cta-btn:hover { background: #4338CA; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .38); }

.sp-cta-points { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }
.sp-cta-points li { display: flex; align-items: center; gap: .4rem; font-size: .76rem; color: #98A2C0; }
.sp-cta-points svg { width: 13px; height: 13px; color: var(--indigo-400); flex: none; }

@media (max-width: 940px) {
  .sp-cta { flex-direction: column; align-items: flex-start; }
  .sp-cta-copy h2 br { display: none; }
  .sp-cta-action { width: 100%; }
  .sp-cta-form input { width: 100%; flex: 1; }
}
@media (max-width: 520px) {
  .sp-cta-form { flex-direction: column; }
  .sp-cta-btn { justify-content: center; }
}
