/* AI Payroller. Layout and graphics are shared; all copy lives in each page's HTML. */
:root {
  --navy: #101d3c;
  --ink: #26344f;
  --muted: #5a667b;
  --teal: #244ee4;
  --teal-dark: #183dc4;
  --mint: #edf2ff;
  --lime: #fff;
  --paper: #f5f7fb;
  --line: #dbe1eb;
  --white: #fff;
  --max: 1320px;
  --gutter: 40px;
  --font: 'Work Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Archivo', var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body { margin: 0; color: var(--navy); background: white; font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,p,figure { margin: 0; }
h1,h2,h3,h4 { font-family: var(--head); font-weight: 500; letter-spacing: -.04em; line-height: 1.12; }
h1 { font-size: clamp(3rem,5.4vw,5rem); }
h2 { font-size: clamp(2.1rem,3.6vw,3.5rem); }
h3 { font-size: 1.45rem; letter-spacing: -.025em; }
h4 { font-size: 1.1rem; }
p { color: var(--muted); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
img,svg { max-width: 100%; vertical-align: middle; }
img { height: auto; }
ul { padding-left: 1.3rem; margin: 0; }
li+li { margin-top: 9px; }
:focus-visible { outline: 3px solid #426efa; outline-offset: 5px; }
[hidden] { display: none!important; }
section[id],article[id] { scroll-margin-top: 105px; }
::selection { background: #dbe6ff; color: var(--navy); }
.wrap { max-width: var(--max); margin: auto; padding: 0 var(--gutter); }
.section { padding: 105px 0; }
.section-sm { padding: 66px 0; }
.paper { background: var(--paper); }
.mint { background: #f0f5ff; }
.section-head { max-width: 780px; margin-bottom: 50px; }
.section-head p:not(.eyebrow) { font-size: 1.08rem; margin-top: 22px; max-width: 650px; }
.section-head.wide { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-head.wide>div { max-width: 700px; }
.eyebrow { color: var(--teal); font-size: .8rem; font-weight: 500; margin-bottom: 23px; }
.lede { font-size: 1.13rem; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 16px; font-weight: 500; font-size: .92rem; margin-top: 24px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.text-link .icon { width: 20px; height: 20px; }
.small { font-size: .83rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.tag { display: inline-block; color: var(--teal); font-size: .76rem; font-weight: 500; line-height: 1.45; }
.tag.amber { color: #885719; }
.tag.outline { color: var(--muted); }
.tag .icon { width: 14px; height: 14px; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 200; transform: translateY(-150%); padding: 12px 20px; background: var(--navy); color: white; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: white; border-bottom: 1px solid #edf0f5; }
.header-inner { height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 25px; max-width: 1460px; margin: auto; padding: 0 var(--gutter); }
.brand { flex-shrink: 0; display: flex; align-items: center; }
.brand img { width: 182px; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { color: var(--ink); font-size: .85rem; font-weight: 500; white-space: nowrap; }
.nav-links a[aria-current=page] { color: var(--teal); text-decoration: underline; text-underline-offset: 9px; }
.portal-nav-link { display: none; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: .73rem; }
.lang-switch a { color: var(--muted); padding: 6px 2px; }
.lang-switch [aria-current=true] { color: var(--navy); font-weight: 600; }
.lang-switch span { color: #9eabc0; }
.nav-toggle { display: none; align-items: center; gap: 7px; background: white; border: 1px solid var(--line); color: var(--navy); padding: 9px 12px; font-size: .8rem; border-radius: 3px; }
.nav-toggle .icon { width: 18px; height: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 22px; font-size: .9rem; font-weight: 500; padding: 15px 24px; min-height: 50px; border: 1px solid transparent; border-radius: 3px; line-height: 1.5; text-align: center; transition: background .18s; }
.btn .icon { width: 19px; height: 19px; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary { background: transparent; color: var(--navy); border-color: #b4c0d3; }
.btn-secondary:hover { background: #f1f5ff; }
.btn-light { background: white; color: var(--teal); }
.btn-light:hover { background: #e9efff; }
.btn-sm { min-height: 43px; padding: 10px 17px; font-size: .8rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
/* The hero opens into a full-bleed artwork, without a mock application frame. */
.hero { background: white; padding: 64px 0 75px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: center; min-height: 560px; }
.hero h1 { font-size: clamp(3.7rem,5.55vw,5.25rem); font-weight: 500; line-height: 1.07; letter-spacing: -.055em; max-width: 12ch; }
.hero .lede { margin-top: 29px; max-width: 525px; font-size: 1.08rem; }
.hero .eyebrow { color: var(--muted); font-size: .8rem; }
.hero-note { font-size: .78rem; margin-top: 25px; }
.included-note { margin-top: 22px; font-weight: 600; color: var(--teal); }
.internal-prose { max-width: 780px; }
.internal-prose p + p { margin-top: 18px; }
.source-links { margin-top: 16px; font-size: .85rem; }
.hero-grid > div,.page-head-grid > div { min-width: 0; }
.hero h1 { max-width: 15ch; }
.flow-sculpture { position: relative; min-width: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; margin-right: -90px; }
/* <picture> ei saa muodostaa omaa laatikkoa: img pysyy suorana flex-lapsena. */
.flow-sculpture picture { display: contents; }
.flow-sculpture img { width: 760px; max-width: 135%; height: auto; aspect-ratio: 3/2; object-fit: contain; }
.flow-sculpture figcaption { position: absolute; left: 9%; bottom: 26px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; line-height: 1.45; color: var(--muted); border-left: 2px solid var(--teal); padding-left: 16px; }
.flow-sculpture figcaption strong { color: var(--navy); font-weight: 500; }
.page-head-grid .flow-sculpture { margin-right: -35px; }
.page-head-grid .flow-sculpture figcaption { bottom: 0; }
/* Audience links form a single, compact navigation band. */
#kenelle { background: #eff4ff; padding: 42px 0; }
.audience-row { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.audience-card { display: block; padding: 0; }
.audience-card+.audience-card { border-left: 1px solid #c8d6f1; padding-left: 55px; }
.audience-card h3 { font-size: 1.37rem; margin-bottom: 10px; }
.audience-card p { font-size: .9rem; max-width: 470px; }
.audience-card .text-link { margin-top: 14px; font-size: .84rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 85px; }
.split.top { align-items: start; }
.split p+p { margin-top: 18px; }
.adoption-section { background: white; }
.adoption-layout { display: grid; grid-template-columns: .85fr 1.2fr; gap: 100px; align-items: start; }
.adoption-layout .section-head { margin: 0; position: sticky; top: 145px; }
.adoption-layout h2 { max-width: 410px; }
.mode-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.mode-card { border-top: 2px solid #b9c9ed; padding-top: 26px; }
.mode-card.primary { border-color: var(--teal); }
.mode-card .eyebrow { margin-bottom: 12px; font-size: .74rem; }
.mode-card h3 { font-size: 1.8rem; margin-bottom: 17px; }
.mode-card p { font-size: .98rem; }
.mode-card .text-link { margin-top: 20px; }
/* Features read as a directory, not a grid of interchangeable cards. */
.feature-directory { display: grid; grid-template-columns: 1fr; }
.feature-card { display: grid; grid-template-columns: 1fr 1.3fr .7fr; align-items: start; gap: 45px; border-top: 1px solid var(--line); padding: 30px 0; }
.feature-card h3 { font-size: 1.5rem; }
.feature-card p { font-size: .97rem; }
.feature-card .text-link { margin-top: 0; justify-self: end; font-size: .86rem; text-align: right; }
.feature-card:not(:has(.text-link)) { grid-template-columns: 1fr 2fr; }
/* Keep all four payroll stages visible in the blue process section. */
.workflow { background: var(--teal); color: white; }
.payroll-stages { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; padding: 0; list-style: none; }
.payroll-stage { display: flex; flex-direction: column; border-top: 1px solid #ffffff60; padding-top: 22px; }
.payroll-stage + .payroll-stage { margin-top: 0; }
.workflow .stage-phase { color: white; font-weight: 600; margin-bottom: 18px; }
.stage-phase span { display: inline-block; margin-right: 8px; font-size: .8rem; }
.payroll-stage h3 { font-size: 1.55rem; line-height: 1.2; }
.payroll-stage ul { padding-left: 20px; margin: 22px 0; color: #e5edff; font-size: .95rem; }
.payroll-stage li + li { margin-top: 10px; }
.payroll-stage .text-link { color: white; margin-top: auto; align-self: flex-start; }
.payroll-stage .text-link:focus-visible { outline-color: white; }
.process-principle { border-top: 1px solid #ffffff60; margin-top: 40px; padding-top: 28px; }
.process-principle h3 { font-size: 1.5rem; }
.process-principle p { max-width: 850px; margin-top: 12px; color: #e5edff; }
@media(max-width:760px) {
  .payroll-stages { grid-template-columns: 1fr; gap: 28px; }
  .payroll-stage ul { margin: 16px 0; }
}
@media print {
  .workflow .stage-phase,.payroll-stage ul,.payroll-stage .text-link,.process-principle p { color: var(--navy); }
  .payroll-stage,.process-principle { border-color: var(--line); break-inside: avoid; }
}
.workflow .eyebrow { color: #c3d1ff; }
.workflow .section-head p { color: #dae3ff; }
.workflow .section-head { max-width: 840px; margin-bottom: 58px; }
.workflow-shell { display: grid; grid-template-columns: .65fr 1.55fr; gap: 75px; }
.workflow-tabs { display: flex; flex-direction: column; align-items: stretch; list-style: none; padding: 0; margin: 0; }
.workflow-tab { display: flex; align-items: baseline; gap: 18px; width: 100%; color: #c3d1ff; background: transparent; text-align: left; border: 0; border-bottom: 1px solid #ffffff35; padding: 22px 0; font-family: var(--head); font-size: 1.26rem; line-height: 1.4; }
.workflow-tab span { font-family: var(--font); font-size: .7rem; color: #b0c4ff; }
.workflow-tab[aria-selected=true] { color: white; border-color: white; }
.workflow-tab[aria-selected=true] span { color: white; }
.workflow-tab:hover { color: white; }
.workflow-tab:focus-visible { outline-color: white; outline-offset: 4px; }
.workflow-panel { padding-top: 18px; display: grid; grid-template-columns: 1fr; gap: 35px; }
.workflow-panel h3 { font-size: 2.05rem; color: white; margin-bottom: 19px; max-width: 640px; }
.workflow-panel p { color: #e0e8ff; font-size: 1rem; }
.workflow-panel strong { color: white; font-weight: 500; }
.workflow-panel aside { margin-top: 22px; padding-left: 20px; border-left: 1px solid #a9beff; }
.workflow-example { padding: 22px 0 0; border-top: 1px solid #ffffff50; }
.workflow-example .small { color: #bacdff; font-size: .69rem; margin-bottom: 12px; }
.example-row { display: flex; align-items: baseline; justify-content: space-between; gap: 25px; font-size: .88rem; padding: 10px 0; border-bottom: 1px solid #ffffff20; }
.example-row>span:first-child { color: white; }
.example-row .tag,.example-row .tag.outline { color: #e2eaff; }
.workflow-foot { display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid #ffffff35; padding-top: 24px; margin-top: 42px; font-size: .8rem; }
.workflow-foot p { color: #d6e1ff; }
.workflow-foot .text-link { color: white; margin-top: 0; font-size: .82rem; }
.workflow-panels:not(.enhanced) .workflow-panel+.workflow-panel { margin-top: 45px; }
.check-list { list-style: none; padding: 0; margin-top: 24px; }
.check-list li { display: flex; align-items: start; gap: 12px; color: var(--ink); font-size: .95rem; }
.check-list .icon { color: var(--teal); width: 18px; height: 18px; margin-top: 4px; }
/* Rule relationships are drawn on open space, with a continuous spine. */
.trust-graphic,.rule-example { position: relative; padding: 10px 0 10px 35px; border-left: 3px solid var(--teal); }
.trust-graphic>p,.rule-example>p { font-size: .75rem; color: var(--teal); margin-bottom: 24px; }
.rule-row { padding: 16px 0; position: relative; }
.rule-row::before { content: ''; position: absolute; left: -40px; top: 22px; width: 7px; height: 7px; background: white; border: 2px solid var(--teal); }
.rule-row strong { font-family: var(--head); font-weight: 500; font-size: 1.24rem; }
.rule-row p { font-size: .9rem; margin-top: 5px; }
.trust-stamp { margin-top: 24px; font-size: .83rem; color: var(--teal); padding-top: 19px; border-top: 1px solid var(--line); }
.connections-figure { padding: 10px 0; }
.connections-label { color: var(--muted); font-size: .73rem; margin-bottom: 16px; }
.connections-group ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; padding: 0; }
.connections-group li { font-size: .86rem; margin: 0; padding: 8px 0 13px; border-bottom: 1px solid #c8d6f1; }
.connections-bridge { margin: 26px 0; padding: 25px 30px; background: var(--teal); color: white; position: relative; }
.connections-bridge::before,.connections-bridge::after { content: ''; position: absolute; left: 50%; height: 26px; width: 1px; background: #9cb5e8; }
.connections-bridge::before { bottom: 100%; }
.connections-bridge::after { top: 100%; }
.connections-bridge strong { font-family: var(--head); font-size: 1.7rem; font-weight: 500; }
.connections-bridge p { color: #dee8ff; font-size: .85rem; margin-top: 5px; }
.connections-figure figcaption { font-size: .73rem; color: var(--muted); margin-top: 22px; }
.integration-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.integration-table caption { text-align: left; color: var(--muted); font-size: .82rem; padding-bottom: 20px; }
.integration-table th { text-align: left; color: var(--muted); font-size: .74rem; padding: 17px 20px; background: #eff4ff; }
.integration-table td { padding: 26px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.integration-table td:first-child { font-weight: 500; min-width: 160px; }
.integration-table small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: 5px; }
.table-scroll { overflow-x: auto; }
.table-note { font-size: .84rem; margin-top: 22px; max-width: 810px; }
.named-systems { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; }
.named-systems span { font-family: var(--head); font-weight: 500; font-size: 1.2rem; letter-spacing: -.03em; color: var(--navy); }
.contact-section { padding: 95px 0; background: #eff4ff; }
.contact-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 95px; align-items: center; }
.contact-copy h2 { max-width: 540px; }
.contact-copy>p:not(.eyebrow) { margin-top: 23px; max-width: 500px; font-size: 1rem; }
.contact-copy .check-list { margin-top: 26px; }
.contact-copy .check-list li { font-size: .88rem; }
.contact-actions { display: flex; flex-direction: column; align-items: start; gap: 20px; border-left: 1px solid #c7d5ef; padding-left: 65px; }
.contact-actions h3 { font-size: 1.5rem; }
.contact-actions p { font-size: .87rem; }
.contact-actions .btn { background: var(--teal); color: white; min-width: 225px; }
.contact-actions .btn:hover { background: var(--teal-dark); }
.contact-actions>a:not(.btn) { font-size: 1.03rem; overflow-wrap: anywhere; }
.contact-actions .small { font-size: .76rem; }
.contact-box.booking-contact {
  align-items: start;
}
.contact-section.booking-section { padding: 80px 0 45px; }
.contact-actions.booking-calendar { align-items: stretch; gap: 16px; }
.contact-actions .calendly-inline-widget { width: 100%; height: 650px !important; }
.site-footer { padding: 72px 0 30px; background: var(--navy); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 45px; margin-bottom: 55px; }
/* White presentation of the shared Nordic line logo on the navy footer. */
.footer-brand img { width: 190px; margin-bottom: 24px; filter: brightness(0) invert(1); }
.footer-brand p { color: #adb9d2; font-size: .86rem; max-width: 280px; }
.site-footer h3 { font: 500 .78rem var(--font); color: #a9b8d8; margin-bottom: 22px; }
.site-footer ul { list-style: none; padding: 0; font-size: .84rem; }
.site-footer li+li { margin-top: 13px; }
.site-footer a { color: #e0e7f5; }
.footer-bottom { padding-top: 25px; border-top: 1px solid #ffffff25; display: flex; justify-content: space-between; gap: 25px; font-size: .74rem; color: #a9b8d8; }
.page-head { padding: 75px 0; background: white; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head h1 { max-width: 920px; }
.page-head .lede { max-width: 720px; margin-top: 28px; }
.page-head-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; align-items: center; }
.page-head-grid h1 { font-size: clamp(2.6rem,4.4vw,4.1rem); }
.subnav { display: flex; gap: 15px 24px; flex-wrap: wrap; margin-top: 35px; }
.subnav a { color: var(--ink); font-size: .82rem; border-bottom: 1px solid #bccbea; padding-bottom: 6px; }
.detail-section { padding: 90px 0; border-bottom: 1px solid var(--line); }
.detail-section:nth-child(even) { background: #f7f9fd; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 95px; align-items: start; }
.detail-content>p { margin-top: 21px; }
.detail-content .check-list { margin-bottom: 26px; }
.detail-note { font-size: .84rem!important; border-left: 2px solid #82a0ed; padding-left: 17px; }
.process-card { padding: 10px 0 0 25px; }
.process-card>p { font-size: .76rem; color: var(--teal); margin-bottom: 28px; }
.process-card ol { list-style: none; padding: 0; margin: 0; }
.process-card li { display: flex; gap: 24px; position: relative; margin: 0; padding-bottom: 32px; align-items: start; }
.process-card li:last-child { padding-bottom: 0; }
.process-card li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 32px; bottom: 8px; background: #b7cbf3; width: 1px; }
.step-number { font-size: .76rem; color: var(--teal); min-width: 25px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.process-card h3 { font-size: 1.16rem; margin-top: 3px; }
.process-card li p { font-size: .87rem; margin-top: 8px; }
.process-card .tag { margin-top: 11px; }
.callout { padding: 25px 28px; border-left: 3px solid var(--teal); background: #edf3ff; color: var(--ink); font-size: .94rem; }
/* Pricing remains a direct, side-by-side comparison of the original six plans. */
.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); }
.price-card { padding: 34px; display: flex; flex-direction: column; align-items: start; background: white; min-width: 0; }
.price-card+.price-card { border-left: 1px solid var(--line); }
.price-card.featured { background: #edf3ff; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; margin-bottom: 20px; }
.plan-heading h3 { font-size: 1.6rem; }
.plan-for { font-size: .9rem; min-height: 88px; }
.plan-amount { font-family: var(--head); font-size: 3rem; letter-spacing: -.05em; line-height: 1.15; margin: 28px 0 19px; color: var(--navy); }
.plan-amount span { font-family: var(--font); font-size: .83rem; letter-spacing: 0; color: var(--muted); }
.plan-amount.quote { font-size: 1.85rem; min-height: 56px; display: flex; align-items: center; }
.price-card .plan-included { font-size: .83rem; color: var(--navy); font-weight: 500; }
.price-card .plan-extra { font-size: .8rem; margin-top: 6px; }
.price-card .check-list { margin: 27px 0 30px; border-top: 1px solid var(--line); padding-top: 24px; width: 100%; }
.price-card .check-list li { font-size: .86rem; }
.price-card .btn { width: 100%; margin-top: auto; }
.pricing-notice { display: flex; align-items: start; gap: 15px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pricing-notice>.icon { width: 21px; height: 21px; color: var(--teal); margin-top: 2px; }
.pricing-notice p { font-size: .85rem; }
.pricing-notice strong { color: var(--ink); font-weight: 500; }
.numbered-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 45px; }
.numbered-item { border-top: 2px solid #aec2ef; padding-top: 23px; }
.numbered-item>span { color: var(--teal); font-size: .82rem; }
.numbered-item h3 { margin: 19px 0 15px; font-size: 1.24rem; }
.numbered-item p { font-size: .94rem; }
.platform-section { background: var(--teal); color: white; }
.platform-section .section-head { max-width: 840px; }
.platform-section .section-head p { color: #dae3ff; max-width: 760px; }
.platform-section .numbered-item { border-color: #ffffff60; }
.platform-section .numbered-item>span { color: #c3d1ff; font-weight: 600; }
.platform-section .numbered-item h3 { color: white; }
.platform-section .numbered-item p { color: #e5edff; }

.faq { max-width: 950px; }
.faq details { border-bottom: 1px solid var(--line); padding: 25px 0; }
.faq summary { cursor: pointer; font-family: var(--head); font-size: 1.18rem; line-height: 1.5; letter-spacing: -.02em; padding-right: 28px; }
.faq details[open] summary { color: var(--teal); }
.faq details p { padding: 17px 35px 0 0; font-size: .97rem; }
.team-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 55px; }
.person { border-top: 1px solid var(--line); padding: 30px 0; }
.person h3 { font-size: 1.5rem; }
.person p { font-size: .95rem; margin-top: 9px; }
.person a { display: block; font-size: .87rem; margin-top: 10px; }
.prose { max-width: 800px; }
.prose h2 { font-size: 1.7rem; margin: 35px 0 18px; }
.prose h3 { font-size: 1.23rem; margin: 30px 0 15px; }
.prose p+p { margin-top: 19px; }
.prose li { color: var(--muted); }
.prose ul { margin: 20px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media(min-width:1500px) {
  .hero-grid { min-height: 620px; }
  .flow-sculpture { margin-right: -140px; }
}
@media(max-width:1200px) {
  .header-actions .portal-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 90px; left: 0; right: 0; padding: 12px var(--gutter) 25px; background: white; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { font-size: 1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .portal-nav-link { display: block; }
}
@media(max-width:1120px) {
  .payroll-stages { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .header-inner { gap: 18px; }
  .brand img { width: 153px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .77rem; }
  .header-actions { gap: 13px; }
  .header-actions .btn { padding: 10px 13px; }
  .hero h1 { font-size: 4.2rem; }
  .split,.detail-grid { gap: 55px; }
  .adoption-layout { gap: 65px; }
  .workflow-shell { gap: 50px; }
  .contact-box { gap: 55px; }
  .contact-actions { padding-left: 40px; }
  .footer-grid { gap: 28px; }
}
@media(max-width:960px) {
  :root { --gutter: 30px; }
  .header-inner { height: 76px; }
  .brand img { width: 175px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 12px var(--gutter) 25px; background: white; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { font-size: 1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 42px; }
  .hero-grid { min-height: 520px; }
  .hero h1 { font-size: 3.6rem; }
  .hero .lede { font-size: 1rem; }
  .flow-sculpture { margin-right: -65px; }
  .flow-sculpture figcaption { bottom: 15px; font-size: .82rem; }
  .audience-row { gap: 30px; }
  .audience-card+.audience-card { padding-left: 30px; }
  .feature-card { gap: 25px; grid-template-columns: 1fr 1.2fr .7fr; }
  .feature-card h3 { font-size: 1.3rem; }
  .workflow-shell { grid-template-columns: .7fr 1.4fr; gap: 40px; }
  .workflow-tab { font-size: 1.05rem; gap: 12px; }
  .workflow-panel h3 { font-size: 1.8rem; }
  .page-head-grid { gap: 35px; }
  .plan-heading { flex-wrap: wrap; gap: 8px; min-height: 60px; }
  .price-card { padding: 25px; }
  .plan-for { min-height: 118px; }
  .plan-amount { font-size: 2.5rem; }
  .plan-amount.quote { font-size: 1.5rem; min-height: 47px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media(max-width:760px) {
  :root { --gutter: 24px; }
  .section { padding: 72px 0; }
  .section-sm { padding: 48px 0; }
  .hero { padding: 42px 0 28px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 12px; }
  .hero h1 { font-size: clamp(3rem,8.8vw,4.6rem); max-width: none; }
  .hero .lede { max-width: 560px; }
  .hero .eyebrow { font-size: .72rem; }
  .hero-note { margin-top: 21px; }
  .flow-sculpture { margin: 0 -24px; min-height: 330px; }
  .flow-sculpture img { width: 620px; max-width: 100%; }
  .flow-sculpture figcaption { left: 28px; bottom: 16px; }
  .page-head-grid .flow-sculpture { margin: 0 -24px; }
  .page-head-grid .flow-sculpture figcaption { bottom: 5px; }
  .audience-row { grid-template-columns: 1fr; gap: 27px; }
  .audience-card+.audience-card { border-left: 0; padding-left: 0; border-top: 1px solid #c8d6f1; padding-top: 27px; }
  .adoption-layout,.split,.detail-grid,.page-head-grid { grid-template-columns: 1fr; gap: 45px; }
  .adoption-layout .section-head { position: static; }
  .adoption-layout h2 { max-width: 560px; }
  .mode-grid { gap: 32px; }
  .mode-card h3 { font-size: 1.65rem; }
  .section-head { margin-bottom: 36px; }
  .section-head.wide { display: block; }
  .feature-card { grid-template-columns: .9fr 1.2fr; gap: 15px 30px; padding: 26px 0; }
  .feature-card .text-link { grid-column: 2; justify-self: start; text-align: left; }
  .workflow-shell { grid-template-columns: 1fr; gap: 30px; }
  .workflow-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .workflow-tab { font-size: 1.06rem; padding: 16px 0; }
  .workflow .section-head { margin-bottom: 28px; }
  .workflow-panel { padding-top: 0; gap: 28px; }
  .workflow-panel h3 { font-size: 1.9rem; }
  .workflow-foot { flex-direction: column; gap: 15px; margin-top: 30px; }
  .contact-section { padding: 65px 0; }
  .contact-section.booking-section { padding: 55px 0 35px; }
  .contact-box { grid-template-columns: 1fr; gap: 38px; }
  .contact-actions .calendly-inline-widget { height: 700px !important; }
  .contact-actions { border-left: 0; padding-left: 0; border-top: 1px solid #c7d5ef; padding-top: 32px; }
  .contact-actions p { max-width: 490px; }
  .page-head { padding: 52px 0; }
  .page-head .lede { font-size: 1.05rem; }
  .detail-section { padding: 65px 0; }
  .process-card { padding-left: 0; }
  .numbered-grid { grid-template-columns: 1fr; gap: 30px; }
  .numbered-item h3 { margin: 12px 0; }
  .plans-grid { grid-template-columns: 1fr; }
  .price-card { padding: 32px; }
  .price-card+.price-card { border-left: 0; border-top: 1px solid var(--line); }
  .plan-heading { min-height: 0; flex-wrap: nowrap; }
  .plan-for { min-height: 0; }
  .plan-amount { font-size: 3rem; }
  .plan-amount.quote { font-size: 2rem; }
  .price-card .check-list li { font-size: .94rem; }
  .team-list { grid-template-columns: 1fr; }
  .integration-table { min-width: 660px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 30px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { flex-direction: column; gap: 13px; }
}
@media(max-width:480px) {
  :root { --gutter: 21px; }
  .header-inner { height: 72px; padding: 0 16px; gap: 10px; }
  .brand img { width: 139px; }
  .header-actions { gap: 12px; }
  .header-actions>.btn { display: none; }
  .nav-toggle { padding: 9px 10px; }
  .nav-links { top: 72px; }
  .lang-switch { font-size: .68rem; gap: 5px; }
  .hero { padding-top: 35px; }
  .hero h1 { font-size: 2.85rem; letter-spacing: -.05em; }
  .hero .lede { font-size: .97rem; margin-top: 23px; }
  .hero .eyebrow { font-size: .65rem; }
  .cta-row { gap: 10px; margin-top: 26px; }
  .cta-row .btn { font-size: .8rem; padding: 13px 17px; gap: 13px; }
  .hero-note { font-size: .71rem; }
  .flow-sculpture { min-height: 285px; margin-left: -21px; margin-right: -21px; }
  .flow-sculpture figcaption { font-size: .75rem; bottom: 3px; left: 22px; }
  .feature-card,.feature-card:not(:has(.text-link)) { grid-template-columns: 1fr; gap: 13px; }
  .feature-card h3 { font-size: 1.45rem; }
  .feature-card .text-link { grid-column: auto; margin-top: 3px; }
  .workflow-tab { font-size: .94rem; gap: 10px; }
  .workflow-tab span { font-size: .62rem; }
  .workflow-panel h3 { font-size: 1.7rem; }
  .example-row { font-size: .8rem; gap: 18px; }
  .example-row .tag { font-size: .75rem; text-align: right; }
  .connections-group li { font-size: .79rem; }
  .connections-bridge { padding: 22px; }
  .trust-graphic,.rule-example { padding-left: 25px; }
  .rule-row::before { left: -30px; }
  .contact-copy h2 { font-size: 2.2rem; }
  .footer-grid>div:last-child { grid-column: 1/-1; }
  .footer-bottom { font-size: .7rem; }
  .subnav { gap: 12px 18px; }
  .subnav a { font-size: .75rem; }
}
@media(max-width:350px) {
  .brand img { width: 118px; }
  .header-actions { gap: 8px; }
  .hero h1 { font-size: 2.55rem; }
  .cta-row .btn { width: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none!important; transition: none!important; }
}
@media print {
  .site-header,.site-footer,.contact-section,.cta-row { display: none; }
  .section,.detail-section,.hero,.page-head { padding: 25px 0; }
  .workflow,.platform-section { background: white; color: var(--navy); }
  .workflow *,.platform-section * { color: var(--navy)!important; }
  .workflow-panel[hidden] { display: grid!important; }
  .workflow-panel { break-inside: avoid; }
  .workflow-tabs { display: none; }
  .workflow-shell { display: block; }
}

@media (max-width: 520px) { .calendly-inline-widget { min-width: 0 !important; } }
