/* ==========================================================================
   AI Hub round 2: SOLUTIONS PAGE TEMPLATES (department T05 and industry T06).
   Shared by solutions-finance.html and industry-trading-distribution.html.
   Loads after system.css and only adds what the shared system does not have.
   Generic class names, so the other five departments and three industries
   reuse every block.

   Anatomy:  hero + products strip -> problem list (U-26) -> [industry: voice
             block] -> use-case carousel (U-22) -> what changes (U-23, rebuilt)
             -> [industry: two ways to start] -> products (U-19) -> ownership
             strip -> FAQ (L-19) -> closing band (U-10)

    1  Hero, solutions variant + products strip   .hero--solutions .pstrip
    2  Section helpers                            .section--clip .section--tight
    3  Problem list (U-26)                        .plist
    4  Use-case carousel cards (U-22)             .ucc
    5  What-changes cards (U-23, rebuilt)         .chg
    6  Product grid (reuses .pcard)               .sgrid
    7  Ownership strip                            .own
    8  Text-link rows (cross links, also-in)      .sline
    9  Industry: AI Voice Agent block             .vblock .vtx
   10  Industry: two ways to start                (.dcols--2 now lives in system.css)
   11  Closing band microcopy                     .cta-line
   12  Responsive
   ========================================================================== */

/* ---------- 1. Hero, solutions variant ---------- */
.hero--solutions { padding-block: clamp(64px, 7vw, 104px) clamp(48px, 5vw, 72px); }
.hero--solutions .display { font-size: clamp(2.5rem, 3.4vw + 1rem, 4.25rem); }
.hero--solutions .hero__grid { align-items: center; }

/* Products strip: the real products that do the work, in the place where UnifyApps shows customer logos (U-26) */
.pstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.pstrip__label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); }
.pstrip__list { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.pstrip__item { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px 0 16px; border: 1px solid var(--line-dark-strong); border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--on-dark); transition: background var(--t), border-color var(--t); }
.pstrip__item:hover { background: rgba(242, 239, 230, .08); border-color: rgba(242, 239, 230, .4); }
.pstrip__item .icon { width: 18px; height: 18px; color: var(--coral-lt); stroke-width: 1.6; }

/* ---------- 2. Section helpers ---------- */
.section--clip { overflow-x: clip; }                      /* the carousel track bleeds past the container */
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--rule { border-top: 1px solid var(--line); }

/* ---------- 3. Problem list (U-26): headline left, four numbered problems right on hairlines ---------- */
.plist { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.plist__head { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.plist__items { counter-reset: p; border-top: 1px solid var(--line-strong); }
.plist__item { counter-increment: p; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 8px; padding: clamp(24px, 2.6vw, 32px) 0; border-bottom: 1px solid var(--line-strong); }
.plist__item::before { content: counter(p, decimal-leading-zero); grid-row: 1 / 3; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 500; line-height: 1.5; color: var(--coral-text); }
.plist__item h3 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.25rem, .5vw + 1.1rem, 1.5rem); line-height: 1.25; letter-spacing: -.01em; }
.plist__item p { margin-top: 8px; color: var(--ink-2); max-width: 34em; }

