/* PayrollStaff — photo, infographic and usability layer (Oct 2026) */

/* ---------- safety: never leave content invisible ---------- */
html.ps-revealed .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- mobile menu (theme-aware: works in light and dark mode) ---------- */
.ps-burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.6); background: rgba(255,255,255,.14); color: #fff;
  cursor: pointer; flex-shrink: 0; margin-left: auto; -webkit-tap-highlight-color: transparent; touch-action: manipulation; padding: 0; }
header.site.scrolled .ps-burger, header.site.ps-open .ps-burger { color: var(--ink); border-color: var(--line); background: var(--surface); }
.ps-burger svg { width: 22px; height: 22px; pointer-events: none; }
.ps-burger .x { display: none; }
header.site.ps-open .ps-burger .x { display: block; }
header.site.ps-open .ps-burger .b { display: none; }
@media (min-width: 1120px) { .ps-burger, .ps-drawer { display: none !important; } }
@media (max-width: 1119px) { header.site .nav > .btn { display: none; } .nav { gap: 12px; } }
@media (max-width: 1119px) and (min-width: 560px) { header.site .nav > .btn { display: inline-flex; padding: 10px 16px; font-size: 13.5px; } }
.ps-drawer { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; z-index: 29; background: var(--surface); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 10px 20px calc(28px + env(safe-area-inset-bottom)); visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; border-top: 1px solid var(--line); }
.ps-drawer.open { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease, visibility 0s; }
header.site.ps-open { background: var(--surface) !important; backdrop-filter: none !important; box-shadow: none !important; }
:root[data-theme="light"] header.site.ps-open .logo-full { filter: none !important; }
@media (prefers-color-scheme: light) { header.site.ps-open .logo-full { filter: none !important; } }
.ps-drawer a { display: block; padding: 15px 4px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: rgba(31,168,232,.15); }
.ps-drawer a:active { background: var(--surface-alt); }
.ps-drawer a small { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }
.ps-drawer .ps-sub a { padding-left: 18px; font-size: 15.5px; }
.ps-drawer .ps-drawer-cta { display: grid; gap: 10px; margin-top: 22px; }
.ps-drawer .ps-drawer-cta a { text-align: center; border-radius: 12px; border: 0; padding: 16px; }
.ps-drawer .ps-drawer-cta .primary { background: var(--orange); color: #fff; }
.ps-drawer .ps-drawer-cta .ghost { background: var(--surface-alt); color: var(--ink); }
html.ps-lock, html.ps-lock body { overflow: hidden; }
html.ps-lock .ps-callbar { display: none; }

/* ---------- mobile sticky contact bar ---------- */
.ps-callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 28; display: grid;
  grid-template-columns: 1fr 1.4fr; gap: 8px; transform: translateY(140%); transition: transform .3s ease; }
.ps-callbar.show { transform: none; }
.ps-callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px;
  border-radius: 12px; font-weight: 700; font-size: 14.5px; text-decoration: none; box-shadow: 0 10px 28px rgba(10,28,46,.22); }
.ps-callbar .call { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.ps-callbar .book { background: var(--orange); color: #fff; }
.ps-callbar svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .ps-callbar { display: none; } }
@media (max-width: 899px) { footer.site { padding-bottom: 84px; } }

/* ---------- HRMS strip (replaces placeholder client logos) ---------- */
.client-logo.hrms { font-weight: 800; letter-spacing: -.01em; font-size: 16px; color: var(--blue-deep);
  text-transform: none; opacity: .85; }
.client-logo.hrms span { font-weight: 500; color: var(--ink-soft); font-size: 12px; margin-left: 6px; }
.clients-marquee { overflow: hidden; }
.clients-track { display: flex !important; flex-wrap: nowrap !important; width: max-content !important; gap: 14px;
  animation: ps-marquee 34s linear infinite; }
.clients-track .client-logo.hrms { flex: 0 0 auto; min-width: 150px; white-space: nowrap; padding-left: 22px; padding-right: 22px; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes ps-marquee { to { transform: translateX(-50%); } }

/* ---------- photo helpers ---------- */
.ps-photo { position: relative; overflow: hidden; border-radius: 18px; background: #dfe9f2; box-shadow: 0 18px 50px rgba(10,28,46,.16); }
.ps-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.16,1,.3,1); }
.ps-photo:hover img { transform: scale(1.04); }
.ps-photo figcaption, .ps-tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.94);
  color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 7px 11px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(10,28,46,.18); display: inline-flex; align-items: center; gap: 6px; }
.ps-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; }

