.payroll-page {
  --payroll-blue: #0561f5;
  --payroll-ink: #071b4d;
  --payroll-line: #e5ebf5;
  color: var(--payroll-ink);
  background: #fff;
  font-family: "Open Sans", Arial, sans-serif;
}
.payroll-page * { box-sizing: border-box; }
.payroll-page h1, .payroll-page h2, .payroll-page h3 { color: var(--payroll-ink); font-weight: 700; }
.payroll-page p { color: inherit; }
.payroll-container { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }
.payroll-hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.55fr); gap: 50px; align-items: center; padding: 32px 0 34px; }
.payroll-badge { display: inline-flex; align-items: center; gap: 12px; padding: 9px 16px; border: 1px solid #dce7ff; border-radius: 24px; color: var(--payroll-blue); background: #f4f7ff; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.payroll-badge i { font-size: 19px; }
.payroll-hero h1 { font-size: clamp(32px, 2.8vw, 46px); line-height: 1.14; letter-spacing: -1.1px; margin: 22px 0 22px; }
.payroll-hero h1 span { color: var(--payroll-blue); }
.payroll-lead { max-width: 530px; font-size: 16px; line-height: 1.8; margin: 0 0 30px; }
.payroll-actions { display: flex; flex-wrap: wrap; gap: 18px; }
.payroll-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 13px 20px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; line-height: 1.5; font-weight: 700; text-align: center; text-decoration: none; transition: background-color .2s, box-shadow .2s; }
.payroll-button--primary { background: var(--payroll-blue); color: #fff; box-shadow: 0 5px 14px #0561f51c; }
.payroll-button--primary:hover { color: #fff; background: #004fd2; }
.payroll-button--outline { color: var(--payroll-blue); border-color: var(--payroll-blue); background: #fff; }
.payroll-button--outline:hover { color: #004fd2; background: #edf4ff; }
.payroll-page a:focus-visible { outline: 3px solid #ffaf00; outline-offset: 4px; }
.payroll-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.payroll-highlights i { display: block; color: var(--payroll-blue); font-size: 27px; margin-bottom: 10px; }
.payroll-highlights p { font-size: 12px; font-weight: 600; line-height: 1.55; margin: 0; }
.payroll-image { min-width: 0; display: flex; aspect-ratio: 1.55; padding: 9px; overflow: hidden; border: 1px solid var(--payroll-line); border-radius: 12px; background: #fff; box-shadow: 0 7px 22px #075bcc14; }
.payroll-image img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; border-radius: 6px; }
.payroll-image__placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: 100%; min-height: 240px; padding: 20px; border: 1px dashed #bfd2f5; border-radius: 7px; color: #627da7; background: linear-gradient(145deg, #fafcff, #edf4ff); text-align: center; font-size: 14px; }
.payroll-image__placeholder i { color: #8facdb; font-size: 38px; }
.payroll-image--hero { aspect-ratio: 1.55; border-radius: 16px; }
.payroll-section-heading { text-align: center; margin-bottom: 20px; }
.payroll-section-heading h2 { font-size: 25px; line-height: 1.35; margin: 0 0 7px; }
.payroll-section-heading p { font-size: 14px; line-height: 1.6; margin: 0; }
.payroll-features-section { scroll-margin-top: 100px; padding-top: 10px; }
.payroll-features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.payroll-features article { min-height: 224px; padding: 20px 22px 24px; border: 1px solid var(--payroll-line); border-radius: 13px; }
.payroll-feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border: 1px solid #b9d2ff; border-radius: 10px; color: var(--payroll-blue); background: #f0f6ff; font-size: 25px; }
.payroll-features h3 { font-size: 16px; line-height: 1.45; margin: 0 0 10px; }
.payroll-features p { font-size: 13px; line-height: 1.75; margin: 0; }
.payroll-color--green { color: #00a772 !important; background: #f0fbf6 !important; border-color: #bcebd7 !important; }
.payroll-color--purple { color: #8753e6 !important; background: #f7f2ff !important; border-color: #deccff !important; }
.payroll-color--orange { color: #ff7900 !important; background: #fff7ee !important; border-color: #ffdbb6 !important; }
.payroll-color--pink { color: #e84279 !important; background: #fff1f6 !important; border-color: #fac7d8 !important; }
.payroll-color--cyan { color: #00aabd !important; background: #eefbfc !important; border-color: #b7e7ed !important; }
.payroll-process { margin-top: 22px; padding: 20px 30px 26px; border: 1px solid var(--payroll-line); border-radius: 14px; }
.payroll-flow, .payroll-integration-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px; list-style: none; padding: 0 50px; margin: 0; text-align: center; }
.payroll-flow li, .payroll-integration-flow li { position: relative; }
.payroll-flow li:not(:last-child)::after, .payroll-integration-flow li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; left: calc(50% + 45px); top: 35px; width: calc(100% - 50px); border-bottom: 2px dotted #c6d5eb; }
.payroll-flow-icon { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 68px; height: 68px; border: 1px solid #a7c6ff; border-radius: 50%; color: var(--payroll-blue); background: #f0f6ff; font-size: 27px; margin-bottom: 11px; }
.payroll-flow b { position: absolute; z-index: 2; top: 58px; left: calc(50% + 15px); display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: var(--payroll-blue); font-size: 9px; }
.payroll-flow h3, .payroll-integration-flow h3 { font-size: 13px; margin: 0 0 7px; }
.payroll-flow p, .payroll-integration-flow p { max-width: 180px; margin: 0 auto; font-size: 12px; line-height: 1.6; }
.payroll-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.payroll-detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; align-items: stretch; padding: 18px; border: 1px solid #edf2f8; border-radius: 14px; background: linear-gradient(110deg, #fbfcff, #fff); }
.payroll-detail--wide { grid-column: 1 / -1; grid-template-columns: minmax(260px, .55fr) minmax(0, 1.45fr); }
.payroll-detail__copy { padding: 5px 0 0 3px; }
.payroll-eyebrow { display: block; margin-bottom: 10px; color: var(--payroll-blue); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.payroll-detail h2 { font-size: 19px; line-height: 1.45; margin: 0 0 12px; }
.payroll-detail p { font-size: 13px; line-height: 1.7; margin: 0 0 18px; }
.payroll-checklist { list-style: none; padding: 0; margin: 0; }
.payroll-checklist li { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; font-size: 12px; line-height: 1.55; }
.payroll-checklist i { flex-shrink: 0; color: var(--payroll-blue); font-size: 14px; }
.payroll-detail .payroll-image { min-height: 330px; aspect-ratio: auto; }
.payroll-integration { padding: 32px 0 28px; }
.payroll-integration-flow { padding-inline: 70px; }
.payroll-cta { color: #fff; border-radius: 12px; background: linear-gradient(120deg, #063e9e, #0069ef); }
.payroll-cta__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 35px; align-items: center; padding: 34px 46px; }
.payroll-cta h2 { color: #fff; font-size: 28px; line-height: 1.4; margin: 0 0 12px; }
.payroll-cta p { color: #e4efff; font-size: 14px; line-height: 1.6; margin: 0; }
.payroll-cta__action { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.payroll-cta__action .payroll-button { min-height: 42px; padding: 10px 14px; border-radius: 8px; }
.payroll-button--white { color: var(--payroll-blue); background: #fff; }
.payroll-button--white:hover { color: #004fd2; background: #edf4ff; }
.payroll-button--light { color: #fff; border-color: #fff; background: transparent; }
.payroll-button--light:hover { color: #fff; background: #ffffff14; }
.payroll-reassurance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 16px 0; margin-bottom: 0; }
.payroll-reassurance li { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; }
.payroll-reassurance i { color: var(--payroll-blue); font-size: 23px; }
@media (max-width: 1199px) {
  .payroll-hero { gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .payroll-hero h1 { font-size: 35px; }
  .payroll-hero h1 br { display: none; }
  .payroll-features article { padding-inline: 16px; }
  .payroll-detail, .payroll-detail--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  .payroll-detail p, .payroll-checklist li { font-size: 14px; }
  .payroll-detail .payroll-image { min-height: 0; aspect-ratio: 1.5; }
  .payroll-flow, .payroll-integration-flow { padding-inline: 0; }
}
@media (max-width: 991px) {
  .payroll-hero { grid-template-columns: 1fr; }
  .payroll-hero__copy { max-width: 700px; }
  .payroll-highlights { max-width: 590px; }
  .payroll-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payroll-features article { min-height: 0; }
  .payroll-flow, .payroll-integration-flow { gap: 20px; }
  .payroll-details { grid-template-columns: 1fr; }
  .payroll-detail--wide { grid-column: auto; }
  .payroll-cta__inner { grid-template-columns: 1fr; }
  .payroll-cta__action { align-items: flex-start; }
  .payroll-reassurance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .payroll-container { width: calc(100% - 40px); }
  .payroll-hero { padding-top: 24px; }
  .payroll-hero h1 { font-size: 32px; }
  .payroll-actions { flex-direction: column; }
  .payroll-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .payroll-highlights p { font-size: 14px; }
  .payroll-section-heading h2 { font-size: 23px; }
  .payroll-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .payroll-features article { padding: 18px 14px; }
  .payroll-features article:last-child { grid-column: 1 / -1; }
  .payroll-process { padding: 20px 16px; }
  .payroll-flow, .payroll-integration-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .payroll-flow li:last-child, .payroll-integration-flow li:last-child { grid-column: 1 / -1; }
  .payroll-flow li::after, .payroll-integration-flow li::after { display: none; }
  .payroll-flow h3, .payroll-flow p, .payroll-integration-flow h3, .payroll-integration-flow p { font-size: 14px; }
  .payroll-detail, .payroll-detail--wide { grid-template-columns: 1fr; padding: 18px; }
  .payroll-detail p { font-size: 16px; }
  .payroll-detail .payroll-image { aspect-ratio: 1.25; }
  .payroll-cta__inner { gap: 28px; padding: 24px; }
  .payroll-cta h2 { font-size: 27px; }
  .payroll-cta__action { align-items: stretch; }
  .payroll-cta__action .payroll-button { width: 100%; }
  .payroll-reassurance { gap: 16px; }
  .payroll-reassurance li { flex-direction: column; gap: 6px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .payroll-page *, .payroll-page *::after { transition: none !important; }
}