/* ---------- 4. Use-case carousel cards (U-22): rounded icon cards, one sentence each. Track and arrows come from system.css (U-16) ---------- */
.ucc { position: relative; flex: 0 0 min(300px, 76vw); scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 26px 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tan); text-align: center; transition: border-color var(--t), background var(--t); }
.ucc:hover { border-color: var(--line-strong); background: var(--tan-2); }
.ucc__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--coral-text); }
.ucc__icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.ucc__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.005em; text-wrap: pretty; }
.ucc__line { color: var(--ink-2); font-size: .96875rem; line-height: 1.55; text-wrap: pretty; }
.ucc__chip { margin-top: auto; padding-top: 12px; }
.ucc__link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }   /* whole card is the link */
.ucc__link:focus-visible { outline: none; }
.ucc:has(.ucc__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.ucc .chip { background: var(--white); border: 1px solid var(--line); }

/* ---------- 5. What-changes cards (U-23, rebuilt): a large phrase, a coral title, one or two sentences, an honest label ---------- */
.chg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.chg { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--white); }
.chg__label { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.chg__label--fact { background: var(--coral-soft); color: #A8402F; }   /* same AA tone as .chip in system.css (5.0:1 on --coral-soft) */
.chg__label--ill { background: var(--tan); color: var(--ink-2); border: 1px dashed var(--line-strong); }
.chg__fig { margin-top: 22px; font-family: var(--font-serif); font-weight: 500; font-size: clamp(2.125rem, 1.7vw + 1.3rem, 2.875rem); line-height: 1.12; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.chg__title { font-family: var(--font-serif); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; color: var(--coral-text); }
.chg__text { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin-bottom: 18px; }
.chg .link-arrow { margin-top: auto; font-size: .9375rem; }
.chg__note { margin-top: 28px; }

/* ---------- 6. Product grid (U-19): reuses .pcard from system.css; only the layout is new ---------- */
.sgrid { display: grid; gap: 24px; }
.sgrid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgrid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sgrid .pcard__media { aspect-ratio: 16 / 9; }
.sgrid .pcard__name { font-size: 1.5rem; }
.sgrid .pcard__line { max-width: 30em; }

/* ---------- 7. Ownership strip (D-023): four short statements on hairlines ---------- */
.own { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line-strong); }
.own li { display: flex; align-items: center; gap: 14px; padding: 26px 24px 26px 0; font-weight: 500; line-height: 1.4; color: var(--ink); }
.own li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.own .icon { width: 24px; height: 24px; color: var(--coral-text); stroke-width: 1.5; }
.own__note { margin-top: 20px; }

/* ---------- 8. Text-link rows: "Also in finance", "Add as you grow", "By industry" ---------- */
.sline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.sline--flush { margin-top: clamp(32px, 4vw, 48px); }
.sline__label { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sline__list { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.sline__text { color: var(--ink-2); font-size: var(--fs-small); }
.sline__text a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--coral); }
.sline__text a:hover { color: var(--coral-text); }
.faq-more { margin-top: 32px; }
.inline-link { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--coral); }
.inline-link:hover { color: var(--coral-text); }

/* ---------- 9. Industry: the AI Voice Agent block (mandatory, no audio, scenario clearly labelled) ---------- */
.vblock.split { min-height: 0; }
.vblock .split__dark { gap: 22px; }
.vblock .split__dark .h3 { max-width: 14em; }
.vblock__text { color: var(--on-dark-2); max-width: 30em; }
.vblock__tag { display: inline-flex; align-items: center; min-height: 28px; padding: 6px 12px; border: 1px dashed var(--line-dark-strong); border-radius: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); line-height: 1.35; }
.vblock__links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: auto; padding-top: 12px; }
.vblock .split__light { gap: 0; justify-content: center; }
.vblock__cap { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.vtx { display: grid; gap: 22px; }
.vtx li { padding-left: 20px; border-left: 2px solid var(--coral); }
.vtx .who { display: block; margin-bottom: 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-text); }
.vtx .ln { display: block; font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }
.vtx small { display: block; margin-top: 4px; font-size: .875rem; color: var(--ink-3); line-height: 1.45; direction: ltr; text-align: left; }
.vtx li[lang="ar"] { direction: rtl; text-align: right; padding-left: 0; padding-right: 20px; border-left: 0; border-right: 2px solid var(--coral); font-family: var(--font-ar); }
.vtx li[lang="ar"] .who { font-family: var(--font-sans); direction: ltr; text-align: right; }
.vtx li[lang="ar"] .ln { font-size: 1.375rem; line-height: 1.75; }
.vdoes { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.vdoes__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin-top: 14px; }
.vdoes__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .96875rem; line-height: 1.45; color: var(--ink); }
.vdoes__list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--coral-text); stroke-width: 2; }
.vblock__also { margin-top: 24px; font-size: var(--fs-small); color: var(--ink-3); }

/* ---------- 10. Industry: two ways to start, reuses .dcols / .dcol (L-23) in two columns ---------- */
.dcol .tag { margin-bottom: 10px; }
.dcol__foot { margin-top: auto; padding-top: 24px; }
.dcols--2 .dcol dl { margin-top: 28px; }
.dcols--2 .dcol dl div:first-child dd { min-height: 0; }

/* ---------- 11. Closing band microcopy (D-025) ---------- */
.cta-line { margin-top: 36px; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }

/* ---------- 12. Responsive ---------- */
@media (max-width: 1000px) {
  .plist { grid-template-columns: 1fr; gap: 40px; }
  .plist__head { position: static; }
  .chg-grid { grid-template-columns: 1fr; }
  .own { grid-template-columns: 1fr 1fr; }
  .own li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .own li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .sgrid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .sgrid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pstrip { gap: 16px; }
  .pstrip__list { flex-direction: column; align-items: stretch; width: 100%; }
  .pstrip__item { justify-content: flex-start; }
  .plist__item { grid-template-columns: 40px minmax(0, 1fr); }
  .own { grid-template-columns: 1fr; }
  .own li, .own li + li, .own li:nth-child(odd) { padding: 20px 0; border-left: 0; }
  .own li + li { border-top: 1px solid var(--line); }
  .vdoes__list { grid-template-columns: 1fr; }
  .sline { flex-direction: column; align-items: flex-start; }
}
.vblock__cap--flush { margin-bottom: 0; }