/* split: photo + copy */
.ps-split { display: grid; gap: 34px; align-items: center; }
@media (min-width: 900px) { .ps-split { grid-template-columns: 1.05fr 1fr; gap: 64px; } .ps-split.flip > .ps-media { order: 2; } }
.ps-media { position: relative; }
.ps-media .ps-photo { aspect-ratio: 4 / 3.1; }
.ps-media .ps-photo.small { position: absolute; width: 42%; aspect-ratio: 1; right: -14px; bottom: -26px;
  border: 5px solid #fff; border-radius: 16px; }
@media (max-width: 560px) { .ps-media .ps-photo.small { right: 8px; bottom: -20px; width: 38%; } }
.ps-badge { position: absolute; top: 16px; left: -10px; background: var(--ink); color: #fff; border-radius: 14px;
  padding: 12px 16px; box-shadow: 0 14px 34px rgba(10,28,46,.3); display: flex; gap: 10px; align-items: center; }
.ps-badge b { font-size: 24px; line-height: 1; color: #FFB25B; }
.ps-badge span { font-size: 12px; line-height: 1.25; opacity: .9; max-width: 120px; }
@media (max-width: 560px) { .ps-badge { left: 8px; } }
.ps-copy .kicker { display: inline-block; margin-bottom: 10px; }
.ps-copy h2 { margin: 0 0 14px; }
.ps-copy > p { color: var(--ink-soft); font-size: 16px; line-height: 1.65; margin: 0 0 20px; }
.ps-checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.ps-checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.ps-checks li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/13px no-repeat; }
.ps-checks li b { font-weight: 700; }

/* mosaic */
.ps-mosaic { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; margin-top: 8px; }
.ps-mosaic .ps-photo { border-radius: 14px; box-shadow: 0 10px 30px rgba(10,28,46,.12); }
.ps-mosaic .ps-photo:first-child { grid-row: span 2; }
@media (min-width: 820px) {
  .ps-mosaic { grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 200px; gap: 16px; }
  .ps-mosaic .ps-photo:nth-child(4) { grid-column: span 2; }
}
.ps-mosaic.five { }
@media (min-width: 820px) { .ps-mosaic.five { grid-template-columns: 1.3fr 1fr 1fr 1fr; } .ps-mosaic.five .ps-photo:nth-child(4) { grid-column: auto; } .ps-mosaic.five .ps-photo:nth-child(5) { grid-column: span 3; } }

/* photo banner (replaces illustrated scene) */
.scene.ps-real img { aspect-ratio: 21 / 8; object-fit: cover; object-position: center 35%; }
@media (max-width: 700px) { .scene.ps-real img { aspect-ratio: 4 / 3; } }
.scene.ps-real::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,28,46,.72) 0%, rgba(10,28,46,.35) 45%, rgba(10,28,46,0) 70%); }
.scene.ps-real .scene-cap { z-index: 2; background: none !important; backdrop-filter: none !important; max-width: 520px; padding: 28px; }
.scene.ps-real .scene-cap strong { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; color: #fff; }
.scene.ps-real .scene-cap span { color: rgba(255,255,255,.88); }
.scene.ps-real { display: block !important; }

/* ---------- infographics shared ---------- */
.ps-info { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(20px, 3.4vw, 40px);
  box-shadow: 0 20px 60px rgba(10,28,46,.08); position: relative; overflow: hidden; }
.ps-info::before { content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31,168,232,.12), rgba(31,168,232,0) 70%); pointer-events: none; }
.ps-legend { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; font-size: 13px; color: var(--ink-soft); }
.ps-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ps-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.ps-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; }

