/* v2 page layer shared by /rcm-automation, /business-process-automation, /pricing, /about-us and /contact.
   Only components site.css does not already provide. */

/* ---- Client logo band (same look as the homepage band) ---- */
.clients { padding-block: var(--sec-y); border-block: 1px solid var(--line); background: var(--surface); }
.clients .container { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; }
.clients p { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); max-width: 18ch; }
.clients ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 36px; }
.clients img { height: 30px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1); opacity: .78; }
@media (max-width: 760px) { .clients .container { grid-template-columns: minmax(0, 1fr); gap: 16px; } .clients ul { justify-content: flex-start; gap: 18px 28px; } .clients img { height: 26px; } }

/* ---- Agent cards (same as the homepage) ---- */
.agents { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.agent { background: var(--surface); border: 1px solid var(--line); padding: 20px; display: grid; gap: 10px; align-content: start; transition: border-color var(--t-fast); min-width: 0; }
.agent:hover { border-color: var(--ink); }
.agent .eyebrow { display: flex; justify-content: space-between; }
.agent h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 19px; line-height: 1.2; }
.agent p { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.agent .metric { border-top: 1px solid var(--ink); padding-top: 10px; font-family: var(--f-display); font-stretch: 118%; font-weight: 740; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; }
.agent .metric span { display: block; font-family: var(--f-body); font-stretch: 100%; font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: 0; margin-top: 4px; }

.agent .btn-text { justify-self: start; margin-top: 4px; font-size: 14px; }
@media (max-width: 1000px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .agents { grid-template-columns: minmax(0, 1fr); } }

/* ---- Three-up case grid ---- */
.case-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.case-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-grid.four .cc-stat strong { font-size: clamp(36px, 3.4vw, 48px); }
@media (max-width: 1180px) { .case-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1080px) { .case-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .case-grid.three, .case-grid.four { grid-template-columns: minmax(0, 1fr); } }

/* ---- Hero aside: systems we plug into ---- */
.sys { background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.sys-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sys-head .flow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.sys-head .flow b { background: var(--yellow); color: #15181A; padding: 3px 6px; font-weight: 600; }
.sys ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sys li { display: grid; place-items: center; min-height: 72px; padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sys li:nth-child(3n) { border-right: 0; }
.sys li:nth-last-child(-n+3) { border-bottom: 0; }
.phero-aside .sys img { display: block; width: 100%; max-width: 176px; height: auto; border: 0; background: none; filter: grayscale(1); opacity: .85; }
.sys-foot { padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--ink-2); }

/* ---- RCM process inventory ---- */
.proc { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: proc; }
.proc li { counter-increment: proc; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 15px 16px 15px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-stretch: 106%; font-weight: 620; font-size: 16px; line-height: 1.3; }
.proc li::before { content: counter(proc, decimal-leading-zero); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; font-weight: 500; color: var(--muted); }
@media (max-width: 1000px) { .proc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .proc { grid-template-columns: minmax(0, 1fr); } .proc li { padding-block: 12px; } }

/* ---- Step columns with an ordinal/duration line ---- */
.steps.cols > li { align-content: start; }
.steps .when { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-bottom: 8px; }
.steps.named > li { grid-template-columns: minmax(0, 1fr); }
.steps.named > li::before { display: none; }
.steps .when .meta { color: var(--ink-2); }
.steps .checklist { margin-top: 12px; }
.steps .checklist li { font-size: 15px; }

/* ---- Quiz teaser ---- */
.quiz-box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; padding: clamp(28px, 4vw, 56px); }
.quiz-box h2 { color: var(--ink); }
.quiz-box .lead { margin-top: 14px; }
.quiz-path { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.quiz-path li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.quiz-path li span { color: var(--muted); }
.quiz-path li:last-child { color: #F2C230; }
.quiz-box .btn { margin-top: 20px; }
@media (max-width: 860px) { .quiz-box { grid-template-columns: minmax(0, 1fr); } }

/* ---- CTA band: long headlines on these pages ---- */
.cta-band h2 { font-size: clamp(36px, 4.8vw, 68px); line-height: .96; letter-spacing: -.045em; max-width: 16ch; }
.case-card .cc-top .eyebrow { white-space: nowrap; }

/* ---- Hero asides ---- */
.partner { background: var(--surface); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 24px; display: grid; gap: 18px; }
.partner img { height: 56px; width: auto; max-width: 100%; justify-self: start; }
.partner ul { list-style: none; display: grid; border-top: 1px solid var(--line); }
.partner li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.partner li::after { content: ""; width: 10px; height: 10px; background: var(--yellow); border: 1px solid var(--ink); align-self: center; flex: none; }
.phero .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

/* ---- Feature strip (three short promises) ---- */
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.feats > div { padding: 22px 24px 4px 0; display: grid; gap: 6px; align-content: start; }
.feats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.feats strong { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 20px; line-height: 1.25; }
.feats span { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 760px) { .feats { grid-template-columns: minmax(0, 1fr); } .feats > div, .feats > div + div { padding: 18px 0 14px; border-left: 0; border-bottom: 1px solid var(--line); } }

/* ---- Industry rows with two actions ---- */
.rows .r-act { display: flex; flex-wrap: wrap; gap: 10px 18px; align-self: center; }
.rows .r-act .btn-text { font-size: 14.5px; white-space: nowrap; }
@media (max-width: 760px) { .rows .r-act { grid-column: 1 / -1; } }

/* ---- Pricing ---- */
.range { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 16px 48px; align-items: end; border-top: 2px solid var(--ink); padding-top: 22px; margin-bottom: clamp(32px, 4vw, 48px); }
.range .eyebrow { grid-column: 1 / -1; }
.range strong { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(40px, 6.4vw, 92px); line-height: .92; letter-spacing: -.05em; white-space: nowrap; }
.range p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 1100px) { .range { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .range strong { white-space: normal; } }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.price-card { background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.price-card .pc-head { padding: 22px 22px 18px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.price-card h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 20px; line-height: 1.25; }
.price-card .pc-head p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.price-card .pc-body { padding: 18px 22px 22px; display: grid; gap: 12px; align-content: start; }
.price-card .pc-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-top: 2px solid var(--ink); }
.price-card .pc-price strong { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 3.4vw, 46px); line-height: .95; letter-spacing: -.045em; }
@media (max-width: 1000px) { .price-cards { grid-template-columns: minmax(0, 1fr); } }
.factors { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: fac; }
.factors li { counter-increment: fac; display: grid; gap: 8px; padding: 20px 20px 22px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 19px; line-height: 1.25; }
.factors li::before { content: counter(fac, decimal-leading-zero); font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; font-weight: 500; color: var(--muted); }
@media (max-width: 860px) { .factors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .factors { grid-template-columns: minmax(0, 1fr); } }
.more-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gutter); border-top: 1px solid var(--ink); }
.more-cases a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.more-cases strong { font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.more-cases span { font-size: 15px; line-height: 1.4; }
.more-cases a:hover span { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 860px) { .more-cases { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .more-cases a { grid-template-columns: 76px minmax(0, 1fr); } .more-cases a .arr { display: none; } .more-cases strong { font-size: 19px; } }

/* ---- About ---- */
.story-img { margin: 0; }
.story-img img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; max-height: 620px; }
.story p + p { margin-top: 16px; }
.story .lead + p { margin-top: 16px; }
.story .people { display: grid; gap: 0; margin-top: 28px; border-top: 2px solid var(--ink); }
.story .people > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.story .people b { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-top: 4px; }
.story .people p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 480px) { .story .people > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.value h2 { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 7vw, 104px); line-height: .9; letter-spacing: -.05em; }
.value .lead { margin-top: 24px; }
.value .lead + .lead { margin-top: 14px; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.member { background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.member img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; filter: grayscale(1) contrast(1.03); border-bottom: 1px solid var(--line); }
[data-template="about-us"] .member img { filter: contrast(1.03); }
.member .m-body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.member h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 700; font-size: 22px; line-height: 1.2; }
.member p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.member .btn-text { justify-self: start; margin-top: 6px; font-size: 14px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .team { gap: 16px; } .member .m-body { padding: 14px; } .member h3 { font-size: 19px; } }
.press { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.press-card { background: var(--surface); border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; align-content: start; grid-template-rows: auto auto 1fr auto; transition: border-color var(--t-fast); min-width: 0; }
.press-card:hover { border-color: var(--ink); }
.press-card .p-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); min-height: 50px; }
.press-card .p-top img { height: 26px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; filter: grayscale(1); }
.press-card h3 { font-family: var(--f-display); font-stretch: 106%; font-weight: 680; font-size: 18.5px; line-height: 1.3; }
.press-card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.press-card .btn-text { justify-self: start; }
.press-card:hover h3 { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
@media (max-width: 1080px) { .press { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .press { grid-template-columns: minmax(0, 1fr); } }

/* ---- Contact ---- */
.contact-hero .cta-person { max-width: 460px; margin-top: 32px; box-shadow: 6px 6px 0 #15181A; }
.contact-hero .alt-link { margin-top: 18px; }
.contact-photo { margin: 0; position: relative; }
.phero-aside .contact-photo img { border: 0; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: center 18%; }
.reach { display: grid; gap: 0; border-top: 2px solid var(--ink); margin-top: 28px; }
.reach > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.reach b { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.reach a { font-weight: 600; font-size: 17px; }
.reach a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.form .req { color: var(--muted); font-weight: 500; }
.quote .q-logo { filter: grayscale(1); }
.quote footer { justify-content: space-between; }
@media (max-width: 560px) { .form-row { grid-template-columns: minmax(0, 1fr); } .reach > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } .quote footer { flex-wrap: wrap; } }

/* Photos that fade into the page at their edges, like the vignette on the live site. */
.media.soft-edge { border: 0; background: none; }
.soft-edge img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect; }
