/* Province landing pages (/<province>-payroll/). Builds on site.css and payhr_brand.css tokens:
   ink #232426, accent #0040ff, line #dddcd9, inputs 8px/44px, buttons 40px, cards 26px. */
.province-landing [hidden] { display: none !important; }
.province-landing { --landing-accent: #0040ff; --landing-accent-hover: #002cc2; --landing-surface: #f0f4ff; --landing-line: #dfe3ea; --landing-muted: #5b606c; --landing-error: #b3261e; }

/* Light header: logo, Pricing, Log in (always visible; no menu button). */
.landing-header .nav-wrap { min-height: 76px; gap: 20px; }
.landing-nav { display: flex; align-items: center; gap: 28px; font-size: .9375rem; font-weight: 600; }
.landing-nav a { text-decoration: none; padding-block: 10px; min-height: 44px; display: inline-flex; align-items: center; }
.landing-nav a:hover { color: var(--landing-accent); }
.landing-nav a:last-child { border: 1px solid currentColor; border-radius: 40px; padding: 10px 20px; }

/* Hero: copy + form side by side from 960px; copy, form, photo stacked below. */
/* Mobile: H1 and subhead, then the form, then trust bullets and photo. One form in the DOM (auth controller). */
.landing-hero { display: grid; gap: 28px 64px; padding: 28px 0 64px; grid-template-areas: "copy" "form" "trust" "media"; }
.landing-hero__copy { grid-area: copy; }
.landing-hero__copy > :last-child { margin-bottom: 0; }
.landing-hero__form { grid-area: form; }
.landing-hero > .landing-trust { grid-area: trust; }
.landing-hero__media { grid-area: media; }
@media (min-width: 960px) {
  .landing-hero { grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); grid-template-rows: auto auto 1fr; grid-template-areas: "copy form" "trust form" "media form"; align-items: start; padding-top: 40px; }
  /* Static, top-aligned with the H1 (the badge sits above the H1). It does not follow the scroll (owner request). */
  .landing-hero__form { margin-top: 52px; }
}
.landing-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.1rem); margin-bottom: 20px; }
.landing-subhead { font-size: 1.125rem; line-height: 1.7; margin-bottom: 22px; max-width: 34em; }
.landing-badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 14px 6px 8px; border: 1px solid var(--landing-line); border-radius: 40px; font-size: .8125rem; font-weight: 600; color: #232426; background: #fff; }
.landing-badge img { width: auto; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px #0000001a; }
.landing-trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.landing-trust li { display: flex; gap: 12px; align-items: flex-start; font-size: .9875rem; font-weight: 500; }
.landing-trust svg { flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 2px; border-radius: 50%; color: #fff; background: var(--landing-accent); }
.landing-hero__media picture, .landing-hero__media img { display: block; width: 100%; height: auto; }
.landing-hero__media img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 26px; background: var(--landing-surface); }

/* Signup form: soft tinted panel, no white box, border or shadow (owner request). */
.landing-card { background: var(--landing-surface); border-radius: 24px; padding: clamp(22px, 3vw, 32px); }
.landing-card__title { font-size: 1.95rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -.04em; }
.landing-card__lead { font-size: .9375rem; margin-bottom: 20px; }
.landing-card__lead strong { color: #232426; overflow-wrap: anywhere; }
.landing-form { display: flex; flex-direction: column; gap: 14px; }
.landing-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .landing-row { grid-template-columns: 1fr; } }
.landing-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.landing-field label, .landing-code legend { font-size: .9375rem; font-weight: 650; color: #232426; }
.landing-form input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #c9ced8; border-radius: 8px; background: #fff; color: #232426; font-size: 1rem; }
.landing-form input:hover { border-color: #9aa3b2; }
.landing-form input:focus-visible { outline: 3px solid var(--landing-accent); outline-offset: 1px; border-color: var(--landing-accent); }
.landing-form input[aria-invalid="true"] { border-color: var(--landing-error); }
.landing-affix { position: relative; }
.landing-affix > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #6a6f78; pointer-events: none; }
.landing-affix input { padding-left: 28px; }
.landing-help { font-size: .8125rem; color: var(--landing-muted); margin: 0; }
.landing-submit { width: 100%; min-height: 52px; font-size: 1.0625rem; font-weight: 650; margin-top: 4px; }
.landing-offer { margin: -4px 0 0; font-size: .8125rem; line-height: 1.5; color: var(--landing-muted); text-align: center; }
.landing-submit[disabled] { opacity: .65; cursor: progress; transform: none; }
.landing-turnstile:empty { display: none; }
.landing-turnstile { min-height: 65px; }
.landing-legal { font-size: .75rem; margin: 0; color: var(--landing-muted); }
.landing-legal a, .landing-cost-example a { color: var(--landing-accent); font-weight: 600; }
.landing-back, .landing-link-button { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--landing-accent); font-weight: 600; font-size: .875rem; }
.landing-back { margin: -10px 0 6px; }
.landing-link-button[disabled] { color: #6a6f78; cursor: default; }
.landing-code { border: 0; padding: 0; margin: 0; min-width: 0; }
.landing-code legend { padding: 0; margin-bottom: 8px; }
.landing-code__digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.landing-form .landing-code__digits input { height: 56px; padding: 0; text-align: center; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.landing-status { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: .875rem; color: var(--landing-muted); }
.landing-status:not([data-ui-busy]) { display: none; }
.landing-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #c9d6ff; border-top-color: var(--landing-accent); animation: landing-spin .8s linear infinite; }
@keyframes landing-spin { to { transform: rotate(360deg); } }
.landing-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: #fbeeec; color: var(--landing-error); font-size: .875rem; font-weight: 500; }
.landing-username-status { min-height: 1.25rem; margin: 0; font-size: .8125rem; font-weight: 600; }
.landing-username-status[data-state="available"] { color: #1f7a45; }
.landing-username-status[data-state="unavailable"], .landing-username-status[data-state="invalid"], .landing-username-status[data-state="error"] { color: var(--landing-error); }
.landing-suggestions__list { display: flex; flex-wrap: wrap; gap: 8px; }
.landing-suggestions__list button { min-height: 36px; padding: 6px 14px; border: 1px solid var(--landing-line); border-radius: 40px; background: #fff; font-size: .875rem; font-weight: 600; }
.landing-suggestions__list button:hover { border-color: var(--landing-accent); color: var(--landing-accent); }

/* Shared section pieces */
.landing-section-head { max-width: 720px; margin-bottom: 36px; }
.landing-section-head h2 { margin-bottom: 0; }
.landing-split { display: grid; gap: 24px 80px; }
@media (min-width: 960px) { .landing-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.landing-prose p { font-size: 1rem; line-height: 1.8; }
.landing-prose a { color: var(--landing-accent); font-weight: 600; }

/* Trust strip under the hero (factual only) */
.landing-strip { border-block: 1px solid var(--landing-line); }
.landing-strip__list { list-style: none; margin: 0 auto; padding-block: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .9375rem; font-weight: 600; color: #232426; }
.landing-strip__list li { display: inline-flex; align-items: center; gap: 10px; }
.landing-strip__list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--landing-accent); }

/* Pricing strip */
.landing-pricing { background: #f7f8fa; padding: 80px 0; }
.landing-price-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .landing-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.landing-price { background: #fff; border: 1px solid var(--landing-line); border-radius: 26px; padding: 28px; }
.landing-price--accent { background: var(--landing-surface); border-color: #c9d6ff; }
.landing-price h3 { font-size: 1.15rem; letter-spacing: -.02em; margin-bottom: 10px; }
.landing-price__amount { font-size: 2.6rem; font-weight: 600; letter-spacing: -.05em; color: #232426; line-height: 1.1; margin-bottom: 12px; }
.landing-price__amount small { font-size: .875rem; font-weight: 500; letter-spacing: 0; color: var(--landing-muted); }
.landing-price p:last-child { font-size: .9375rem; margin: 0; }
.landing-price__list { list-style: none; padding: 0; margin: 0 0 12px; }
.landing-price__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--landing-line); font-size: .9375rem; }
.landing-cost-example { margin: 24px 0 0; padding: 18px 22px; border-radius: 16px; background: #fff; border: 1px dashed #b9c7ef; color: #232426; font-size: .9875rem; }

/* Product screenshots: text and real screen, alternating sides from 960px */
.landing-showcase__item { display: grid; gap: 24px 64px; align-items: center; }
.landing-showcase__item + .landing-showcase__item { margin-top: 56px; }
.landing-showcase__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.03em; margin-bottom: 12px; }
.landing-showcase__text p { font-size: 1rem; line-height: 1.75; margin: 0; max-width: 32em; }
.landing-showcase__shot { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--landing-line); background: #fff; }
@media (min-width: 960px) {
  .landing-showcase__item { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .landing-showcase__item--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .landing-showcase__item--flip .landing-showcase__text { order: 2; }
}

/* How it works */
.landing-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .landing-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.landing-steps li { border: 1px solid var(--landing-line); border-radius: 26px; padding: 26px; }
.landing-steps img { width: 100%; height: 170px; object-fit: contain; margin-bottom: 18px; }
.landing-steps__number { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--landing-accent); margin-bottom: 8px; }
.landing-steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.landing-steps p { margin: 0; font-size: .9375rem; }

/* Rules and example */
.landing-rules { background: var(--landing-surface); padding: 90px 0; }
.landing-cities { font-size: .9375rem; }
.landing-sources__title { font-size: 1rem; letter-spacing: 0; margin: 26px 0 10px; }
.landing-sources { margin: 0; padding-left: 20px; }
.landing-sources li { padding: 4px 0; }
.landing-example { background: #f7f8fa; border: 1px solid var(--landing-line); border-radius: 26px; padding: clamp(22px, 3vw, 32px); }
.landing-example > :last-child { margin-bottom: 0; }
.landing-rules__inner { display: grid; gap: 32px 64px; align-items: center; }
.landing-rules__text { max-width: 720px; }
.landing-rules__mascot { display: block; justify-self: center; width: min(100%, 300px); height: auto; max-height: 320px; object-fit: contain; }
@media (min-width: 960px) {
  .landing-rules__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  .landing-rules__mascot { width: 100%; max-width: 420px; max-height: 460px; }
}
.landing-example__mascot { display: block; width: min(60%, 240px); height: auto; margin-top: 24px; }

/* Feature grid */
.landing-features { padding: 0 0 90px; }
.landing-feature-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.landing-feature { border: 1px solid var(--landing-line); border-radius: 26px; padding: 26px; }
.landing-icon { display: block; width: 64px; height: 64px; margin-bottom: 16px; }
.landing-price .landing-icon { box-sizing: content-box; padding: 8px; border-radius: 18px; background: var(--landing-surface); }
.landing-price--accent .landing-icon { background: #fff; }
.landing-feature .landing-icon { width: 56px; height: 56px; margin-bottom: 14px; }
.landing-feature h3 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: -.02em; }
.landing-feature p { font-size: .9375rem; margin: 0; line-height: 1.7; }

/* Closing call to action */
.landing-cta { padding: 0 0 100px; }
.landing-cta__inner { text-align: center; background: var(--landing-accent); color: #fff; border-radius: 30px; padding: clamp(40px, 6vw, 72px) 24px; }
.landing-cta__mascot { display: block; width: auto; height: clamp(96px, 14vw, 140px); margin: 0 auto 20px; }
.landing-cta__inner h2 { color: #fff; }
.landing-cta__inner p { color: #dbe5ff; font-size: 1.0625rem; max-width: 36em; margin: 0 auto 28px; }
.landing-cta__actions { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: center; align-items: center; }
.landing-cta .button { background: #fff; color: var(--landing-accent); border-color: #fff; }
.landing-cta .button:hover { background: #eef3ff; color: var(--landing-accent-hover); }
.landing-cta .text-link { color: #fff; }
.landing-cta a:focus-visible { outline-color: #fff; }

#landing-first-name { scroll-margin-top: 140px; }
.footer-comparisons a[aria-current] { color: var(--landing-accent); font-weight: 600; }

@media (max-width: 700px) {
  .landing-pricing, .landing-rules { padding: 60px 0; }
  .landing-nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-spinner { animation-duration: 2.4s; }
}

/* Mobile: keep the site-wide "Cookie settings" pill (tracking.css, bottom-left) off the form inputs. */
@media (max-width: 959px) {
  body.province-landing .payhr-cookie-settings { left: auto; right: 12px; }
}

/* Footer label contrast (Lighthouse: #727987 on white is below 4.5:1). */
body.province-landing .canada-label { color: #5b606c; }
