.payroll-page { --ph-ink:#102235; --ph-ink-soft:#243b50; --ph-muted:#5f7183; --ph-paper:#fff; --ph-bg:#f4f8fa; --ph-line:#dce7eb; --ph-teal:#169b8b; --ph-teal-dark:#087e73; --ph-mint:#dff7f1; --ph-shadow:0 20px 55px rgba(11,32,49,.10); --ph-radius:22px; }
.payroll-page *, .payroll-page *::before, .payroll-page *::after { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:120px; }
.payroll-page { color:var(--ph-ink); background:var(--ph-paper); font-family:"Noto Sans", "Segoe UI", Arial, sans-serif; font-size:16px; line-height:1.65; letter-spacing:normal; -webkit-font-smoothing:antialiased; }
.payroll-page :focus-visible { outline:3px solid var(--ph-teal-dark); outline-offset:3px; }

/* Site template overrides: the template colours h1-h3 and gives bare ul/ol items padding, bullets and counters */
.payroll-page h1, .payroll-page h2, .payroll-page h3 { color:inherit; font-family:inherit; font-weight:700; }
.payroll-page h3 { letter-spacing:normal; }
.payroll-page h1, .payroll-page h2, .payroll-page h3, .payroll-page p { margin-top:0; }
.payroll-page ul, .payroll-page ol { margin:0; padding:0; list-style:none; }
.payroll-page ul li, .payroll-page ol li { margin:0; padding:0; }
.payroll-page ul li::before, .payroll-page ol li::before { content:none; position:static; width:auto; height:auto; border-radius:0; background:none; }

/* Shared bits: the same look as the Demand Planner page (local/demand_planner/demand_planner.css) */
.payroll-page .ph-shell { width:min(1160px, calc(100% - 40px)); margin:0 auto; }
.payroll-page .ph-topline { height:5px; background:linear-gradient(90deg, #087a69, #23b69a 58%, #9be2d2); }
.payroll-page .ph-eyebrow { display:inline-flex; align-items:center; gap:9px; margin:0 0 20px; color:var(--ph-teal-dark); font-size:.78rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.payroll-page .ph-eyebrow::before { content:""; width:25px; height:2px; background:var(--ph-teal); }
.payroll-page h2 { margin-bottom:15px; font-size:clamp(2rem, 3.6vw, 3rem); line-height:1.13; letter-spacing:-.045em; }
.payroll-page .ph-highlight { color:var(--ph-teal-dark); }
.payroll-page .ph-btn { display:inline-flex; justify-content:center; align-items:center; gap:10px; min-height:49px; padding:12px 20px; border:1px solid transparent; border-radius:12px; text-decoration:none; font-weight:750; transition:transform .18s ease, box-shadow .18s ease, background .18s ease; }
.payroll-page .ph-btn:hover { transform:translateY(-2px); }
.payroll-page .ph-btn-primary, .payroll-page .ph-btn-primary:hover { color:#fff; background:var(--ph-teal-dark); box-shadow:0 8px 20px rgba(8,126,115,.18); }
.payroll-page .ph-btn-primary:hover { background:#066a62; }
.payroll-page .ph-btn-secondary, .payroll-page .ph-btn-secondary:hover { color:var(--ph-ink); background:rgba(255,255,255,.72); border-color:#cbdde2; }
.payroll-page .ph-check { display:inline-grid; flex:0 0 24px; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--ph-mint); color:var(--ph-teal-dark); font-size:.85rem; font-weight:900; }
.payroll-page .ph-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* Hero, with the page title and demo button as its first row (the app has no card checkout, so no extbc_buy_head) */
.payroll-page .ph-hero { position:relative; overflow:hidden; padding:40px 0 78px; background:radial-gradient(ellipse at 80% 24%, rgba(36,174,156,.15), transparent 36%), linear-gradient(135deg, #f7fbfc 0%, #eff7f7 55%, #f8fbfc 100%); }
.payroll-page .ph-hero::after { content:""; position:absolute; width:540px; height:540px; border:1px solid rgba(22,155,139,.12); border-radius:50%; right:-190px; top:-230px; box-shadow:0 0 0 45px rgba(22,155,139,.035), 0 0 0 95px rgba(22,155,139,.025); pointer-events:none; }
.payroll-page .ph-buy { position:relative; z-index:2; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:14px 24px; margin-bottom:56px; padding-bottom:22px; border-bottom:1px solid var(--ph-line); }
.payroll-page .ph-buy-title { flex:1 1 320px; margin:0; font-size:clamp(1.2rem, 2vw, 1.5rem); font-weight:800; line-height:1.3; letter-spacing:-.02em; }
.payroll-page .ph-hero-grid { display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:60px; position:relative; z-index:1; }
.payroll-page .ph-hero .ph-display { max-width:720px; margin-bottom:22px; font-size:clamp(2.5rem, 5vw, 4.3rem); line-height:1.06; letter-spacing:-.055em; font-weight:780; }
.payroll-page .ph-lead { max-width:620px; margin-bottom:30px; color:#4b6274; font-size:clamp(1.05rem, 1.5vw, 1.2rem); }
.payroll-page .ph-actions { display:flex; flex-wrap:wrap; align-items:center; gap:13px; }
.payroll-page .ph-hero-caption { margin:20px 0 0; color:#6b7e8b; font-size:.88rem; }

/* Illustrative payroll month */
.payroll-page .ph-dashboard-wrap { position:relative; }
.payroll-page .ph-dashboard { position:relative; padding:17px; border:1px solid rgba(194,216,220,.95); border-radius:21px; background:rgba(255,255,255,.9); box-shadow:0 30px 70px rgba(19,54,70,.15); transform:rotate(1deg); }
.payroll-page .ph-dash-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 5px 17px; border-bottom:1px solid #e5eef0; }
.payroll-page .ph-dash-title { font-size:.83rem; font-weight:800; }
.payroll-page .ph-dash-status { border-radius:100px; background:#e5f8f2; color:#087e73; padding:4px 8px; font-size:.68rem; font-weight:800; }
.payroll-page .ph-kpis { display:grid; grid-template-columns:repeat(3, 1fr); gap:9px; padding:13px 0; }
.payroll-page .ph-kpi { min-width:0; padding:12px 10px; border:1px solid #e2ecef; border-radius:12px; background:#fbfdfd; }
.payroll-page .ph-kpi-label { color:#71828e; font-size:.65rem; line-height:1.3; }
.payroll-page .ph-kpi-value { margin-top:5px; font-size:clamp(1.08rem, 2vw, 1.55rem); font-weight:800; letter-spacing:-.04em; line-height:1.2; }
.payroll-page .ph-kpi-delta { color:#0c8a78; font-size:.65rem; font-weight:750; }
.payroll-page .ph-chart-panel { padding:13px 13px 9px; border:1px solid #e2ecef; border-radius:13px; }
.payroll-page .ph-chart-title { display:flex; justify-content:space-between; gap:10px; margin-bottom:10px; font-size:.75rem; font-weight:800; }
.payroll-page .ph-chart-title small { color:#71828e; font-weight:600; }
.payroll-page .ph-chart { width:100%; height:auto; display:block; }
.payroll-page .ph-mini-row { display:flex; justify-content:space-between; gap:8px; margin-top:7px; color:#5b7180; font-size:.66rem; }
.payroll-page .ph-records { margin-top:9px; padding:3px 12px; border:1px solid #e2ecef; border-radius:12px; }
.payroll-page .ph-record { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:11px; padding:10px 0; border-bottom:1px solid #edf3f4; }
.payroll-page .ph-record:last-child { border-bottom:0; }
.payroll-page .ph-record-no { display:grid; place-items:center; width:30px; height:30px; border:1px solid #cbece3; border-radius:9px; background:#eaf9f5; color:var(--ph-teal-dark); font-size:.78rem; font-weight:850; }
.payroll-page .ph-record strong { display:block; font-size:.78rem; line-height:1.35; }
.payroll-page .ph-record small { display:block; color:#71828e; font-size:.66rem; line-height:1.4; }
.payroll-page .ph-tag { padding:3px 8px; border-radius:100px; background:#eef2f4; color:#5b7180; font-size:.66rem; font-style:normal; font-weight:800; white-space:nowrap; }
.payroll-page .ph-tag--done { background:#e5f8f2; color:var(--ph-teal-dark); }
.payroll-page .ph-tag--next { background:#fdf1e1; color:#8f5208; }
.payroll-page .ph-float-tag { position:absolute; right:30px; bottom:-42px; padding:12px 16px; border:1px solid #d7ece6; border-radius:13px; background:#fff; box-shadow:0 15px 35px rgba(14,57,64,.12); color:#3d5968; font-size:.77rem; font-weight:750; transform:rotate(-2deg); }
.payroll-page .ph-float-tag strong { color:var(--ph-teal-dark); }

/* Approach strip */
.payroll-page .ph-trust { padding:22px 0; border-bottom:1px solid #e7eef1; background:#fff; }
.payroll-page .ph-trust-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:22px; }
.payroll-page .ph-trust-item { display:flex; align-items:center; justify-content:center; gap:10px; color:#526979; font-size:.91rem; font-weight:700; text-align:center; }

/* Sections */
.payroll-page .ph-section { padding:84px 0; }
.payroll-page .ph-section-soft { background:var(--ph-bg); }
.payroll-page .ph-section-head { max-width:760px; margin:0 auto 42px; text-align:center; }
.payroll-page .ph-section-head .ph-eyebrow { justify-content:center; }
.payroll-page .ph-section-head p { margin-bottom:0; color:var(--ph-muted); font-size:1.06rem; }

/* Screenshots: each links to the full-size image */
.payroll-page .ph-shot { margin:0; }
.payroll-page .ph-shot a { display:block; overflow:hidden; border:1px solid var(--ph-line); border-radius:14px; background:#fff; box-shadow:var(--ph-shadow); transition:transform .18s ease, box-shadow .18s ease; }
.payroll-page .ph-shot a:hover { transform:translateY(-2px); box-shadow:0 24px 60px rgba(11,32,49,.15); }
.payroll-page .ph-shot img { display:block; width:100%; max-width:none; height:auto; }
.payroll-page .ph-shot figcaption { margin-top:12px; color:var(--ph-muted); font-size:.9rem; }
.payroll-page .ph-shot figcaption strong { color:var(--ph-ink); }
.payroll-page .ph-shot-next { margin-top:32px; }
.payroll-page .ph-shot-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; margin-top:32px; }

/* Problem cards */
.payroll-page .ph-outcomes { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
.payroll-page .ph-outcome { padding:22px; border:1px solid var(--ph-line); border-radius:16px; background:#fff; }
.payroll-page .ph-outcome h3 { margin-bottom:7px; font-size:1rem; line-height:1.35; }
.payroll-page .ph-outcome p { margin-bottom:0; color:#657987; font-size:.9rem; }

/* Capabilities */
.payroll-page .ph-feature-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
.payroll-page .ph-feature { min-height:245px; padding:27px; border:1px solid var(--ph-line); border-radius:var(--ph-radius); background:#fff; box-shadow:0 7px 24px rgba(16,34,53,.025); }
.payroll-page .ph-feature-icon { display:grid; place-items:center; width:48px; height:48px; margin-bottom:19px; border-radius:14px; background:#e2f7f2; color:#087e73; }
.payroll-page .ph-feature-icon svg { width:24px; height:24px; }
.payroll-page .ph-feature h3 { margin-bottom:9px; font-size:1.13rem; letter-spacing:-.02em; }
.payroll-page .ph-feature p { margin-bottom:0; color:#607485; font-size:.96rem; }

/* Monthly cycle: a timeline across at full width, the Demand Planner workflow list below 980px */
.payroll-page .ph-cycle { padding:29px; border:1px solid #dbe8eb; border-radius:var(--ph-radius); background:#fff; box-shadow:var(--ph-shadow); }
.payroll-page .ph-cycle-steps { display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:18px; }
.payroll-page .ph-step { position:relative; }
.payroll-page .ph-step:not(:last-child)::after { content:""; position:absolute; left:58px; right:-6px; top:23px; height:1px; background:#c4e5dd; }
.payroll-page .ph-step-no { position:relative; z-index:1; display:grid; place-items:center; width:46px; height:46px; margin-bottom:14px; border:1px solid #cbece3; border-radius:14px; background:#eaf9f5; color:#087e73; font-weight:850; }
.payroll-page .ph-step h3 { margin:1px 0 4px; font-size:1rem; }
.payroll-page .ph-step p { margin:0; color:#677c8a; font-size:.91rem; }

/* Copy beside a card of checked points (the employee ledger, security) */
.payroll-page .ph-split { display:grid; grid-template-columns:.9fr 1.1fr; align-items:center; gap:70px; }
.payroll-page .ph-split-copy p { color:var(--ph-muted); }
.payroll-page .ph-split-copy p:last-child { margin-bottom:0; }
.payroll-page .ph-chips { display:flex; flex-wrap:wrap; gap:8px; margin:24px 0 0; }
.payroll-page .ph-chips li { padding:6px 13px; border:1px solid #cbece3; border-radius:100px; background:#eaf9f5; color:var(--ph-teal-dark); font-size:.82rem; font-weight:750; }
.payroll-page .ph-benefits { padding:10px 29px; border:1px solid #dbe8eb; border-radius:var(--ph-radius); background:#fff; box-shadow:var(--ph-shadow); }
.payroll-page .ph-benefit { display:grid; grid-template-columns:24px 1fr; gap:14px; padding:18px 0; border-bottom:1px solid #e7eef1; }
.payroll-page .ph-benefit:last-child { border-bottom:0; }
.payroll-page .ph-benefit .ph-check { margin-top:1px; }
.payroll-page .ph-benefit strong { display:block; margin-bottom:3px; }
.payroll-page .ph-benefit p { margin:0; color:#677c8a; font-size:.91rem; }

/* Roles table */
.payroll-page .ph-compare { overflow-x:auto; border:1px solid var(--ph-line); border-radius:var(--ph-radius); background:#fff; box-shadow:var(--ph-shadow); }
.payroll-page .ph-compare table { width:100%; min-width:720px; margin:0; border-collapse:collapse; font-size:.93rem; }
.payroll-page .ph-compare th, .payroll-page .ph-compare td { padding:16px 20px; border:0; border-bottom:1px solid #e7eef1; background:#fff; color:#607485; font-weight:400; text-align:left; vertical-align:top; }
.payroll-page .ph-compare thead th { background:#eaf7f5; color:var(--ph-teal-dark); font-size:.75rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.payroll-page .ph-compare tbody th { width:19%; color:var(--ph-ink); font-weight:800; }
.payroll-page .ph-compare tbody tr:last-child th, .payroll-page .ph-compare tbody tr:last-child td { border-bottom:0; }
.payroll-page .ph-note { max-width:760px; margin:24px auto 0; color:var(--ph-muted); font-size:.93rem; text-align:center; }

/* Integrations, on the dark Business Central panel */
.payroll-page .ph-bc-panel { position:relative; overflow:hidden; padding:43px; border-radius:25px; color:#eaf7f8; background:linear-gradient(130deg, #0c2132, #123b4a 72%, #0e5a57); }
.payroll-page .ph-bc-panel::after { content:""; position:absolute; width:360px; height:360px; top:-170px; right:-60px; border:1px solid rgba(125,229,207,.25); border-radius:50%; box-shadow:0 0 0 35px rgba(125,229,207,.035), 0 0 0 75px rgba(125,229,207,.025); }
.payroll-page .ph-bc-panel-inner { position:relative; z-index:1; }
.payroll-page .ph-bc-panel .ph-eyebrow { color:#8fe2d1; }
.payroll-page .ph-bc-panel h2 { max-width:690px; }
.payroll-page .ph-bc-panel p { max-width:780px; color:#c5d9df; }
.payroll-page .ph-integrations { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin-top:27px; }
.payroll-page .ph-integration { min-height:92px; padding:16px; border:1px solid rgba(194,228,231,.22); border-radius:14px; background:rgba(255,255,255,.055); }
.payroll-page .ph-integration strong { display:block; margin-bottom:5px; color:#fff; font-size:.91rem; }
.payroll-page .ph-integration span { display:block; color:#afcbd3; font-size:.81rem; }

/* Migration band */
.payroll-page .ph-demo { display:flex; justify-content:space-between; align-items:center; gap:32px; padding:36px 40px; border:1px solid #dbe8eb; border-radius:var(--ph-radius); background:#fff; box-shadow:var(--ph-shadow); }
.payroll-page .ph-demo h2 { font-size:clamp(1.5rem, 3vw, 2.1rem); }
.payroll-page .ph-demo p { max-width:680px; margin:0; color:var(--ph-muted); }
.payroll-page .ph-demo > .ph-btn { flex:0 0 auto; }

/* Contact band, text left and button right (its #book-a-demo id is where the demo buttons land) */
.payroll-page .ph-cta { padding:74px 0; background:#eaf7f5; }
.payroll-page .ph-cta-grid { display:flex; justify-content:space-between; align-items:center; gap:32px; }
.payroll-page .ph-cta-grid > .ph-btn { flex:0 0 auto; }
.payroll-page .ph-cta-copy { max-width:720px; }
.payroll-page .ph-cta h2 { margin-bottom:11px; }
.payroll-page .ph-cta-copy p { margin-bottom:0; color:#5b7381; }
/* the CTA with the message form (extbc_contact_form.php): the copy beside a
   white card, as barcode.css's .bar-cta-form, one column below 980px */
.payroll-page .ph-cta { --xcf-ink:var(--ph-ink); --xcf-accent:var(--ph-teal); --xcf-accent-pale:var(--ph-mint); --xcf-radius:var(--ph-radius); --xcf-shadow:var(--ph-shadow); }
.payroll-page .ph-cta-form { display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 460px); gap:56px; align-items:center; }
@media (max-width:980px) {
    .payroll-page .ph-cta-form { grid-template-columns:1fr; gap:36px; }
}

.payroll-page .ph-fineprint { padding:22px 0 30px; color:#6b7e8b; font-size:.8rem; }

@media (max-width:980px) {
    .payroll-page .ph-hero-grid, .payroll-page .ph-split { grid-template-columns:1fr; gap:42px; }
    .payroll-page .ph-dashboard-wrap { max-width:650px; width:100%; margin:0 auto; }
    .payroll-page .ph-feature-grid { grid-template-columns:repeat(2, 1fr); }
    .payroll-page .ph-outcomes { grid-template-columns:repeat(2, 1fr); }
    .payroll-page .ph-integrations { grid-template-columns:repeat(2, 1fr); }
    .payroll-page .ph-split-copy { max-width:720px; }
    .payroll-page .ph-shot-grid { grid-template-columns:1fr; }
    .payroll-page .ph-cycle { max-width:760px; margin:0 auto; }
    .payroll-page .ph-cycle-steps { grid-template-columns:1fr; gap:0; }
    .payroll-page .ph-step { display:grid; grid-template-columns:46px 1fr; gap:16px; padding-bottom:23px; }
    .payroll-page .ph-step:last-child { padding-bottom:0; }
    .payroll-page .ph-step-no { margin-bottom:0; }
    .payroll-page .ph-step:not(:last-child)::after { left:22px; right:auto; top:45px; bottom:0; width:1px; height:auto; }
    .payroll-page .ph-demo { padding:30px 26px; }
}
@media (max-width:760px) {
    /* The roles table becomes one card per role, with each cell labelled */
    .payroll-page .ph-compare { overflow:visible; border:0; background:transparent; box-shadow:none; }
    .payroll-page .ph-compare table, .payroll-page .ph-compare tbody, .payroll-page .ph-compare tr, .payroll-page .ph-compare th, .payroll-page .ph-compare td { display:block; min-width:0; width:auto; }
    .payroll-page .ph-compare thead { display:none; }
    .payroll-page .ph-compare tbody tr { margin-bottom:12px; overflow:hidden; border:1px solid var(--ph-line); border-radius:16px; background:#fff; }
    .payroll-page .ph-compare tbody th { width:auto; padding:12px 16px; border-bottom:1px solid var(--ph-line); background:#eaf7f5; color:var(--ph-teal-dark); }
    .payroll-page .ph-compare tbody td { padding:12px 16px; border-bottom:1px solid #e7eef1; }
    .payroll-page .ph-compare tbody td:last-child { border-bottom:0; }
    .payroll-page .ph-compare tbody td::before { content:attr(data-label); display:block; margin-bottom:2px; color:var(--ph-teal-dark); font-size:.72rem; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
}
@media (max-width:620px) {
    .payroll-page .ph-cta-grid, .payroll-page .ph-demo { flex-direction:column; align-items:flex-start; }
    .payroll-page .ph-shell { width:min(100% - 28px, 1160px); }
    .payroll-page .ph-hero { padding:28px 0 56px; }
    .payroll-page .ph-buy { margin-bottom:34px; }
    .payroll-page .ph-hero .ph-display { font-size:clamp(2.35rem, 11vw, 3.3rem); }
    .payroll-page .ph-actions { align-items:stretch; flex-direction:column; }
    .payroll-page .ph-btn { width:100%; }
    /* in the flow under the card, so on a narrow card it never hides a row */
    .payroll-page .ph-float-tag { position:relative; right:auto; bottom:auto; width:fit-content; margin:-10px 12px 0 auto; }
    .payroll-page .ph-trust-grid { grid-template-columns:1fr; gap:14px; }
    .payroll-page .ph-trust-item { justify-content:flex-start; text-align:left; }
    .payroll-page .ph-section { padding:60px 0; }
    .payroll-page .ph-section-head { margin-bottom:28px; text-align:left; }
    .payroll-page .ph-section-head .ph-eyebrow { justify-content:flex-start; }
    .payroll-page .ph-feature-grid, .payroll-page .ph-outcomes { grid-template-columns:1fr; }
    .payroll-page .ph-feature { min-height:auto; padding:23px; }
    .payroll-page .ph-bc-panel { padding:29px 22px; }
    .payroll-page .ph-integrations { grid-template-columns:1fr 1fr; }
    .payroll-page .ph-integration { padding:13px; }
    .payroll-page .ph-cycle { padding:23px 18px; }
    .payroll-page .ph-benefits { padding:6px 18px; }
    .payroll-page .ph-note { text-align:left; }
    .payroll-page .ph-demo { padding:24px 20px; }
    .payroll-page .ph-kpis { gap:6px; }
    .payroll-page .ph-kpi { padding:9px 7px; }
    .payroll-page .ph-kpi-label, .payroll-page .ph-kpi-delta { font-size:.59rem; }
}
@media (prefers-reduced-motion:reduce) {
    html { scroll-behavior:auto; }
    .payroll-page *, .payroll-page *::before, .payroll-page *::after { transition-duration:.01ms !important; animation-duration:.01ms !important; }
    .payroll-page .ph-shot a:hover { transform:none; }
}
