/* Solutions pages (Find talent, Employ, Pay and comply).
   Builds on usa.css, which supplies the hero, headings, flow path, quote,
   FAQ and marquee. */

/* ---------- Hero ---------- */
.sol2-hero .us-hero__bg { object-position: 50% 40%; }
.sol2-hero::after { background:
  linear-gradient(90deg, rgba(10, 24, 42, 0.92) 0%, rgba(10, 24, 42, 0.75) 45%, rgba(10, 24, 42, 0.35) 100%),
  linear-gradient(0deg, rgba(10, 24, 42, 0.6), transparent 40%); }

.solnav { display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--r-pill); background: rgba(12, 27, 42, 0.4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.solnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--r-pill); color: rgba(255, 255, 255, 0.8); font-weight: 700; font-size: 14px; text-decoration: none; transition: background-color 0.25s var(--ease), color 0.25s var(--ease); }
.solnav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.1); }
.solnav a[aria-current="page"] { background: var(--saffron); color: var(--ink); }
.solnav a:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* Product card */
.mock { display: flex; justify-content: flex-end; }
.mock__card { width: min(100%, 520px); padding: clamp(20px, calc(1.8 * var(--vw)), 34px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--r-card); background: rgba(255, 255, 255, 0.96); color: var(--ink); box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.6); animation: mock-in 1s 0.3s var(--ease) both; }
@keyframes mock-in { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }
.mock__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--paper); }
.mock__head b { font-weight: 800; font-size: clamp(16px, calc(1.1 * var(--vw)), 20px); }
.mock__badge { padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper); font-weight: 700; font-size: 13px; }
.mock__rows { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.mock__rows li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: var(--paper); animation: row-in 0.6s calc(0.9s + var(--i) * 0.25s) var(--ease) both; }
@keyframes row-in { from { opacity: 0; transform: translateX(24px); } }
.mock__rows b { display: block; font-weight: 700; font-size: 15px; }
.mock__rows small { color: var(--slate); font-size: 13px; }
.mock__av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--white); font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(12, 27, 42, 0.1); }
.mock__rows em { padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); font-style: normal; font-weight: 700; font-size: 12px; }
.mock__rows em.is-hot { background: var(--ink); color: var(--white); }
.mock__tick { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--saffron); color: var(--ink); }
.mock__tick svg { width: 16px; height: 16px; animation: tick-pop 0.5s calc(1.1s + var(--i, 0) * 0.25s) var(--ease) both; }
.mock__rows li:nth-child(1) .mock__tick svg { --i: 0; } .mock__rows li:nth-child(2) .mock__tick svg { --i: 1; } .mock__rows li:nth-child(3) .mock__tick svg { --i: 2; } .mock__rows li:nth-child(4) .mock__tick svg { --i: 3; }
@keyframes tick-pop { from { transform: scale(0); } 70% { transform: scale(1.25); } }
.mock__foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--slate); font-weight: 600; font-size: 14px; }
.mock__foot span { width: 9px; height: 9px; border-radius: 50%; background: #2DBE7E; box-shadow: 0 0 0 5px rgba(45, 190, 126, 0.18); animation: live 2s ease-in-out infinite; }
@keyframes live { 50% { box-shadow: 0 0 0 9px rgba(45, 190, 126, 0); } }

/* ---------- Logos ---------- */
.us .sol2-logos { padding-block: clamp(30px, calc(3 * var(--vw)), 56px); border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.sol2-logos .marquee { margin-top: 0; }

/* ---------- Before / after ---------- */
.ba2 { display: grid; gap: 12px; margin: clamp(30px, calc(3.4 * var(--vw)), 64px) 0 0; padding: 0; list-style: none; }
.ba2__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 14px; }
.ba2__before, .ba2__after { display: flex; align-items: center; gap: 16px; padding: clamp(18px, calc(1.6 * var(--vw)), 30px) clamp(18px, calc(1.8 * var(--vw)), 34px); border-radius: var(--r-tile); font-weight: 700; font-size: clamp(17px, calc(1.25 * var(--vw)), 25px); letter-spacing: -0.015em; line-height: 1.25; }
.ba2__before { background: var(--paper); color: var(--slate); }
.ba2__before span { text-decoration: line-through; text-decoration-color: rgba(63, 75, 88, 0.45); text-decoration-thickness: 2px; }
.ba2__after { background: var(--ink); color: var(--white); transition: transform 0.35s var(--ease); }
.ba2__row:hover .ba2__after { transform: translateX(6px); }
.ba2 small { display: block; margin-bottom: 4px; font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.ba2__before small { color: #7A8591; }
.ba2__after small { color: var(--saffron); }
.ba2__ic { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 50%; }
.ba2__before .ba2__ic { background: var(--white); color: var(--slate); }
.ba2__after .ba2__ic { background: var(--saffron); color: var(--ink); }
.ba2__arrow { display: grid; place-items: center; width: 44px; align-self: center; height: 44px; border-radius: 50%; background: var(--sand); color: var(--ink); }
.ba2__arrow svg { width: 20px; height: 20px; }

/* ---------- Outcomes ---------- */
.us .sol2-out { background: var(--sand); }
.out { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; grid-template-rows: auto auto; gap: clamp(10px, calc(1.2 * var(--vw)), 24px); margin: clamp(30px, calc(3.4 * var(--vw)), 64px) 0 0; padding: 0; list-style: none; }
.out > li { border-radius: var(--r-card); }
.out__stat { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, calc(2.4 * var(--vw)), 46px); background: var(--ink); color: var(--white); }
.out__num { display: flex; flex-direction: column; }
.out__num b { font-weight: 800; font-size: clamp(64px, calc(6.5 * var(--vw)), 140px); letter-spacing: -0.05em; line-height: 0.95; color: var(--saffron); }
.out__num span { margin-top: 10px; font-weight: 800; font-size: clamp(20px, calc(1.6 * var(--vw)), 32px); letter-spacing: -0.02em; }
.out__num small { margin-top: 6px; color: var(--ink-muted); font-size: clamp(14px, calc(1 * var(--vw)), 18px); }
.out__photo { position: relative; grid-column: span 2; min-height: clamp(220px, calc(18 * var(--vw)), 360px); overflow: hidden; }
.out__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.out__photo:hover img { transform: scale(1.05); }
.out__tile { padding: clamp(20px, calc(2 * var(--vw)), 36px); background: var(--white); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.out__tile:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -36px rgba(12, 27, 42, 0.45); }
.out__tile b { display: block; font-weight: 800; font-size: clamp(19px, calc(1.4 * var(--vw)), 28px); letter-spacing: -0.02em; }
.out__tile b::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 18px; border-radius: 2px; background: var(--saffron); }
.out__tile p { margin-top: 8px; color: var(--slate); font-size: clamp(15px, calc(1 * var(--vw)), 19px); line-height: 1.5; }

/* ---------- How it works ---------- */
.us .sol2-flow { margin-top: clamp(64px, calc(6.5 * var(--vw)), 132px); background-size: cover; background-position: center; }
.flow-path__ico--num b { color: var(--white); font-weight: 800; font-size: 22px; transition: color 0.5s; }
.flow-path.is-on .flow-path__ico--num b { color: var(--ink); }

/* ---------- Quote ---------- */
.quote figcaption { flex-wrap: wrap; }
.quote__more { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--saffron); font-weight: 700; text-decoration: none; }
.quote__more svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.quote__more:hover svg { transform: translateX(4px); }

