/* ============================================================
   GOJI CRM PRODUCT SECTIONS — /tools/goji-crm/ (+ ?lang=ne)
   Registered with page_css() from partials/tool-crm.php, so it loads on ONE page and nowhere else.
   Everything is prefixed .crx- and nests one level at most, so it cannot reach a shared component.

   ⚠ MOBILE-FIRST: every query WIDENS (min-width). The base rules are the phone layout.
   ⚠ Every var() carries a literal fallback (an undefined custom property in a shorthand drops the
     whole declaration).
   ⚠ NO NEW COLOURS: brand purple, the shared grounds and text tokens. Surfaces to read, not cards
     competing with the price table.
   ============================================================ */

.crx .gs-sec-hdr { margin-bottom: 2rem; }
.crx :lang(ne), .crx[lang="ne"] { line-height: 1.75; }

/* ---------- how it works: five numbered steps (the order is real) ---------- */
.crx-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
}
.crx-step { position: relative; padding-left: 3.25rem; min-width: 0; }
.crx-step-n {
  position: absolute; left: 0; top: -.15rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.35rem; height: 2.35rem; border-radius: 12px;
  background: var(--gs-cp-s, #f5f3ff); color: var(--gs-cp, #5b21b6);
  font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums;
}
.crx-step-h { font-size: 1.02rem; font-weight: 700; margin: 0 0 .3rem; color: var(--gs-tx0, #0f172a); }
.crx-step-h .bi { color: var(--gs-cp, #5b21b6); margin-right: .2rem; }
.crx-step-p { font-size: .9375rem; line-height: 1.65; color: var(--gs-tx1, #334155); margin: 0; }

/* ---------- industry pipelines ---------- */
.crx-ind { margin-top: 3rem; }
.crx-sub-h { font-size: 1.2rem; font-weight: 800; margin: 0 0 .35rem; color: var(--gs-tx0, #0f172a); text-wrap: balance; }
.crx-sub-h .bi { color: var(--gs-cp, #5b21b6); }
.crx-sub-p { font-size: .9375rem; color: var(--gs-tx1, #334155); margin: 0 0 1rem; }
.crx-ind-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: .75rem;
}
.crx-ind-item {
  border: 1px solid var(--gs-border-default, #e2e8f0); border-radius: 12px;
  padding: .9rem 1rem; background: var(--gs-bg0, #fff); min-width: 0;
}
.crx-ind-h { font-size: .975rem; font-weight: 700; margin: 0 0 .3rem; color: var(--gs-tx0, #0f172a); }
.crx-ind-h .bi { color: var(--gs-cp, #5b21b6); margin-right: .25rem; }
.crx-ind-flow { margin: 0; font-size: .8125rem; line-height: 1.6; color: var(--gs-tx2, #64748b); overflow-wrap: anywhere; }

/* ---------- plans explained ---------- */
.crx-two { display: grid; gap: 1rem; }
.crx-panel {
  border: 1px solid var(--gs-border-default, #e2e8f0); border-radius: 14px;
  padding: 1.25rem; background: var(--gs-bg0, #fff); min-width: 0;
}
.crx-panel-h { font-size: 1.05rem; font-weight: 800; margin: 0 0 .75rem; color: var(--gs-tx0, #0f172a); }
.crx-panel-h .bi { color: var(--gs-cp, #5b21b6); margin-right: .25rem; }

/* a check-mark list shared by panels, features and security */
.crx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.crx-list li {
  position: relative; padding-left: 1.6rem;
  font-size: .9375rem; line-height: 1.6; color: var(--gs-tx1, #334155);
}
.crx-list li::before {
  content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .05rem;
  color: var(--gs-cs, #16a34a); font-size: 1rem; line-height: 1.5;
}

/* ---------- features: eight groups ---------- */
.crx-feat-grid { display: grid; gap: 1rem; }
.crx-feat {
  border: 1px solid var(--gs-border-default, #e2e8f0); border-radius: 14px;
  padding: 1.15rem 1.15rem 1.25rem; background: var(--gs-bg0, #fff); min-width: 0;
}
.crx-feat-h {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.02rem; font-weight: 800; margin: 0 0 .8rem; color: var(--gs-tx0, #0f172a);
}
.crx-feat-ic {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 2.1rem; height: 2.1rem; border-radius: 10px;
  background: var(--gs-cp-s, #f5f3ff); color: var(--gs-cp, #5b21b6);
}
.crx-note { margin: 1.5rem 0 0; text-align: center; font-size: .9rem; color: var(--gs-tx2, #64748b); }

/* ---------- getting started ---------- */
.crx-start {
  margin: 0 auto; padding-left: 1.4rem; max-width: 760px;
  display: grid; gap: .75rem;
}
.crx-start li { font-size: .975rem; line-height: 1.65; color: var(--gs-tx1, #334155); padding-left: .25rem; }
.crx-start li::marker { color: var(--gs-cp, #5b21b6); font-weight: 800; }
.crx-start strong { color: var(--gs-tx0, #0f172a); }

/* ---------- security ---------- */
.crx-sec { max-width: 900px; margin: 0 auto; }
.crx-sec .crx-sub-h { margin-bottom: 1rem; text-align: center; }
.crx-list-cols { gap: .55rem 2rem; }

/* ---------- closing CTA ---------- */
.crx-cta {
  max-width: 760px; margin: 0 auto; text-align: center;
  border: 1px solid var(--gs-border-default, #e2e8f0); border-radius: 18px;
  padding: 2rem 1.25rem; background: var(--gs-cp-s, #f5f3ff);
}
.crx-cta-h { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; margin: 0 0 .5rem; color: var(--gs-tx0, #0f172a); text-wrap: balance; }
.crx-cta-p { margin: 0 auto 1.25rem; max-width: 34rem; color: var(--gs-tx1, #334155); }
.crx-cta-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.crx-cta-note { margin: 1rem 0 0; font-size: .85rem; color: var(--gs-tx2, #64748b); }

/* ---------- lead / contact / deal ---------- */
.crx-terms { margin-top: 3rem; }
.crx-terms-grid { display: grid; gap: .75rem; margin: 0 0 .75rem; }
.crx-term {
  border: 1px solid var(--gs-border-default, #e2e8f0); border-radius: 12px;
  padding: .9rem 1rem; background: var(--gs-bg0, #fff); min-width: 0;
}
.crx-term dt { font-weight: 800; color: var(--gs-tx0, #0f172a); margin: 0 0 .25rem; }
.crx-term dt .bi { color: var(--gs-cp, #5b21b6); margin-right: .2rem; }
.crx-term dd { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--gs-tx1, #334155); }

/* hero: the outcome line above the tagline (the H1 stays the product name) */
.gs-th-headline {
  margin: .35rem 0 .25rem; font-weight: 800; letter-spacing: -.01em;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem); line-height: 1.2; color: var(--gs-tx0, #0f172a); text-wrap: balance;
}

/* hero: the other-language link */
.gs-th-lang { margin: .5rem 0 0; font-size: .875rem; }
.gs-th-lang .bi { color: var(--gs-cp, #5b21b6); margin-right: .25rem; }

@media (min-width: 640px) {
  .crx-ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crx-list-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crx-terms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crx-cta { padding: 2.5rem 2rem; }
}
@media (min-width: 768px) {
  .crx-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crx-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .crx-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
  .crx-step { padding-left: 0; padding-top: 3rem; }
  .crx-step-n { top: 0; }
  .crx-ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crx-feat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- see it in action: real screens ---------- */
.crx-shots { display: grid; gap: 1.25rem; }
.crx-shot { margin: 0; min-width: 0; display: flex; flex-direction: column; gap: .6rem; }
.crx-shot-frame {
  display: block; border: 1px solid var(--gs-border-default, #e2e8f0); border-radius: 14px; overflow: hidden;
  background: var(--gs-bg0, #fff); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35);
}
/* every screen in the same frame shape, cropped from the top-left, so the cards line up (26 Nov 2026) */
.crx-shot-frame img { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: left top; }
.crx-shot figcaption { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; color: var(--gs-tx1, #334155); }
.crx-shot figcaption strong { color: var(--gs-tx0, #0f172a); font-size: .975rem; }
@media (min-width: 768px) {
  .crx-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ---------- shared by the Goji CRM and Goji Flow landings (both load this file) ---------- */
/* hero picture beside the price (rendered by tool.php); on phones it follows the price */
.crx-hero-shot { display: block; margin: 1.25rem 0 0; border: 1px solid var(--gs-bd0, #e7e5f0); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 24px 60px rgba(45, 20, 110, .14); }
.crx-hero-shot img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; }
/* the FAQ title lines up with its questions */
#tool-faq .gs-sec-title { max-width: 760px; margin-inline: auto; }
/* two grey bands in a row read as one: no double padding between them */
.gs-sec-alt + #tool-faq.gs-sec-alt,
#tool-faq.gs-sec-alt + .gs-sec-alt { padding-top: 0; }
