/* Public homepage */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.pm-home {
  --home-paper: var(--hp-white);
  --home-header-height: 88px;
  --home-ink: var(--hp-brand-ink);
  --home-text: var(--home-ink);
  --home-muted: #526174;
  --home-rule: var(--hp-border-strong);
  --home-surface: var(--hp-surface2);
  --home-accent: var(--hp-primary);
  --home-accent-soft: var(--hp-nav-selected);
  position: relative; isolation: isolate; margin: 0; background: var(--home-paper); color: var(--home-text);
  font-family: var(--hp-font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--home-muted) var(--home-paper);
}
.pm-home__flow {
  --ribbon-stops: transparent 42%, #edf8f6 48%, #c3e5dc 54%, #b6dce9 60%,
    #d3d7f2 66%, #efe7f6 70%, transparent 76%;
  position: absolute; inset: 0; overflow: hidden;
  /* The continuation turns off-canvas and reappears beyond the first viewport. */
  background-image: linear-gradient(rgb(255 255 255 / 70%), rgb(255 255 255 / 70%)),
    radial-gradient(ellipse 172% 97% at 133% 104%, var(--ribbon-stops));
  background-position: bottom;
  background-size: 100% max(0px, calc(100% - 100dvh));
  background-repeat: no-repeat;
  pointer-events: none; z-index: -1;
}
.pm-home__flow::before, .pm-home__flow::after {
  content: ""; position: absolute; inset: -8dvh -8% auto; height: 116dvh;
}
.pm-home__flow::before {
  background: radial-gradient(ellipse 90% 108% at 100% -20%, var(--ribbon-stops));
}
.pm-home__flow::after {
  background: radial-gradient(ellipse 86% 98% at 92% -28%,
    transparent 56%, rgb(255 255 255 / 65%) 60%, rgb(196 227 239 / 55%) 66%,
    rgb(234 243 255 / 40%) 71%, transparent 74%);
}
@media (prefers-reduced-motion: no-preference) {
  .pm-home__flow::before, .pm-home__flow::after {
    animation: home-flow 16s ease-in-out infinite alternate paused;
  }
  .pm-home__flow::after { animation-duration: 21s; animation-direction: alternate-reverse; }
  .pm-home--moving .pm-home__flow::before,
  .pm-home--moving .pm-home__flow::after { animation-play-state: running; }
}
@keyframes home-flow {
  from { transform: translate(-2%, -2%) rotate(-3deg); }
  to { transform: translate(2%, 4%) rotate(3deg); }
}
.pm-home *, .pm-home *::before, .pm-home *::after { box-sizing: border-box; }
.pm-home ::selection { color: var(--home-accent); background: var(--home-accent-soft); }
.pm-home :focus-visible { outline: 3px solid var(--home-accent); outline-offset: 5px; }
.pm-home section[tabindex="-1"]:focus { outline: none; }
.pm-home section[tabindex="-1"]:focus-visible > h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .12em;
}
.pm-home a { color: inherit; text-underline-offset: .25em; }
.pm-home a:hover { text-decoration-thickness: 2px; }
.pm-home .pm-ico { width: 20px; height: 20px; flex: 0 0 auto; }
.pm-home h1, .pm-home h2, .pm-home h3, .pm-home p { margin: 0; }
.pm-home h1, .pm-home h2, .pm-home h3 { color: var(--home-ink); }
.pm-home h2 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1.12; letter-spacing: -.035em; font-weight: 600; }
.pm-home__wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.pm-home main > section + section { padding-block: 64px; border-top: 1px dotted var(--home-rule); scroll-margin-top: 24px; }
.pm-home__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pm-home__skip { position: absolute; left: 24px; top: -80px; z-index: 10; padding: 12px 20px; background: var(--home-ink); color: var(--home-paper) !important; }
.pm-home__skip:focus { top: 12px; }
.pm-home__header { min-height: var(--home-header-height); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.pm-home__brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 26px; font-weight: 650; letter-spacing: -.04em; line-height: 1.2; white-space: nowrap; }
.pm-home__brand .pm-brand__mark { width: 33px; height: 33px; flex-shrink: 0; }
.pm-home__nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.pm-home__menu { display: none; }
.pm-home__nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-block: 10px; text-decoration: none; }
.pm-home__nav a:hover { text-decoration: underline; }
.pm-home__nav .pm-home__login {
  padding: 8px 16px; border: 1px solid var(--home-ink); border-radius: 0;
  background: var(--home-paper); color: var(--home-ink); font-weight: 600;
  transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}