/* ---------- Next solution ---------- */
.us .sol2-next { padding-top: 0; }
.next { position: relative; display: grid; align-content: end; gap: 10px; min-height: clamp(300px, calc(26 * var(--vw)), 480px); padding: clamp(26px, calc(3.4 * var(--vw)), 64px); overflow: hidden; border-radius: var(--r-panel); color: var(--white); text-decoration: none; isolation: isolate; }
.next img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 27, 42, 0.92) 0%, rgba(12, 27, 42, 0.6) 55%, rgba(12, 27, 42, 0.2) 100%); }
.next:hover img { transform: scale(1.06); }
.next__eyebrow { color: var(--saffron); font-weight: 700; font-size: 15px; }
.next__title { max-width: 16em; font-weight: 800; font-size: clamp(30px, calc(3.2 * var(--vw)), 64px); letter-spacing: -0.035em; line-height: 1.05; }
.next__text { color: var(--ink-muted); font-size: clamp(16px, calc(1.15 * var(--vw)), 22px); }
.next__go { position: absolute; right: clamp(26px, calc(3.4 * var(--vw)), 64px); bottom: clamp(26px, calc(3.4 * var(--vw)), 64px); display: grid; place-items: center; width: clamp(56px, calc(4.4 * var(--vw)), 84px); aspect-ratio: 1; border-radius: 50%; background: var(--saffron); color: var(--ink); transition: transform 0.35s var(--ease); }
.next__go svg { width: 40%; height: 40%; }
.next:hover .next__go { transform: translateX(6px) rotate(-8deg); }
.next:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; }