/* payroll cycle (circular) */
.ps-cycle { display: grid; gap: 30px; align-items: center; }
@media (min-width: 940px) { .ps-cycle { grid-template-columns: 440px 1fr; gap: 50px; } }
.ps-cycle-ring { position: relative; width: min(440px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ps-cycle-ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ps-cycle-ring .arc { fill: none; stroke-width: 34; stroke-linecap: butt; }
.ps-cycle-ring .num { font: 800 15px Inter, system-ui, sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.ps-cycle-center { position: absolute; inset: 27%; border-radius: 50%; background: var(--ink); color: #fff; display: flex;
  flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px;
  box-shadow: 0 18px 40px rgba(10,28,46,.35); }
.ps-cycle-center b { font-size: clamp(26px, 4vw, 38px); line-height: 1; color: #FFB25B; }
.ps-cycle-center span { font-size: 12.5px; margin-top: 6px; opacity: .85; max-width: 140px; line-height: 1.35; }
.ps-cycle-ring .spin { transform-origin: 220px 220px; animation: ps-spin 40s linear infinite; }
@keyframes ps-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ps-cycle-ring .spin, .clients-track { animation: none !important; } }
.ps-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 620px) { .ps-steps { grid-template-columns: 1fr 1fr; } }
.ps-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 14px;
  border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.ps-steps li > i { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-style: normal; font-weight: 800; font-size: 15px; }
.ps-steps h4 { margin: 0 0 3px; font-size: 15px; color: var(--ink); }
.ps-steps p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* compliance calendar */
.ps-cal-track { position: relative; margin: 34px 4px 8px; height: 10px; border-radius: 99px;
  background: linear-gradient(90deg, #EAF4FC, #CFE6F7); }
.ps-cal-days { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-soft); margin: 6px 2px 0; }
.ps-pin { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 4px 14px rgba(10,28,46,.25); }
.ps-cal-cards { display: grid; gap: 12px; margin-top: 26px; }
@media (min-width: 700px) { .ps-cal-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .ps-cal-cards { grid-template-columns: repeat(4, 1fr); } }
.ps-cal-card { border-radius: 16px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-top: 4px solid; }
.ps-cal-card .d { font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink); }
.ps-cal-card .d sup { font-size: 13px; font-weight: 700; margin-left: 2px; }
.ps-cal-card .w { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 8px 0 6px; }
.ps-cal-card h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.ps-cal-card p { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.ps-year { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; margin-top: 26px; }
.ps-year div { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); }
.ps-year div em { display: block; height: 44px; border-radius: 8px; margin-bottom: 6px; background: #EEF5FB; position: relative; font-style: normal; }
.ps-year div em.q { background: linear-gradient(180deg, #1FA8E8, #0F6E9E); }
.ps-year div em.a { background: linear-gradient(180deg, #FFB25B, #EF7E13); }
.ps-year div em.q.a { background: linear-gradient(180deg, #FFB25B 0 50%, #1FA8E8 50% 100%); }

/* comparison */
.ps-compare { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.ps-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ps-compare th, .ps-compare td { padding: 14px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.ps-compare th:first-child, .ps-compare td:first-child { text-align: left; color: var(--ink); font-weight: 600; min-width: 180px; }
.ps-compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; vertical-align: bottom; }
.ps-compare thead th.us { color: #fff; background: var(--ink); border-radius: 14px 14px 0 0; font-size: 14px; letter-spacing: 0; text-transform: none; }
.ps-compare td.us { background: rgba(15,110,158,.06); font-weight: 700; color: var(--ink); }
.ps-compare tr:last-child td.us { border-radius: 0 0 14px 14px; }
.ps-yes, .ps-no, .ps-mid { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; }
.ps-yes { background: #DDF5E7; color: #127A45; }
.ps-no { background: #FDE3E1; color: #B4231A; }
.ps-mid { background: #FFF1DB; color: #A85A00; }
.ps-compare small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ink-soft); margin-top: 4px; }

/* EOR flow */
.ps-eor { display: grid; gap: 14px; align-items: stretch; }
@media (min-width: 900px) { .ps-eor { grid-template-columns: 1fr 56px 1.15fr 56px 1fr; } }
.ps-eor-node { border-radius: 18px; padding: 22px; background: var(--paper); border: 1px solid var(--line); text-align: center; }
.ps-eor-node.mid { background: var(--ink); color: #fff; border: 0; box-shadow: 0 18px 40px rgba(10,28,46,.3); }
.ps-eor-node .ic { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.ps-eor-node h4 { margin: 0 0 8px; font-size: 17px; }
.ps-eor-node.mid h4 { color: #fff; }
.ps-eor-node ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
.ps-eor-node.mid ul { color: rgba(255,255,255,.85); }
.ps-eor-arrow { display: flex; align-items: center; justify-content: center; color: var(--orange); }
.ps-eor-arrow svg { width: 44px; height: 44px; }
@media (max-width: 899px) { .ps-eor-arrow svg { transform: rotate(90deg); width: 34px; height: 34px; } }

/* initials avatar (testimonials) */
.t-face.ps-initials { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, #1FA8E8, #0F6E9E); }
.t-face.ps-initials.o { background: linear-gradient(135deg, #FFB25B, #EF7E13); }

/* contact form */
.form-card form { display: grid; gap: 0; }
.form-card .ps-2col { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .form-card .ps-2col { grid-template-columns: 1fr 1fr; } }
.form-card select, .form-card textarea { width: 100%; font: inherit; }
.form-card textarea { min-height: 96px; resize: vertical; }
.ps-form-msg { margin-top: 12px; font-size: 14px; border-radius: 10px; padding: 12px 14px; display: none; }
.ps-form-msg.ok { display: block; background: #DDF5E7; color: #0E5E35; }
.ps-form-msg.err { display: block; background: #FDE3E1; color: #8E1B14; }
.ps-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.ps-contact-photo { margin-top: 26px; }
.ps-contact-photo .ps-photo { aspect-ratio: 16 / 10; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #FFB25B; outline-offset: 2px; border-radius: 6px; }

/* contact form fields match the existing inputs */
.form-row select, .form-row textarea { font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
.form-card { max-width: 560px; }
.form-card:has(#ps-lead-form), .form-card:has(#ps-lead-form):hover { transform: none; }
.form-card .btn[disabled] { opacity: .7; cursor: progress; }
.ps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); display: inline-block; }
.ps-sec { position: relative; }
.ps-cal-days { position: relative; height: 16px; display: block; margin: 8px 4px 0; }
.ps-cal-days span { position: absolute; transform: translateX(-50%); }
.ps-year .s { display: none; }
@media (max-width: 600px) {
  .ps-year { gap: 3px; } .ps-year .l { display: none; } .ps-year .s { display: inline; }
  .ps-compare { font-size: 13px; }
  .ps-compare th, .ps-compare td { padding: 11px 5px; }
  .ps-compare th:first-child, .ps-compare td:first-child { min-width: 0; width: 40%; padding-left: 2px; }
  .ps-compare thead th { font-size: 10px; letter-spacing: .02em; }
  .ps-compare thead th.us { font-size: 11.5px; }
  .ps-compare small { display: none; }
  .ps-info { padding: 18px 14px; border-radius: 18px; }
}
.team-grid.leads:has(> .team-card:only-child) { grid-template-columns: minmax(0, 380px) !important; }

/* dark-mode safety: elements that must stay navy-on-white / white-on-navy regardless of theme */
.ps-photo figcaption, .ps-tag { background: #fff; color: #0A1C2E; }
.ps-badge, .ps-cycle-center, .ps-eor-node.mid, .ps-compare thead th.us { background: #0A1C2E !important; color: #fff !important; }
.ps-eor-node.mid h4 { color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ps-badge, :root:not([data-theme="light"]) .ps-cycle-center,
  :root:not([data-theme="light"]) .ps-eor-node.mid, :root:not([data-theme="light"]) .ps-compare thead th.us {
    background: #16324F !important; box-shadow: 0 0 0 1px rgba(92,198,253,.25), 0 18px 40px rgba(0,0,0,.4); }
  :root:not([data-theme="light"]) .ps-year div em:not(.q):not(.a) { background: rgba(255,255,255,.08); }
  :root:not([data-theme="light"]) .ps-yes { background: rgba(18,122,69,.25); color: #6FE3A5; }
  :root:not([data-theme="light"]) .ps-no { background: rgba(180,35,26,.25); color: #FF8A80; }
  :root:not([data-theme="light"]) .ps-mid { background: rgba(168,90,0,.25); color: #FFC56E; }
  :root:not([data-theme="light"]) .ps-cal-track { background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(92,198,253,.2)); }
  :root:not([data-theme="light"]) .ps-media .ps-photo.small { border-color: var(--surface); }
}

/* buttons that must stay readable in dark mode */
.ps-callbar .call { background: #fff !important; color: #0A1C2E !important; border-color: rgba(10,28,46,.12) !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band .btn-ghost,
  :root:not([data-theme="light"]) .price-card .btn-ghost { background: #fff !important; color: #0A1C2E !important; border-color: #fff !important; }
}

/* ---------- client logos (optically balanced, always on a light band so colours stay true) ---------- */
.ps-clients { padding: 30px 0 34px; background: #fff; border-top: 1px solid rgba(10,28,46,.06); border-bottom: 1px solid rgba(10,28,46,.06); color-scheme: light; }
.ps-clients .lbl { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #4E6577; margin: 0 0 22px; }
.ps-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 26px 40px; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.ps-logo { display: flex; align-items: center; justify-content: center; }
.ps-logo img { width: var(--w); height: auto; max-width: 100%; display: block; image-rendering: -webkit-optimize-contrast;
  filter: saturate(.95); opacity: .92; transition: opacity .2s ease, transform .2s ease; }
.ps-logo:hover img { opacity: 1; transform: translateY(-2px); }
@media (max-width: 700px) {
  .ps-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; justify-items: center; padding: 0 24px; }
  .ps-logo img { width: calc(var(--w) * .78); }
  .ps-logos .ps-logo:last-child { grid-column: span 2; }
}