.pm-home__nav .pm-home__login:is(:hover, :focus-visible) {
  background: var(--home-accent); border-color: var(--home-accent);
  color: var(--home-paper); text-decoration: none;
}
.pm-home .pm-home__cta { min-height: 48px; padding: 12px 20px; gap: 12px; border: 0; border-radius: 0; background: var(--home-accent); color: var(--home-paper); font-family: inherit; font-size: 14px; font-weight: 550; text-decoration: none; transition: background-color 180ms ease-out; }
.pm-home .pm-home__cta:hover, .pm-home .pm-home__cta:focus-visible { background: var(--hp-primary-hov); color: #fff; }
.pm-home__cta .pm-ico { width: 16px; height: 16px; }
.pm-home__hero {
  position: relative; display: grid; grid-template-areas: "pitch" "enquiry"; gap: 24px clamp(40px, 6vw, 88px);
  min-height: calc(100dvh - var(--home-header-height));
  align-content: center;
  padding-block: 72px;
}
.pm-home__hero--with-count {
  grid-template-areas: "pitch count" "enquiry count";
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.pm-home__pitch { grid-area: pitch; }
.pm-home__hero > .pm-home__cta { grid-area: enquiry; justify-self: start; }
.pm-home h1 { font-size: clamp(48px, 6.1vw, 80px); font-weight: 650; line-height: 1.02; letter-spacing: -.04em; }
.pm-home h1 span { white-space: nowrap; }
.pm-home .pm-home__benefit { margin-top: 20px; font-size: clamp(18px, 1.65vw, 22px); line-height: 1.4; font-weight: 600; }
.pm-home .pm-home__lead { margin-top: 8px; font-size: 17px; line-height: 1.65; max-width: 46ch; color: var(--home-muted); }
.pm-home .pm-home__payroll-count {
  grid-area: count; align-self: center; padding-block: 20px; border-block: 1px dotted var(--home-rule);
  color: var(--home-muted); font-size: clamp(16px, 1.5vw, 20px); line-height: 1.4;
}
.pm-home__counter {
  display: flex; flex-wrap: wrap; align-items: center; gap: .065em;
  color: var(--home-ink); font-size: clamp(40px, 5.65vw, 80px);
  font-weight: 620; line-height: 1; font-variant-numeric: tabular-nums;
}
.pm-home__counter-digit {
  position: relative; display: grid; place-items: center; overflow: hidden;
  padding: .09em .22em .12em;
  border: 1px solid var(--home-rule); border-radius: 8px; background: var(--home-paper);
  box-shadow: inset 0 -3px var(--home-rule);
}
.pm-home__counter-digit::before {
  content: ""; position: absolute; top: 50%; inset-inline: 0;
  border-top: 1px solid var(--home-rule);
}
.pm-home__counter-reel { height: 1em; overflow: hidden; }
.pm-home__counter > span:not(.pm-home__counter-digit) { margin-inline: -.035em; }
.pm-home__counter > span:last-child:not(.pm-home__counter-digit) { margin-inline: 0; font-size: .78em; }
.pm-home__count-label { display: block; margin-top: 12px; font-size: 14px; }
.pm-home__journey-list { margin: 40px 0 0; padding: 0; list-style: none; }
.pm-home__journey-list > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: 80px; padding-block: 32px; }
.pm-home__journey-list > li + li { border-top: 1px dotted var(--home-rule); }
.pm-home__journey-list > li:first-child { padding-top: 0; }
.pm-home__journey-list > li:last-child { padding-bottom: 0; }
.pm-home__journey-heading { display: flex; align-items: flex-start; gap: 20px; }
.pm-home__step-number { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border: 0; border-radius: 50%; background: var(--home-accent-soft); color: var(--home-accent); font-size: 20px; font-weight: 550; font-variant-numeric: tabular-nums; }
.pm-home__journey-heading h3 { padding-top: 3px; font-size: clamp(28px, 2.7vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.pm-home__journey-copy > p { color: var(--home-muted); font-size: 16px; line-height: 1.75; max-width: 55ch; }
.pm-home__features { margin: 24px 0 0; }
.pm-home__features > div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; margin-top: 16px; }
.pm-home__features dt { font-size: 15px; font-weight: 550; }
.pm-home__features dd { margin: 0; color: var(--home-muted); font-size: 15px; line-height: 1.75; }
.pm-home__contact-inner > .pm-home__cta { flex-shrink: 0; }
.pm-home .pm-lhdn-line { font-size: 13px; color: var(--home-muted); margin-top: 24px; }
.pm-home__testimonial, .pm-home__questions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: 80px; }
.pm-home__testimonial figure, .pm-home__testimonial blockquote { margin: 0; }
.pm-home__testimonial blockquote {
  color: var(--home-ink); font-size: clamp(23px, 2.4vw, 34px); line-height: 1.35;
  letter-spacing: -.025em; overflow-wrap: anywhere;
}
.pm-home__testimonial figcaption { margin-top: 16px; color: var(--home-muted); font-size: 14px; overflow-wrap: anywhere; }
.pm-home__faq-item + .pm-home__faq-item { border-top: 1px dotted var(--home-rule); }
.pm-home__faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 56px; padding-block: 16px; color: var(--home-ink); font-size: 16px; font-weight: 550; line-height: 1.5; letter-spacing: -.015em; list-style: none; cursor: pointer; }
.pm-home__faq-item summary::-webkit-details-marker { display: none; }
.pm-home__faq-item summary:hover .pm-ico { color: var(--home-accent); }
.pm-home__faq-item summary .pm-ico { width: 16px; height: 16px; transition: transform 180ms ease-out; }
.pm-home__faq-item[open] summary .pm-ico { transform: rotate(180deg); }
.pm-home__faq-item p { padding: 0 40px 20px 0; color: var(--home-muted); font-size: 15px; line-height: 1.75; }
.pm-home__contact-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 48px;
  padding: 52px 56px; border-radius: 12px;
  background: var(--home-surface);
}
.pm-home__contact-inner h2 { font-size: clamp(32px, 3.5vw, 48px); }
.pm-home__contact-inner p { margin-top: 18px; font-size: 16px; color: var(--home-muted); }
.pm-home__footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 30px 38px; }
.pm-home__footer .pm-home__brand { font-size: 22px; }
.pm-home__footer .pm-brand__mark { width: 27px; height: 27px; }
.pm-home__footer p { font-size: 13px; color: var(--home-muted); }
@media (max-width: 1000px) {
  .pm-home__wrap { width: calc(100% - 64px); }
  .pm-home__nav { gap: 24px; }
  .pm-home__journey-list > li { gap: 48px; }
  .pm-home__testimonial, .pm-home__questions { gap: 48px; }
}
@media (max-width: 760px) {
  .pm-home__wrap { width: calc(100% - 40px); }
  .pm-home main > section + section { padding-block: 44px; }
  .pm-home { --home-header-height: 68px; --home-gutter: 20px; }
  .pm-home__header {
    position: relative; z-index: 1; width: 100%; gap: 8px;
    padding-inline: var(--home-gutter); background: var(--home-paper);
    border-bottom: 1px solid var(--home-rule);
  }
  .pm-home__header .pm-home__brand { min-height: 44px; }
  .pm-home__brand, .pm-home__footer .pm-home__brand { font-size: 1.25rem; gap: 8px; }
  .pm-home__brand .pm-brand__mark { width: 25px; height: 25px; }
  .pm-home__nav { gap: 12px; font-size: .8125rem; }
  .pm-home__nav .pm-home__nav-section { display: none; }
  .pm-home__nav .pm-home__login { padding-inline: 12px; }
  .pm-home__menu { display: block; color: var(--home-accent); }
  .pm-home__menu summary {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    min-height: 44px; min-width: 44px; list-style: none; cursor: pointer;
  }
  .pm-home__menu summary::-webkit-details-marker { display: none; }
  .pm-home__menu .pm-ico { width: 16px; height: 16px; }
  .pm-home__menu[open] summary .pm-ico { transform: rotate(180deg); }
  .pm-home__menu-links {
    position: absolute; inset: 100% 0 auto; padding: 4px var(--home-gutter) 8px;
    background: var(--home-paper); border-block: 1px solid var(--home-rule);
  }
  .pm-home__menu-links a {
    display: flex; justify-content: space-between; min-height: 48px;
    font-size: .9375rem; font-weight: 500;
  }
  .pm-home__menu-links a + a { border-top: 1px solid var(--home-rule); }
  .pm-home__hero { padding-top: 40px; padding-bottom: 48px; }
  .pm-home__hero--with-count { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pitch" "count" "enquiry"; }
  .pm-home h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 2.875rem); }
  .pm-home__counter { font-size: clamp(2rem, 1.25rem + 5vw, 2.625rem); }
  .pm-home h2 { font-size: 1.75rem; }
  .pm-home .pm-home__benefit { font-size: 1rem; }
  .pm-home .pm-home__lead, .pm-home__faq-item summary { font-size: .9375rem; }
  .pm-home .pm-home__cta, .pm-home__count-label { font-size: .8125rem; }
  .pm-home__journey-list { margin-top: 28px; }
  .pm-home__journey-list > li { grid-template-columns: 1fr; gap: 16px; padding-block: 28px; }
  .pm-home__journey-heading { gap: 16px; }
  .pm-home__step-number { width: 36px; height: 36px; flex-basis: 36px; font-size: 17px; }
  .pm-home__journey-copy { margin-left: 52px; }
  .pm-home__journey-heading h3 { padding-top: 2px; font-size: 1.5rem; }
  .pm-home__journey-copy > p { font-size: 15px; }
  .pm-home__features > div { grid-template-columns: 1fr; gap: 4px; }
  .pm-home__features dd { font-size: 14px; }
  .pm-home__testimonial blockquote { font-size: 1.3125rem; }
  .pm-home__testimonial, .pm-home__questions { grid-template-columns: 1fr; gap: 20px; }
  .pm-home__faq-item p { padding-right: 0; }
  .pm-home__contact-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding: 32px 24px; }
  .pm-home__contact-inner h2 { font-size: 1.75rem; }
  .pm-home__contact-inner p { font-size: 14px; }
  .pm-home__footer { flex-wrap: wrap; gap: 14px 24px; padding-block: 24px; }
  .pm-home__footer p { order: 3; flex-basis: 100%; }
}
@media (max-width: 380px) {
  .pm-home__wrap { width: calc(100% - 32px); }
  .pm-home { --home-gutter: 16px; }
  .pm-home__header { width: 100%; }
  .pm-home__nav { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-home *, .pm-home *::before, .pm-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