/* ---------- FAQ ---------- */
.us .sol2 .us-faq, .sol2 .us-faq { padding-top: clamp(64px, calc(6.5 * var(--vw)), 132px); }
.sol2-mail { margin-top: 16px !important; font-size: 15px !important; }
.sol2-mail a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--saffron); text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (min-width: 1021px) {
  .sol2-hero .us-hero__grid { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 1200px) {
  .out { grid-template-columns: 1fr 1fr; }
  .out__stat { grid-row: auto; }
  .out__photo { grid-column: span 1; }
}
@media (max-width: 1020px) {
  .mock { justify-content: flex-start; }
  .ba2__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ba2__arrow { transform: rotate(90deg); justify-self: center; width: 34px; height: 34px; }
}
@media (max-width: 680px) {
  .out { grid-template-columns: minmax(0, 1fr); }
  .solnav a { padding: 0 12px; font-size: 13px; }
  .quote__more { margin-left: 0; }
  .next__go { position: static; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .mock__card, .mock__rows li, .mock__tick svg, .mock__foot span { animation: none; }
}

/* ---------- Outcome tiles ---------- */
/* Stat tile: a small timeline chart above the number */
.out__stat { justify-content: space-between; gap: 28px; }
.out__bars { display: flex; align-items: flex-end; gap: clamp(6px, calc(0.6 * var(--vw)), 12px); height: clamp(130px, calc(11 * var(--vw)), 220px); padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.out__bars span { position: relative; flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px; background: rgba(255, 255, 255, 0.1); transform-origin: bottom; }
.out__bars span.is-on { background: linear-gradient(180deg, #FFC468, var(--saffron)); box-shadow: 0 10px 24px -10px rgba(242, 169, 59, 0.8); }
.out__bars small { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); color: var(--ink-muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.out.is-seen .out__bars span { animation: bar-up 0.8s calc(var(--k) * 0.09s) var(--ease) both; }
@keyframes bar-up { from { transform: scaleY(0.08); opacity: 0.4; } }

/* First tile: portrait photo with the text over a dark fade */
.out__tile--photo { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; min-height: 260px; color: var(--white); background: var(--ink); }
.out__tile--photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.out__tile--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 27, 42, 0) 30%, rgba(12, 27, 42, 0.92) 100%); }
.out__tile--photo:hover img { transform: scale(1.06); }
.out__tile--photo p { color: rgba(255, 255, 255, 0.85); }

@media (prefers-reduced-motion: reduce) { .out.is-seen .out__bars span { animation: none; } }
