/* ==========================================================================
   product.css: styles for the product, HR & Payroll and service pages.
   Load it after styles.css on every page (the menu is in the shared header).
   It only adds what styles.css does not already have; it reuses the same
   tokens (--navy, --gold, --ice, --line ...) and building blocks (.page-hero,
   .split, .values/.value, .section--ice).
   ========================================================================== */

/* ------------------------------ Product pages ------------------------------ */
/* Particles across the whole page body: one fixed canvas behind the content.
   Page sections are transparent so the network shows through; cards stay white. */
.page-particles { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.product-page main, .product-page esuor-footer { position: relative; z-index: 1; }
.product-page .p-section { background: transparent; }

/* Scroll reveal: product.js adds .reveal-ready first, so nothing is hidden without JS. */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; transition-delay: var(--d, 0s); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* Overview */
.p-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 88px); align-items: center; }
.p-intro__copy { display: flex; flex-direction: column; gap: 20px; }
.p-intro__copy p { color: var(--muted); line-height: 1.8; max-width: 40em; }
.p-intro__art { display: flex; justify-content: center; }
.p-intro__art img { width: 100%; max-width: 520px; height: auto; }

/* Features: clean card grid */
.p-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.fcard { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px 26px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(0, 65, 127, .05); transition: transform .3s, box-shadow .3s, border-color .3s; }
.fcard__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 19px; background: var(--ice); color: var(--navy); transition: background .3s, color .3s; }
.fcard h3 { font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.fcard p { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.fcard:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 22px 44px rgba(0, 65, 127, .14); }
.fcard:hover .fcard__icon { background: var(--navy); color: var(--gold); }

/* Other products */
.plinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.plink { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.25; color: var(--navy); transition: transform .25s, box-shadow .25s, border-color .25s; }
.plink__icon { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; background: var(--ice); color: var(--navy); transition: background .25s, color .25s; }
.plink > span:nth-child(2) { flex: 1; min-width: 0; }
.plink__arrow { flex: none; font-size: 12px; color: var(--teal); transition: transform .25s; }
.plink:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 32px rgba(0, 65, 127, .12); }
.plink:hover .plink__icon { background: var(--navy); color: var(--gold); }
.plink:hover .plink__arrow { transform: translateX(4px); }
.plink.is-current { display: none; }

/* HR & Payroll: overview buttons, key-feature tiles and feature rows */
.p-intro__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.p-head--center { align-items: center; text-align: center; }
.kt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; }
.kt-grid:has(> li:nth-child(-n+6):last-child) { grid-template-columns: repeat(auto-fit, minmax(170px, 210px)); justify-content: center; }
.kt { display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%; padding: 22px 14px 20px; text-align: center; border-radius: 22px; background: var(--white); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; }
a.kt:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 36px rgba(0, 65, 127, .14); }
.kt__img { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ice); transition: transform .3s; }
a.kt:hover .kt__img { transform: scale(1.08) rotate(-4deg); }
.kt__img img { width: 52px; height: 52px; object-fit: contain; }
.kt__label { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--navy); }

.fx-wrap .wrap { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.fx { scroll-margin-top: 110px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 3.5vw, 44px); border-radius: 32px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(0, 65, 127, .08); }
.fx--rev .fx__copy { order: 2; }
.fx--rev .fx__art { order: 1; }
.fx__copy { position: relative; min-width: 0; }
.fx__num { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: .14em; color: var(--teal); margin-bottom: 8px; }
.fx__num::after { content: ""; display: inline-block; width: 36px; height: 3px; margin-left: 12px; vertical-align: middle; border-radius: 3px; background: var(--gold); }
.fx__copy h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; color: var(--navy); margin-bottom: 16px; }
.fx__copy p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.fx__list { display: flex; flex-direction: column; gap: 10px; }
.fx__list li { position: relative; padding-left: 30px; color: var(--muted); line-height: 1.6; font-size: 16px; }
.fx__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: var(--ice); border: 3px solid var(--teal); }
.fx__more { margin-top: 16px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.fx__more:hover { background: var(--navy); color: var(--white); }
.rm-ready .fx:not(.is-open) [data-more] { display: none; }
.fx__art { display: flex; justify-content: center; align-items: center; padding: clamp(14px, 2vw, 26px); border-radius: 26px; background: radial-gradient(circle at 50% 40%, var(--ice), #fff 75%); }
.fx__art img { width: 100%; max-width: 460px; height: auto; }
@media (max-width: 900px) {
  .fx { grid-template-columns: minmax(0, 1fr); border-radius: 24px; }
  .fx--rev .fx__copy, .fx--rev .fx__art { order: initial; }
}
@media (max-width: 520px) { .kt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .kt-grid:has(> li:nth-child(-n+6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kt { padding: 16px 10px; } .kt__img { width: 70px; height: 70px; } .kt__img img { width: 44px; height: 44px; } .kt__label { font-size: 14px; } }

/* HR & Payroll tab bar */
.hr-tabs-wrap { position: relative; z-index: 2; margin-top: -34px; }
.hr-tabs { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 18px; border-radius: 999px; background: var(--white); border: 2px solid var(--line); box-shadow: 0 18px 40px rgba(0, 65, 127, .14); }
.hr-tabs__label { flex: none; display: inline-flex; align-items: center; gap: 10px; padding-right: 16px; border-right: 1px solid var(--line); font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.hr-tabs__label i { color: var(--teal); }
.hr-tabs ul { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hr-tabs ul::-webkit-scrollbar { display: none; }
.hr-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--muted); transition: background .2s, color .2s; }
.hr-tabs a i { font-size: 14px; color: var(--teal); transition: color .2s; }
.hr-tabs a:hover { background: var(--ice); color: var(--navy); }
.hr-tabs a[aria-current] { background: var(--grad-navy); color: var(--white); box-shadow: 0 8px 18px rgba(0, 65, 127, .25); }
.hr-tabs a[aria-current] i { color: var(--gold); }
@media (max-width: 860px) {
  .hr-tabs { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; border-radius: 24px; }
  .hr-tabs__label { padding: 0 6px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 1100px) { .fgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .p-intro { grid-template-columns: minmax(0, 1fr); }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .fgrid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Service pages (built on the shared .split, .values/.value and .pcards/.pcard blocks) */
a.hr-tabs__label { text-decoration: none; transition: color .2s; }
a.hr-tabs__label:hover { color: var(--teal); }
.sv-lead { max-width: 900px; display: flex; flex-direction: column; gap: 18px; }
.sv-lead p { color: var(--muted); line-height: 1.75; }
.section__head .lead { max-width: 52em; }
.value__icon--img { width: 60px; height: 60px; border-radius: 50%; }
.value__icon--img img { width: 30px; height: 30px; object-fit: contain; }
.value:hover .value__icon--img { background: var(--ice); }
.value__link, .pcard .value__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); }
.pcard .value__link { color: var(--gold); }
.value__link i { font-size: 12px; transition: transform .2s; }
.value__link:hover i { transform: translateX(5px); }
.sv-media { display: flex; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.sv-media img { width: 100%; max-width: 640px; height: auto; }