/* Next Gen PayOn: "Field Record" direction (see DIRECTION.md).
   Plain CSS, no build step. Tokens first, then base, layout, components, pages, motion. */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #F2F4F3;
  --surface: #FFFFFF;
  --surface-2: #E8ECEA;
  --ink: #0F1E1C;
  --muted: #55655F;
  --line: #D8DEDB;
  --line-strong: #C3CCC8;
  --accent: #0B6B57;
  --accent-hover: #095A49;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3EFEB;
  --accent-text: #0B6B57;
  --pending: #B7791F;
  --pending-text: #8A5A12;
  --pending-soft: #FBF1DF;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --shadow: 0 1px 2px rgb(15 30 28 / .06), 0 8px 24px -8px rgb(15 30 28 / .14);
  --shadow-lg: 0 2px 4px rgb(15 30 28 / .05), 0 24px 48px -16px rgb(15 30 28 / .22);

  --font-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-panel: 14px;
  --r-control: 10px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --gutter: 16px;
  --max: 1280px;
  --header-h: 64px;
  --section: 72px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; --section: 104px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; --section: 128px; } }

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0C1513;
    --surface: #13201D;
    --surface-2: #1A2925;
    --ink: #E9EFED;
    --muted: #93A39E;
    --line: #22312D;
    --line-strong: #2F433E;
    --accent: #3FBF9A;
    --accent-hover: #5CCDAB;
    --accent-ink: #0C1513;
    --accent-soft: #173A31;
    --accent-text: #5CCDAB;
    --pending: #D9A04A;
    --pending-text: #E3B266;
    --pending-soft: #2B2414;
    --danger: #F97066;
    --danger-soft: #3A1714;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -8px rgb(0 0 0 / .5);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / .3), 0 24px 48px -16px rgb(0 0 0 / .6);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-sans);
  font-feature-settings: "ss01" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--accent);
  scrollbar-color: var(--line-strong) var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
.mono, .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-control); text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * .6); }
.stack > * + * { margin-top: var(--stack, 16px); }
.h1 { font-size: clamp(2.375rem, 1.6rem + 3.2vw, 4rem); line-height: 1.03; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.75rem); }
.h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 + p { margin-top: 16px; }

@media (max-width: 767px) {
  .m-hide { display: none !important; }
}
@media (min-width: 768px) {
  .d-hide { display: none !important; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark {
  display: block; height: 24px; aspect-ratio: 640 / 118;
  background: currentColor;
  -webkit-mask: url("/assets/img/logo-mark.png") center / contain no-repeat;
  mask: url("/assets/img/logo-mark.png") center / contain no-repeat;
}
.brand-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; white-space: nowrap; padding-left: 12px; border-left: 1px solid var(--line-strong); line-height: 1.2; }
@media (min-width: 768px) { .brand-mark { height: 28px; } .brand-name { font-size: 1.0625rem; } }
@media (max-width: 380px) { .brand-mark { height: 20px; } .brand-name { font-size: .9375rem; padding-left: 10px; } .brand { gap: 10px; } }

.main-nav { display: none; margin-left: auto; }
.main-nav ul { list-style: none; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: var(--r-control); text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9375rem; transition: color 150ms ease, background-color 150ms ease; }
.main-nav a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { color: var(--ink); background: var(--surface-2); } }
.header-actions { display: none; gap: 8px; align-items: center; }
.menu-toggle {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--r-control); cursor: pointer; color: var(--ink);
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
@media (min-width: 1080px) {
  .main-nav { display: block; }
  .header-actions { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 39;
  background: var(--bg); padding: 16px var(--gutter) 32px;
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
}
.mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
.mobile-menu ul { list-style: none; padding: 0; }
.mobile-menu li a { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.25rem; font-weight: 500; }
.mobile-menu .menu-actions { display: grid; gap: 12px; }
.mobile-menu .menu-contact { color: var(--muted); font-size: .9375rem; }
.mobile-menu .menu-contact a { color: var(--ink); }
body.menu-open { overflow: hidden; }
@media (min-width: 1080px) { .mobile-menu { display: none; } }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-control);
  font-weight: 500; font-size: .9375rem; line-height: 1.2; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-secondary:hover, .btn-ghost:hover { border-color: var(--ink); }
  .btn:hover .icon-nudge { transform: translateX(3px); }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent-text); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { text-decoration: underline; } .link-arrow:hover .icon { transform: translateX(3px); } }

/* ---------- Small parts ---------- */
.tbc {
  display: inline-flex; align-items: center; gap: 6px; vertical-align: middle;
  padding: 2px 8px; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: .75rem; font-weight: 500; line-height: 1.5; letter-spacing: 0; white-space: nowrap;
  color: var(--pending-text); background: var(--pending-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pending) 45%, transparent);
}
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .8125rem; font-weight: 500; background: var(--accent-soft); color: var(--accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .875rem; background: var(--surface); }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.tile-icon { width: 44px; height: 44px; flex: none; border-radius: var(--r-control); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.tile-icon .icon { width: 22px; height: 22px; }


/* ---------- Two paths ---------- */
.paths { display: grid; gap: 16px; }
@media (min-width: 900px) { .paths { grid-template-columns: 1.15fr 1fr; gap: 24px; } }
.path { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-panel); border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.path-biz { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.path-partner { background: var(--surface); }
.path .who { font-size: .875rem; font-weight: 500; color: var(--accent-text); display: inline-flex; gap: 8px; align-items: center; }
.path .who .icon { width: 18px; height: 18px; }
.path p { color: var(--muted); max-width: 52ch; }
.path .btn { justify-self: start; margin-top: 4px; }

/* ---------- Steps (how it works) ---------- */
.steps { --n: 4; position: relative; view-timeline-name: --steps; }
.steps-list { list-style: none; padding: 0; display: grid; gap: 28px; position: relative; }
.step { position: relative; display: grid; gap: 10px; padding-left: 52px; }
.step-node {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; z-index: 1;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted);
  font-family: var(--font-mono); font-size: .875rem;
  transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease;
}
.step p { color: var(--muted); max-width: 34ch; }
.steps-track { position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(1); }
.step.is-lit .step-node { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (min-width: 900px) {
  .steps-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .step { padding-left: 0; padding-top: 60px; }
  .steps-track { left: 18px; right: 18px; top: 17px; bottom: auto; width: auto; height: 2px; }
  .steps-fill { transform-origin: left; transform: scaleX(1); }
}
/* Motion: lit by default (no JS / reduced motion). JS adds .steps-anim to opt in. */
.steps-anim .step:not(.is-lit) .step-node { background: var(--surface); border-color: var(--line-strong); color: var(--muted); }
.steps-anim .steps-fill { transform: scaleY(0); transition: transform 1100ms var(--ease-in-out); }
@media (min-width: 900px) { .steps-anim .steps-fill { transform: scaleX(0); } }
.steps-anim.is-in .steps-fill { transform: none; }
@keyframes steps-fill-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes steps-fill-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Tiles (pricing previews, links) ---------- */
.tile {
  position: relative; display: grid; gap: 12px; align-content: start;
  padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-panel); border: 1px solid var(--line);
  background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.tile p { color: var(--muted); }
.tile .tile-icon { width: 44px; height: 44px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.tile .tile-icon .icon { width: 22px; height: 22px; }
.tile-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.tile-price { font-family: var(--font-mono); font-size: .875rem; }
.tile-go { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: transform 200ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.tile-go .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
  .tile:hover .tile-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateX(2px); }
}
.tile:active { transform: scale(0.99); }
.tile-tint { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 20%, transparent); }
.tile-tint .tile-icon { background: var(--surface); }
.tile-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tile-ink p { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); }
.tile-ink .tile-icon { background: color-mix(in srgb, var(--bg) 12%, var(--ink)); color: var(--bg); }
.tile-ink .tile-go { border-color: color-mix(in srgb, var(--bg) 35%, var(--ink)); }
/* ---------- Proof over promises ---------- */
.proof-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .proof-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
  .proof-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.proof-intro .lead { margin-top: 16px; }
.proof-list { list-style: none; padding: 0; display: grid; }
.proof-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.proof-item:last-child { border-bottom: 1px solid var(--line); }
.proof-item .tile-icon { width: 44px; height: 44px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent-text); }
.proof-item .tile-icon .icon { width: 22px; height: 22px; }
.proof-item p { color: var(--muted); margin-top: 6px; max-width: 56ch; }
.proof-item .receipt { margin-top: 10px; font-family: var(--font-mono); font-size: .8125rem; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.proof-item .receipt .icon { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Key figures (ledger) ---------- */
.figures { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.figure { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.figure:nth-child(odd) { padding-right: 16px; }
.figure-value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-weight: 500; }
.figure-value small { font-size: .45em; color: var(--muted); font-weight: 400; margin-left: 4px; }
.figure-value small.pre { font-family: var(--font-sans); margin: 0 6px 0 0; }
.pt-0 { padding-top: 0; }
.figure-label { color: var(--muted); font-size: .9375rem; }
.figure:last-child { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .figures { grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .figure { border-bottom: 0; padding: 28px 24px; }
  .figure + .figure { border-left: 1px solid var(--line); }
  .figure:first-child { padding-left: 0; }
  .figure:last-child { grid-column: auto; }
}
.figures-note { margin-top: 20px; font-size: .875rem; color: var(--muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- Certifications ---------- */
.certs { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.cert { padding: 24px 20px; display: grid; gap: 20px; align-content: start; }
.cert + .cert { border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cert { padding: 28px; }
  .cert + .cert { border-top: 0; border-left: 1px solid var(--line); }
}
.cert-head { display: flex; gap: 14px; align-items: center; }
.cert-mark { flex: none; width: 44px; height: 44px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.cert-mark .icon { width: 22px; height: 22px; }
.cert-title { font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.cert-sub { color: var(--muted); font-size: .875rem; }
.fields { display: grid; gap: 10px; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: .875rem; }
.field-row dt { color: var(--muted); }
.field-row dd { font-family: var(--font-mono); font-size: .8125rem; text-align: right; }
.body-mark { min-height: 44px; border: 1px dashed var(--line-strong); border-radius: var(--r-control); display: grid; place-items: center; color: var(--muted); font-size: .8125rem; padding: 8px; text-align: center; }
.certs-compact { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.certs-compact li { display: flex; align-items: center; gap: 8px; font-size: .875rem; flex-wrap: wrap; }
.certs-compact .icon { color: var(--accent-text); width: 18px; height: 18px; }
.certs-compact .no { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-weight: 500; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform 200ms var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }
.faq .answer p + p { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .answer { animation: answer-in 220ms var(--ease-out); }
}
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } }
.faq-more { margin-top: 24px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: var(--accent-ink); border-radius: var(--r-panel); padding: clamp(32px, 5vw, 64px); display: grid; gap: 28px; }
.cta-band p { color: color-mix(in srgb, var(--accent-ink) 82%, var(--accent)); max-width: 52ch; margin-top: 12px; font-size: 1.0625rem; }
.cta-band .btn-on-accent { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-outline-on-accent { border-color: color-mix(in srgb, var(--accent-ink) 45%, transparent); color: var(--accent-ink); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .cta-band .btn-on-accent:hover { background: color-mix(in srgb, var(--accent-ink) 88%, var(--accent)); }
  .cta-band .btn-outline-on-accent:hover { border-color: var(--accent-ink); }
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; align-items: end; } }

/* ---------- Inner pages ---------- */
.page-hero { padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero .lead { margin-top: 18px; }
.page-hero .btn-row { margin-top: 28px; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs .icon { width: 14px; height: 14px; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.split-top { align-items: start; }

.service-index { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.service-row { display: grid; gap: 14px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.service-row h2 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); display: flex; gap: 14px; align-items: center; }
.service-row h2 a { text-decoration: none; }
.service-row h2 .tile-icon { width: 44px; height: 44px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.service-row h2 .tile-icon .icon { width: 22px; height: 22px; }
.service-row p { color: var(--muted); max-width: 60ch; }
.service-row .meta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (min-width: 1024px) {
  .service-row { grid-template-columns: 5fr 6fr 3fr; gap: 40px; align-items: start; padding: 36px 0; }
  .service-row .meta { align-items: flex-end; text-align: right; }
}

.cover-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .cover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cover { padding: 28px; display: grid; gap: 14px; align-content: start; }
.cover p { color: var(--muted); }
.cover-wide { grid-column: 1 / -1; }

.kv { display: grid; gap: 0; border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kv dt { color: var(--muted); }
@media (max-width: 520px) { .kv > div { grid-template-columns: 1fr; gap: 4px; } }

.roles { display: grid; gap: 16px; }
@media (min-width: 768px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .roles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.role { padding: 24px; display: grid; gap: 10px; align-content: start; }
.role p { color: var(--muted); font-size: .9375rem; }

.offer { display: grid; gap: 0; border-top: 1px solid var(--line); }
.offer li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.offer { padding: 0; }
.offer .tile-icon { width: 44px; height: 44px; border-radius: var(--r-control); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.offer .tile-icon .icon { width: 22px; height: 22px; }
.offer p { color: var(--muted); margin-top: 4px; }
.earn { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }

.next-steps { list-style: none; padding: 0; display: grid; gap: 16px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; counter-increment: ns; }
.next-steps li::before { content: counter(ns); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.next-steps p { color: var(--muted); font-size: .9375rem; }

.contact-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card { padding: 28px; display: grid; gap: 10px; align-content: start; }
.contact-card .big { font-size: 1.25rem; font-weight: 500; text-decoration: none; }
.contact-card address { font-style: normal; line-height: 1.6; }
.hours { display: grid; gap: 6px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; }
.hours dd { font-family: var(--font-mono); font-size: .875rem; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .form-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; } .form-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.form { padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; }
.form-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field legend { font-weight: 500; font-size: .9375rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field .req { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
  font-size: 1rem;
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--surface); }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.input-group { display: flex; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r-control) 0 0 var(--r-control); background: var(--surface-2); color: var(--muted); font-family: var(--font-mono); font-size: .9375rem; }
.input-group .input { border-radius: 0 var(--r-control) var(--r-control) 0; }
.help { font-size: .8125rem; color: var(--muted); }
.error { font-size: .8125rem; color: var(--danger); display: none; align-items: center; gap: 6px; }
.error .icon { width: 16px; height: 16px; }
.field.is-invalid .error { display: flex; }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea, .field.is-invalid .addon { border-color: var(--danger); }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.radios { display: flex; gap: 12px; flex-wrap: wrap; }
.radio { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-control); cursor: pointer; background: var(--bg); transition: border-color 150ms ease, background-color 150ms ease; }
.radio input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; margin: 0; background: var(--surface); }
.radio input::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: scale(0.6); opacity: 0; transition: transform 160ms var(--ease-out), opacity 160ms ease; }
.radio input:checked { border-color: var(--accent); }
.radio input:checked::after { transform: scale(1); opacity: 1; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-control); background: var(--danger-soft); color: var(--ink); font-size: .9375rem; }
.form-status.is-shown { display: flex; }
.form-status .icon { color: var(--danger); width: 20px; height: 20px; margin-top: 2px; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-foot .small { font-size: .8125rem; color: var(--muted); max-width: 44ch; }
.btn .spinner { display: none; width: 18px; height: 18px; }
.btn.is-loading .spinner { display: block; animation: spin 700ms linear infinite; }
.btn.is-loading .icon-nudge { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.noscript-note { padding: 14px 16px; border-radius: var(--r-control); background: var(--pending-soft); font-size: .9375rem; }

/* ---------- Legal ---------- */
.draft-banner { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-control); background: var(--pending-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pending) 45%, transparent); color: var(--ink); }
.draft-banner .icon { color: var(--pending-text); width: 22px; height: 22px; margin-top: 1px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.375rem; margin-top: 44px; margin-bottom: 12px; }
.prose h3 { font-size: 1.0625rem; margin-top: 24px; margin-bottom: 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.25em; display: grid; gap: 8px; margin-top: 10px; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent-text); }
.legal-meta { color: var(--muted); font-size: .9375rem; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; padding-bottom: 32px; margin-top: var(--section); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 36ch; font-size: .9375rem; }
.footer-brand address { font-style: normal; color: var(--muted); margin-top: 16px; font-size: .9375rem; line-height: 1.6; }
.footer-brand .contact-lines { margin-top: 12px; display: grid; gap: 4px; font-size: .9375rem; }
.footer-col h2 { font-size: .875rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover, .footer-brand a:hover { color: var(--ink); text-decoration: underline; } }
.footer-certs { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-base { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: .8125rem; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 767px) {
  body.has-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .action-bar {
    display: flex; gap: 10px; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    border-top: 1px solid var(--line);
    transition: transform 240ms var(--ease-out), opacity 200ms ease;
  }
  .action-bar .btn-primary { flex: 1; }
  .action-bar .btn-call { width: 52px; flex: none; padding: 0; }
  .action-bar.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
  body.menu-open .action-bar { display: none; }
}

/* ---------- Simple pages (thank you, 404) ---------- */
.notice { min-height: calc(100dvh - var(--header-h) - 200px); display: grid; align-content: center; padding-block: 64px; }
.notice-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); margin-bottom: 24px; }
.notice-mark .icon { width: 28px; height: 28px; }
.notice .lead { margin-top: 16px; }
.notice .next-steps { margin-top: 32px; max-width: 40rem; }
.notice .btn-row { margin-top: 36px; }


/* =====================================================================
   v3: three core solutions + motion intensity 9
   ===================================================================== */

/* ---------- Solutions dropdown (desktop) ---------- */
.has-menu { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--r-control); border: 0; background: none; cursor: pointer; color: var(--muted); font-weight: 500; font-size: .9375rem; transition: color 150ms ease; }
.nav-trigger .caret { width: 14px; height: 14px; transition: transform 200ms var(--ease-out); }
.nav-trigger[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-trigger.is-current, .nav-trigger[aria-expanded="true"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .nav-trigger:hover { color: var(--ink); } }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: -12px; z-index: 50; width: 640px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; padding: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg);
  transform-origin: top left; opacity: 0; transform: translateY(-6px) scale(.98); visibility: hidden; pointer-events: none;
  transition: opacity 150ms ease, transform 150ms var(--ease-out), visibility 0s linear 150ms;
}
.nav-menu.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity 180ms var(--ease-out), transform 200ms var(--ease-out), visibility 0s; }
.menu-col { display: grid; gap: 2px; align-content: start; padding: 4px; }
.menu-col-more { background: var(--bg); border-radius: 10px; padding: 8px; }
.menu-label { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 6px 10px 4px; letter-spacing: .02em; }
.menu-link { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background-color 150ms ease; }
.menu-link .tile-icon { width: 40px; height: 40px; }
.menu-link .tile-icon .icon { width: 20px; height: 20px; transition: transform 220ms var(--ease-out); }
.menu-link strong { display: block; font-weight: 600; font-size: .9375rem; }
.menu-link small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.35; }
.menu-all { padding: 10px; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .menu-link:hover { background: var(--surface-2); }
  .menu-col-more .menu-link:hover { background: var(--surface); }
  .menu-link:hover .tile-icon .icon { transform: rotate(-8deg) scale(1.1); }
}
.mobile-menu .menu-label { padding: 18px 0 4px; }
.mobile-menu .m-company { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-top: clamp(28px, 4vw, 56px); padding-bottom: var(--section); }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, #000 15%, transparent 75%);
  opacity: .6; }
.hero-bg::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%); }
.hero-title { font-size: clamp(2.25rem, 1.2rem + 3.3vw, 4rem); line-height: 1.04; letter-spacing: -0.035em; max-width: 21em; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; }
.hero-grid { display: grid; gap: 32px; margin-top: 28px; }
.hero-copy .lead { max-width: 46ch; }
.hero-copy .btn-row { margin-top: 28px; }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; margin-top: 36px; }
}

/* console tabs */
.ctabs { display: grid; gap: 8px; margin-top: 32px; }
.ctab { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 12px 14px 16px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--muted); transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
.ctab .tile-icon { width: 40px; height: 40px; background: var(--surface-2); color: var(--muted); transition: background-color 200ms ease, color 200ms ease; }
.ctab .tile-icon .icon { width: 20px; height: 20px; }
.ctab strong { display: block; color: var(--ink); font-weight: 600; }
.ctab small { display: block; font-size: .875rem; }
.ctab-line { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; opacity: 0; transition: opacity 200ms ease; }
.ctab-line span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.ctab.is-active { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow); }
.ctab.is-active .tile-icon { background: var(--accent-soft); color: var(--accent-text); }
.ctab.is-active .ctab-line { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .ctab:not(.is-active):hover { background: color-mix(in srgb, var(--surface) 60%, transparent); } }
.ctab:active { scale: .98; transition: scale 120ms var(--ease-out); }
@media (max-width: 1023px) {
  .ctabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 24px; }
  .ctab { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 10px 6px 14px; }
  .ctab small { display: none; }
  .ctab strong { font-size: .8125rem; line-height: 1.2; }
  .ctab .tile-icon { width: 34px; height: 34px; }
  .ctab .tile-icon .icon { width: 18px; height: 18px; }
  .ctab-line { left: 10px; right: 10px; bottom: 5px; }
}

/* console frame */
.console { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.console-dots { display: inline-flex; gap: 6px; }
.console-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.console-name { flex: 1; font-weight: 500; }
.console-stage { display: grid; padding: 16px; background: var(--bg); }
.scene { grid-area: 1 / 1; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s linear 520ms; }
.scene:not(.is-active) { opacity: 0; transform: translateX(28px); visibility: hidden; }
.scene.is-leaving { transform: translateX(-28px); }
.scene.is-active { visibility: visible; transition: opacity 420ms var(--ease-out) 80ms, transform 520ms var(--ease-out) 80ms, visibility 0s; }

/* ---------- Mockup family ---------- */
.mock { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; font-size: .875rem; }
.console .mock { box-shadow: 0 1px 2px rgb(15 30 28 / .05); }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mock-title { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.mock-title strong { display: block; font-weight: 600; font-size: .9375rem; }
.mock-title small { display: block; color: var(--muted); font-size: .75rem; }
.mock-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.mock-ic .icon { width: 18px; height: 18px; }
.mock-status { position: relative; display: inline-grid; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.mock-status > span { grid-area: 1 / 1; padding: 3px 10px; border-radius: 999px; transition: opacity 240ms ease, transform 280ms var(--ease-out); justify-self: end; }
.ms-from { background: var(--surface-2); color: var(--muted); opacity: 0; }
.ms-to { background: var(--accent-soft); color: var(--accent-text); }
.mock.is-start .ms-from { opacity: 1; }
.mock.is-start .ms-to { opacity: 0; transform: translateY(4px); }
.mock.is-stamped .mock-status { opacity: 0; transition: opacity 160ms ease; }

.stamp {
  position: absolute; top: 8px; right: 12px; z-index: 3;
  display: grid; justify-items: center; padding: 6px 14px 5px;
  border: 2px solid var(--accent); border-radius: 10px; color: var(--accent-text);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .8125rem; line-height: 1.2; white-space: nowrap;
  transform: rotate(-7deg); pointer-events: none;
}
.stamp small { font-size: .5625rem; letter-spacing: .14em; font-weight: 500; opacity: .85; }

.chk { display: flex; align-items: center; gap: 8px; }
.check-state { position: relative; width: 18px; height: 18px; flex: none; }
.check-state .icon { position: absolute; inset: 0; width: 18px; height: 18px; transition: opacity 180ms ease, transform 280ms var(--ease-out); }
.check-state .is-pending { color: var(--line-strong); opacity: 0; }
.check-state .is-done { color: var(--accent); }
.chk.pending { color: var(--muted); }
.chk.pending .is-pending { opacity: 1; animation: spin 900ms linear infinite; }
.chk.pending .is-done { opacity: 0; transform: scale(.8); }
@keyframes spin { to { transform: rotate(360deg); } }

/* payroll */
.pay-rows { list-style: none; padding: 6px 16px; margin: 0; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pay-row:last-child { border-bottom: 0; }
.pay-who strong { display: block; font-weight: 500; }
.pay-who small { display: block; color: var(--muted); font-size: .75rem; }
.pay-amt { font-variant-numeric: tabular-nums; font-size: .875rem; font-weight: 500; }
.mock-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: grid; gap: 12px; background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.chk-row { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; font-weight: 500; }
.bank-top { display: flex; justify-content: space-between; font-size: .8125rem; margin-bottom: 6px; }
.bank-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bank-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; }

/* kyc */
.kyc-rows { display: grid; gap: 10px; padding: 14px 16px; margin: 0; }
.kyc-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.kyc-row dt { color: var(--muted); }
.kyc-row dd { font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kyc-row dd.mono { font-weight: 400; font-size: .8125rem; }
.pin { position: relative; display: inline-grid; place-items: center; color: var(--accent-text); }
.pin .icon { width: 16px; height: 16px; }
.pin-ring { position: absolute; left: 50%; top: 92%; width: 14px; height: 5px; border-radius: 50%; border: 1.5px solid var(--accent); transform: translate(-50%, -50%) scale(.4); opacity: 0; }
.loc-swap { display: inline-grid; }
.loc-swap > span { grid-area: 1 / 1; }
.loc-wait { opacity: 0; color: var(--muted); }
.kyc-checks { list-style: none; margin: 0; padding: 12px 16px 16px; display: grid; gap: 9px; border-top: 1px dashed var(--line); }

/* tele */
.tk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tk { padding: 14px 12px 14px 16px; display: grid; gap: 2px; }
.tk + .tk { border-left: 1px solid var(--line); }
.tk-label { font-size: .75rem; color: var(--muted); }
.tk-val { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; }
.call { display: grid; grid-template-columns: 40px auto 1fr auto; gap: 12px; align-items: center; margin: 14px 16px 16px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.call-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.call-ic .icon { width: 18px; height: 18px; }
.call-info strong { display: block; font-weight: 600; }
.call-info small { display: block; color: var(--muted); font-size: .75rem; }
.wave { display: flex; align-items: center; gap: 3px; height: 28px; justify-self: center; }
.wave span { width: 3px; height: 100%; border-radius: 3px; background: var(--accent); transform: scaleY(.18); transform-origin: center; }
.call-state { display: inline-grid; }
.cs { grid-area: 1 / 1; justify-self: end; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 220ms ease, transform 260ms var(--ease-out); transform: translateY(4px); }
.cs-ring { background: var(--surface-2); color: var(--muted); }
.cs-conn { background: var(--accent); color: var(--accent-ink); }
.cs-lead { background: var(--accent-soft); color: var(--accent-text); }
.call:not(.is-ringing):not(.is-connected) .cs-lead, .call.is-ringing .cs-ring, .call.is-connected .cs-conn { opacity: 1; transform: none; }
.call.is-ringing .call-ic { background: var(--surface-2); color: var(--ink); }
.motion .call.is-ringing .call-ic { animation: ring-pulse 900ms var(--ease-out) infinite; }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
.motion .call.is-connected .wave span { animation: wave 760ms var(--ease-in-out) infinite alternate; }
.wave span:nth-child(3n+1) { animation-delay: -120ms; }
.wave span:nth-child(3n+2) { animation-delay: -380ms; animation-duration: 640ms; }
.wave span:nth-child(4n) { animation-delay: -560ms; animation-duration: 880ms; }
.wave span:nth-child(5n) { animation-delay: -220ms; animation-duration: 560ms; }
@keyframes wave { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
@media (max-width: 600px) {
  .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk:nth-child(3) { border-left: 0; }
  .tk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .call { grid-template-columns: 36px 1fr auto; }
  .wave { display: none; }
  .mock-title small { display: none; }
}

/* ---------- Marquee (two rows, opposite directions) ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0; display: grid; gap: 10px; }
.marquee-track { display: flex; width: max-content; }
.marquee-set { display: flex; list-style: none; padding: 0; margin: 0; flex: none; }
.marquee-set li { display: inline-flex; align-items: center; gap: 10px; padding: 0 26px; font-size: 1.125rem; font-weight: 500; white-space: nowrap; }
.marquee-set li .icon { width: 20px; height: 20px; color: var(--accent-text); }
.marquee-row-b .marquee-set li { color: var(--muted); font-size: 1rem; }
.marquee-row-b .marquee-set li + li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--line-strong); transform: rotate(45deg); margin-right: 26px; margin-left: -26px; }
html:not(.motion) .marquee-set[aria-hidden] { display: none; }
html:not(.motion) .marquee-track { width: auto; }
html:not(.motion) .marquee-set { flex-wrap: wrap; justify-content: center; row-gap: 10px; padding-inline: var(--gutter); }
.motion .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.motion .marquee-track { animation: marquee 46s linear infinite; }
.motion .marquee-rev { animation-name: marquee-rev; animation-duration: 54s; }
.motion .marquee.is-paused .marquee-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .motion .marquee-row:hover .marquee-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (max-width: 767px) { .marquee-set li { font-size: 1rem; padding: 0 18px; } .motion .marquee-track { animation-duration: 34s; } .motion .marquee-rev { animation-duration: 40s; } }

/* ---------- Core solutions (pinned 01 / 03 on desktop, stacked elsewhere) ---------- */
.svc { padding-block: var(--section) 0; }
.svc-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.svc-count { color: var(--muted); font-size: 1rem; white-space: nowrap; display: none; }
.svc-cur { display: inline-block; color: var(--ink); font-size: 1.75rem; font-weight: 500; }
.svc-nav { display: none; }
.svc-slides { display: grid; gap: 20px; }
.svc-slide { display: grid; gap: 24px; align-items: center; padding: clamp(20px, 2.4vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.svc-count-inline { font-size: .875rem; color: var(--muted); }
.svc-title { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.375rem); margin-top: 8px; }
.svc-desc { color: var(--muted); margin-top: 12px; max-width: 50ch; }
.svc-body .checklist { margin-top: 20px; gap: 10px; }
.svc-who { margin-top: 18px; font-size: .9375rem; color: var(--muted); }
.svc-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .svc-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; } }
.svc.is-pinned { padding-top: 0; }
.svc.is-pinned .svc-count { display: block; }
.svc.is-pinned .svc-count-inline { display: none; }
.svc.is-pinned .svc-pin { min-height: 100vh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 20px) 28px; }
.svc.is-pinned .svc-pin > .container { width: 100%; }
.svc.is-pinned .svc-head { margin-bottom: 28px; }
.svc.is-pinned .svc-stage { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; }
.svc.is-pinned .svc-nav { display: grid; list-style: none; padding: 0; gap: 6px; }
.svc-tab { width: 100%; display: grid; grid-template-columns: 36px 1fr; gap: 6px 8px; padding: 12px 0; text-align: left; background: none; border: 0; cursor: pointer; color: var(--muted); transition: color 200ms ease; }
.svc-tab-n { font-size: .8125rem; padding-top: 3px; }
.svc-tab-name { font-weight: 500; font-size: 1.0625rem; }
.svc-tab-bar { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.svc-tab-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.svc-tab.is-active { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .svc-tab:hover { color: var(--ink); } }
.svc.is-pinned .svc-slides { display: grid; }
.svc.is-pinned .svc-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(24px) scale(.985); transition: opacity 320ms var(--ease-out), transform 460ms var(--ease-out), visibility 0s linear 460ms; }
.svc.is-pinned .svc-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 460ms var(--ease-out), transform 560ms var(--ease-out), visibility 0s; }
.svc.is-pinned .svc-body > * { opacity: 0; transform: translateY(12px); transition: opacity 380ms var(--ease-out), transform 420ms var(--ease-out); }
.svc.is-pinned .svc-slide.is-active .svc-body > * { opacity: 1; transform: none; }
.svc.is-pinned .svc-slide.is-active .svc-body > :nth-child(3) { transition-delay: 60ms; }
.svc.is-pinned .svc-slide.is-active .svc-body > :nth-child(4) { transition-delay: 120ms; }
.svc.is-pinned .svc-slide.is-active .svc-body > :nth-child(5) { transition-delay: 180ms; }
.svc.is-pinned .svc-slide.is-active .svc-body > :nth-child(6) { transition-delay: 240ms; }
.svc.is-pinned .svc-visual { clip-path: inset(0 0 100% 0 round var(--r-panel)); transition: clip-path 760ms var(--ease-in-out); }
.svc.is-pinned .svc-slide.is-active .svc-visual { clip-path: inset(0 0 0 0 round var(--r-panel)); }

/* ---------- Also from ---------- */
.also { display: grid; gap: 20px; }
.also-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .also-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .also { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; } }
.also-head p { margin-top: 8px; }

/* ---------- Dashboard (three solutions) ---------- */
.dash { overflow: hidden; }
.dash-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dash-title { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: .9375rem; }
.dash-title .brand-mark { height: 13px; }
.dash-flags { display: inline-flex; gap: 12px; align-items: center; }
.tag-muted { background: var(--surface-2); color: var(--muted); }
.live { display: inline-flex; gap: 8px; align-items: center; font-size: .8125rem; font-weight: 500; color: var(--accent-text); }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.motion .live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .55; } to { transform: scale(2.8); opacity: 0; } }
.dash-sols { display: grid; }
@media (min-width: 900px) { .dash-sols { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dsol + .dsol { border-left: 1px solid var(--line); } }
@media (max-width: 899px) { .dsol + .dsol { border-top: 1px solid var(--line); } }
.dsol { padding: 20px; display: grid; gap: 10px; align-content: start; }
.dsol-head { display: flex; gap: 10px; align-items: center; }
.dsol-head .tile-icon { width: 34px; height: 34px; }
.dsol-head .tile-icon .icon { width: 18px; height: 18px; }
.kpi-label { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.kpi-val { display: inline-block; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em; }
.kpi-val.bump { animation: kpi-bump 560ms var(--ease-out); }
@keyframes kpi-bump { from { color: var(--accent-text); transform: translateY(-5px); } }
.feed-list { list-style: none; padding: 0; margin: 0; display: grid; align-content: start; height: 186px; overflow: hidden; }
.frow { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .8125rem; height: 62px; }
.fstate { grid-row: span 2; align-self: start; justify-self: start; font-size: .6875rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.st-verified { background: var(--accent-soft); color: var(--accent-text); }
.fwhat { font-weight: 500; }
.fcity { color: var(--muted); }
@media (max-width: 767px) { .feed-list { height: 124px; } .dash-title .brand-mark { display: none; } .dsol { padding: 16px; } }

/* ---------- Solution pages ---------- */
.page-hero-visual .mock { box-shadow: var(--shadow-lg); }
.problems { list-style: none; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .problems { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.problem { padding-top: 20px; border-top: 2px solid var(--ink); display: grid; gap: 8px; }
.problem-n { font-size: .8125rem; color: var(--muted); }
.problem p { color: var(--muted); }
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature .chips { margin-top: 4px; }
.chips-lg li { padding: 8px 16px; font-size: .9375rem; font-weight: 500; }
.run-list { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 52rem; }
.run-item { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.run-item .icon { width: 22px; height: 22px; color: var(--accent-text); }
.core-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.core-card { padding: 28px; display: grid; gap: 14px; align-content: start; }
.core-card > p { color: var(--muted); }
.core-card .svc-foot { margin-top: auto; }
.cert-desc { color: var(--muted); font-size: .9375rem; }

/* ---------- Quote panel (replaces pricing) ---------- */
.quote-panel { position: relative; overflow: hidden; display: grid; gap: 28px; padding: clamp(32px, 5vw, 64px); border-radius: var(--r-panel); background: var(--accent); color: var(--accent-ink); }
.quote-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(color-mix(in srgb, var(--accent-ink) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent-ink) 9%, transparent) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.quote-copy, .quote-actions { position: relative; }
.quote-copy p { margin-top: 12px; max-width: 54ch; font-size: 1.0625rem; color: color-mix(in srgb, var(--accent-ink) 84%, var(--accent)); }
.quote-actions { display: grid; gap: 16px; justify-items: start; }
.quote-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.quote-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.quote-contact .icon { width: 18px; height: 18px; }
.btn-on-accent { background: var(--accent-ink); color: var(--accent); }
@media (min-width: 900px) { .quote-panel { grid-template-columns: 1.3fr 1fr; align-items: end; } }

/* ---------- Hovers ---------- */
.btn { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 200ms ease, translate 240ms var(--ease-out), scale 140ms var(--ease-out); }
.btn:active { transform: none; scale: .97; }
.magnetic.is-pulling { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 200ms ease, translate 90ms linear, scale 140ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--accent) 70%, transparent); transform: none; }
  .btn-secondary:hover, .btn-ghost:hover { background: var(--surface-2); transform: none; }
  .btn-on-accent:hover { box-shadow: 0 10px 26px -10px rgb(0 0 0 / .45); }
}
.link-arrow { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; padding-bottom: 2px; transition: background-size 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { text-decoration: none; background-size: calc(100% - 24px) 1px; } }
.footer-col a, .footer-brand a { background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size 240ms var(--ease-out), color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover, .footer-brand a:hover { text-decoration: none; background-size: 100% 1px; } }
.main-nav a { position: relative; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 220ms var(--ease-out); }
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .main-nav a:hover { background: transparent; } .main-nav a:hover::after { transform: scaleX(1); transform-origin: left; } }
.spot { position: relative; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 220ms ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%); }
.lift { transition: transform 240ms var(--ease-out), box-shadow 240ms ease, border-color 240ms ease; }
.tile-icon .icon { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .spot:hover::before { opacity: 1; }
  .lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
  .lift:hover .tile-icon .icon, .proof-item:hover .tile-icon .icon, .cert:hover .cert-mark .icon { transform: rotate(-8deg) scale(1.12); }
}

/* ---------- Motion: page load (≤ 1.2s, content never blocked) ---------- */
.load-bar { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); opacity: 0; pointer-events: none; }
.motion .load-bar { animation: load-bar 900ms var(--ease-in-out) both; }
@keyframes load-bar { 0% { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.motion .site-header { animation: header-in 560ms var(--ease-out) both; }
@keyframes header-in { from { transform: translateY(-100%); } }
.motion .hero-title .wi { animation: word-up 640ms var(--ease-out) both; animation-delay: calc(140ms + var(--wi) * 55ms); }
@keyframes word-up { from { transform: translateY(108%); } }
.motion .hero-copy > * { animation: load-up 560ms var(--ease-out) both; }
.motion .hero-copy > :nth-child(1) { animation-delay: 420ms; }
.motion .hero-copy > :nth-child(2) { animation-delay: 500ms; }
.motion .hero-copy > :nth-child(3) { animation-delay: 580ms; }
.motion .hero-visual { animation: mock-in 680ms var(--ease-out) 320ms both; }
@keyframes mock-in { from { opacity: 0; transform: scale(.95) translateY(12px); } }
.motion .hero-bg::after { animation: drift 18s var(--ease-in-out) infinite alternate; }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.12); } }
.motion .page-hero .container > :not(.split), .motion .page-hero .split > div > *, .motion .notice > * { animation: load-up 560ms var(--ease-out) both; animation-delay: calc(120ms + var(--ld, 0) * 70ms); }
.motion :is(.page-hero .container, .page-hero .split > div, .notice) > :nth-child(2) { --ld: 1; }
.motion :is(.page-hero .container, .page-hero .split > div, .notice) > :nth-child(3) { --ld: 2; }
.motion :is(.page-hero .container, .page-hero .split > div, .notice) > :nth-child(4) { --ld: 3; }
.motion :is(.page-hero .container, .page-hero .split > div, .notice) > :nth-child(n+5) { --ld: 4; }
.motion .page-hero .h1 { animation-name: load-mask; animation-duration: 700ms; }
.motion .page-hero .page-hero-visual { animation: mock-in 680ms var(--ease-out) 280ms both; }
@keyframes load-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes load-mask { from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { clip-path: inset(-10% -4% -25% -4%); transform: none; } }

/* ---------- Motion: scroll reveals ---------- */
.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .section-head[data-reveal] { opacity: 1; transform: none; }
.motion .section-head[data-reveal] .h2, .motion .also-head[data-reveal] .h3 { clip-path: inset(0 0 100% 0); transform: translateY(.5em); transition: clip-path 820ms var(--ease-out), transform 820ms var(--ease-out); }
.motion .section-head[data-reveal] .lead, .motion .section-head[data-reveal] .svc-count { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out) 160ms, transform 600ms var(--ease-out) 160ms; }
.motion .section-head[data-reveal].is-in .h2, .motion .also-head[data-reveal].is-in .h3 { clip-path: inset(-10% -4% -25% -4%); transform: none; }
.motion .section-head[data-reveal].is-in .lead, .motion .section-head[data-reveal].is-in .svc-count { opacity: 1; transform: none; }
.motion .svc.is-pinned .svc-slide[data-reveal] { transition-delay: 0s; }
.motion .quote-panel[data-quote-reveal] { clip-path: inset(0 100% 0 0 round var(--r-panel)); transition: clip-path 1000ms var(--ease-in-out); }
.motion .quote-panel[data-quote-reveal] > * { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out) 450ms, transform 600ms var(--ease-out) 450ms; }
.motion .quote-panel[data-quote-reveal] > .quote-actions { transition-delay: 560ms; }
.motion .quote-panel.is-in { clip-path: inset(0 0 0 0 round var(--r-panel)); }
.motion .quote-panel.is-in > * { opacity: 1; transform: none; }

/* steps line (GSAP scrub, or IO fallback) */
.steps-gsap .steps-fill { transition: none; }

/* ---------- Reduced motion: simple fades only ---------- */
.motion-lite [data-reveal] { opacity: 0; transition: opacity 400ms ease; }
.motion-lite [data-reveal].is-in { opacity: 1; }
.motion-lite .section-head[data-reveal] { opacity: 1; }
.motion-lite .hero-copy, .motion-lite .hero-visual, .motion-lite .hero-title, .motion-lite .page-hero .container { animation: fade-in 400ms ease both; }
.motion-lite .quote-panel[data-quote-reveal] { opacity: 0; transition: opacity 500ms ease; }
.motion-lite .quote-panel.is-in { opacity: 1; }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .btn, .lift, .tile-icon .icon, .scene { transition-property: opacity, background-color, border-color, color, box-shadow !important; }
  .lift:hover { transform: none; }
  .btn:active { scale: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Phone edition ---------- */
.figure .tbc { justify-self: start; }
.figure-value small.pre { font-family: var(--font-sans); margin: 0 6px 0 0; }
.pt-0 { padding-top: 0; }
@media (max-width: 767px) {
  .hero { padding-bottom: 56px; }
  .hero-title { max-width: none; }
  .proof-item { padding: 18px 0; grid-template-columns: 36px 1fr; gap: 14px; }
  .proof-item .tile-icon { width: 36px; height: 36px; }
  .proof-item p { display: none; }
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { display: none; }
  .svc-body .checklist li:nth-child(n+4) { display: none; }
  .nav-menu { display: none; }
}
@media (min-width: 1024px) and (max-height: 760px) { .svc.is-pinned .svc-body .checklist li:nth-child(n+5) { display: none; } }
/* status pills: outgoing leaves fast, incoming arrives after, so two labels never overlap */
.cs { transition: opacity 120ms ease, transform 180ms var(--ease-out); }
.call:not(.is-ringing):not(.is-connected) .cs-lead, .call.is-ringing .cs-ring, .call.is-connected .cs-conn { transition: opacity 220ms ease 120ms, transform 260ms var(--ease-out) 120ms; }
.mock-status > span { transition: opacity 140ms ease, transform 200ms var(--ease-out); }
.mock:not(.is-start) .ms-to, .mock.is-start .ms-from { transition: opacity 240ms ease 120ms, transform 280ms var(--ease-out) 120ms; }
.tag, .live { white-space: nowrap; }
@media (max-width: 480px) { .dash-bar { flex-wrap: wrap; } .dash-title { font-size: .875rem; } }

/* review fixes: entrance plays once per visit; keyboard tab changes are instant */
.repeat-visit .load-bar, .repeat-visit .site-header { animation: none !important; }
.no-anim .scene { transition: none !important; }
@media (max-width: 600px) {
  /* phones: the stamp lands across the middle of the record, clear of the title */
  .stamp { top: 54%; right: auto; left: 50%; translate: -50% -50%; font-size: .75rem; padding: 6px 12px 5px; }
}

/* =====================================================================
   Designed visuals (replace photo placeholders). Same family as the mockups.
   ===================================================================== */
.viz { display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
@media (min-width: 768px) { .viz { aspect-ratio: 4 / 3; } }
.viz > :not(.mock-head):not(.stamp) { flex: 1; min-height: 0; }
.india { width: 100%; height: 100%; display: block; overflow: visible; }
.india-shape { fill: var(--accent-soft); stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 1; stroke-linejoin: round; }
.mpin-dot { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.mpin-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.mpin.is-hl .mpin-dot { fill: var(--ink); }
.mlabel rect { fill: var(--surface); stroke: var(--line-strong); }
.mlabel text { font: 600 12px var(--font-sans); fill: var(--ink); }

/* 1. field tracker */
.vf-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; padding: 16px; align-items: center; background: var(--bg); }
.vf-map { height: 100%; max-height: 330px; display: grid; place-items: center; }
.vf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.vf-kind strong { display: block; font-weight: 600; }
.vf-kind small { color: var(--muted); font-size: .8125rem; }
.fstages { list-style: none; margin: 0; padding: 0 0 0 2px; display: grid; gap: 10px; position: relative; }
.fstage { display: flex; align-items: center; gap: 10px; font-size: .8125rem; color: var(--ink); position: relative; z-index: 1; }
.fdot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--surface); flex: none; transition: background-color 240ms ease, transform 280ms var(--ease-out); }
.fstage.is-off { color: var(--muted); }
.fstage.is-off .fdot { background: var(--line-strong); transform: scale(.8); }
.fstage-track { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.fstage-track span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
.vf-geo { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--accent-text); }
.vf-geo .icon { width: 14px; height: 14px; }
.vf-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.vf-photos span { aspect-ratio: 4 / 3; border-radius: 8px; display: grid; place-items: center; color: var(--accent-text);
  background: repeating-linear-gradient(135deg, var(--accent-soft) 0 6px, color-mix(in srgb, var(--accent-soft) 60%, var(--surface)) 6px 12px); }
.vf-photos .icon { width: 16px; height: 16px; }

/* 2. payroll flow */
.pf-body { display: grid; grid-template-columns: minmax(0, 1.15fr) 56px minmax(0, 1fr); align-items: stretch; padding: 16px; background: var(--bg); }
.pf-srcs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.pf-src { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.pf-src .tile-icon { width: 36px; height: 36px; }
.pf-src .tile-icon .icon { width: 18px; height: 18px; }
.pf-src strong { display: block; font-weight: 600; font-size: .875rem; }
.pf-src small { display: block; color: var(--muted); font-size: .75rem; }
.pf-cycle { font-size: .6875rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pf-lines { width: 100%; height: 100%; overflow: visible; }
.pf-lines path { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pf-run { align-self: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; }
.pf-label { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.pf-total { font-size: clamp(1.375rem, 1rem + 1.2vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; }
.pf-sub { font-size: .8125rem; color: var(--muted); }
.pf-chk { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 14px; font-weight: 500; font-size: .8125rem; }

/* 3. KYC document scan */
.ks-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; padding: 16px; align-items: center; background: var(--bg); }
.ks-doc { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.ks-doc::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 11px, color-mix(in srgb, var(--line) 45%, transparent) 11px 12px); opacity: .5; }
.ks-doc-top { position: relative; display: flex; gap: 12px; align-items: center; }
.ks-photo { width: 52px; height: 60px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.ks-photo .icon { width: 24px; height: 24px; }
.ks-doc-title strong { display: block; font-weight: 600; }
.ks-doc-title small { display: block; color: var(--muted); font-size: .75rem; }
.ks-fields { position: relative; display: grid; gap: 8px; }
.ks-field { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; font-size: .8125rem; min-height: 20px; }
.ks-label { color: var(--muted); }
.ks-val { font-weight: 500; }
.ks-field:nth-child(2) .ks-val { font-family: var(--font-mono); font-weight: 400; font-size: .75rem; }
.ks-skel { position: absolute; left: 100px; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 6px; background: var(--surface-2); opacity: 0; }
.ks-scan { position: absolute; left: 0; right: 0; top: 0; height: 36px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 22%, transparent) 70%, var(--accent) 96%, transparent); }
.ks-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 500; font-size: .875rem; }

/* 4. tele-calling console */
.tc-body { display: grid; gap: 14px; padding: 16px; background: var(--bg); align-content: center; }
.tc-live { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.tc-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.tc-ic .icon { width: 20px; height: 20px; }
.tc-wave { justify-self: stretch; justify-content: space-between; }
.tc-timer { font-size: .8125rem; color: var(--muted); }
.motion .viz-teleconsole.is-live .tc-wave span { animation: wave 760ms var(--ease-in-out) infinite alternate; }
.tc-langs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tc-lang { padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease; }
.tc-lang.is-on { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.tc-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-col { min-height: 92px; padding: 8px; border-radius: 10px; border: 1px dashed var(--line-strong); display: grid; align-content: start; gap: 6px; }
.tc-col > p { font-size: .75rem; font-weight: 600; color: var(--muted); }
.tc-col[data-col="qualified"] { border-style: solid; border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.tc-lead { padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tc-lead strong { display: block; font-size: .8125rem; }
.tc-lead small { display: block; font-size: .6875rem; color: var(--muted); }

/* 5. partner phone */
.pp-stage { display: grid; place-items: center; padding: 18px; background:
  radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%), var(--bg); }
.pp-phone { position: relative; width: min(250px, 72%); aspect-ratio: 9 / 17; max-height: 100%; border-radius: 30px; background: var(--ink); padding: 10px; box-shadow: var(--shadow-lg); }
.pp-notch { position: absolute; top: 14px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: color-mix(in srgb, var(--bg) 25%, var(--ink)); z-index: 2; }
.pp-screen { height: 100%; border-radius: 22px; background: var(--surface); padding: 30px 12px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.pp-hello { font-weight: 600; font-size: .875rem; }
.pp-tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pp-task { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: var(--bg); font-size: .75rem; }
.pp-time { color: var(--muted); font-size: .6875rem; }
.pp-task.pending { color: var(--muted); }
.pp-task.pending .is-pending { opacity: 1; animation: spin 900ms linear infinite; }
.pp-task.pending .is-done { opacity: 0; transform: scale(.8); }
.pp-earn { margin-top: auto; padding: 10px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; gap: 2px; }
.pp-earn span { font-size: .6875rem; opacity: .85; }
.pp-earn strong { font-size: 1.375rem; font-weight: 500; }
.pp-earn small { font-size: .625rem; opacity: .75; }
.pp-note { position: absolute; z-index: 3; left: 16px; right: 16px; top: 22px; display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .6875rem; }
.pp-note strong { display: block; font-size: .75rem; }
.pp-note small { color: var(--muted); }
.pp-note-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.pp-note-ic .icon { width: 16px; height: 16px; }
.viz-partner .stamp { top: auto; bottom: 16px; right: 16px; }

/* 6. about timeline */
.ab-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; padding: 16px; align-items: center; background: var(--bg); }
.ab-map { max-height: 340px; height: 100%; display: grid; place-items: center; }
.ab-line { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.ab-item { position: relative; z-index: 1; display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; font-size: .8125rem; }
.ab-dot { width: 14px; height: 14px; margin-top: 2px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.ab-txt { display: grid; gap: 2px; }
.ab-txt b { font-size: .75rem; color: var(--accent-text); font-weight: 500; }
.ab-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ab-chips span { padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .6875rem; font-weight: 600; }
.ab-track { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.ab-track span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }

/* 7. systems flow */
.sy-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); align-items: stretch; padding: 16px; background: var(--bg); }
.sy-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; gap: 8px; }
.sy-node { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: .8125rem; }
.sy-node .tile-icon { width: 30px; height: 30px; }
.sy-node .tile-icon .icon { width: 16px; height: 16px; }
.sy-ok { margin-left: auto; color: var(--accent); display: inline-grid; }
.sy-ok .icon { width: 16px; height: 16px; }
.sy-mid { position: relative; }
.sy-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sy-p { fill: none; stroke: color-mix(in srgb, var(--accent) 70%, transparent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sy-pkt { fill: var(--accent); opacity: 0; }
.sy-hub { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; justify-items: center; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); text-align: center; box-shadow: var(--shadow-lg); min-width: 128px; }
.sy-hub .brand-mark { height: 12px; color: var(--bg); }
.sy-hub strong { font-size: .8125rem; }
.sy-hub small { font-size: .6875rem; opacity: .7; }

/* phones: same visuals, simpler layouts */
@media (max-width: 600px) {
  .vf-body, .ab-body { grid-template-columns: 1fr; }
  .vf-map, .ab-map { max-height: 170px; }
  .vf-map .india, .ab-map .india { height: 170px; width: auto; }
  .pf-body { grid-template-columns: 1fr; gap: 10px; }
  .pf-lines { display: none; }
  .ks-body { grid-template-columns: 1fr; }
  .ks-checks { grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 14px; font-size: .8125rem; }
  .tc-lang:nth-child(n+5) { display: none; }
  .sy-body { grid-template-columns: 1fr; gap: 10px; }
  .sy-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .sy-mid { min-height: 84px; }
  .sy-lines { display: none; }
  .pp-phone { width: min(230px, 70%); }
}
/* visual fixes */
@media (min-width: 768px) { .viz-partner .pp-phone { height: 100%; width: auto; max-width: 72%; } }
@media (max-width: 600px) {
  .viz .stamp { top: 10px; right: 10px; left: auto; translate: none; font-size: .6875rem; padding: 4px 9px 3px; }
  .viz .stamp small { display: none; }
  .viz .mock-status { display: none; }
  .viz-partner .stamp { display: none; }
  .sy-mid { min-height: 0; display: grid; place-items: center; }
  .sy-hub { position: static; translate: none; }
}
@media (max-width: 600px) { .viz-teleconsole .tc-wave { display: flex; } .viz-teleconsole .tc-wave span:nth-child(n+15) { display: none; } }

/* =====================================================================
   Payroll demo: "Try a payroll run" (/services/payroll/#try-payroll) and its homepage teaser.
   One record in the mockup family: table rows on wide screens, stacked cards on phones.
   ===================================================================== */
.prd { overflow: hidden; box-shadow: var(--shadow); }
.prd .mock-head { padding: 16px 20px; }
.prd-status { font-size: .75rem; font-weight: 600; white-space: nowrap; padding: 3px 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); transition: background-color 200ms ease, color 200ms ease; }
.prd-status.is-done { background: var(--accent-soft); color: var(--accent-text); }

/* settings */
.prd-settings { display: grid; gap: 18px; padding: 18px 20px 20px; border-bottom: 1px solid var(--line); }
.prd .field { gap: 6px; }
.prd .field > label, .prd .field > legend { font-size: .875rem; }
.prd .select { min-height: 44px; padding-top: 9px; padding-bottom: 9px; }
.prd .help { min-height: 1.4em; }
.prd-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.prd-toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--bg); cursor: pointer; font-size: .9375rem; transition: border-color 150ms ease, background-color 150ms ease; }
.prd-toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; transition: background-color 150ms ease, border-color 150ms ease; }
.prd-toggle input::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.6); opacity: 0; transition: transform 160ms var(--ease-out), opacity 120ms ease; }
.prd-toggle input:checked { background: var(--accent); border-color: var(--accent); }
.prd-toggle input:checked::after { transform: rotate(45deg) scale(1); opacity: 1; }
.prd-toggle:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.prd-toggle:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .prd-toggle:hover { border-color: var(--ink); } }
@media (min-width: 960px) { .prd-settings { grid-template-columns: 230px 200px minmax(0, 1fr); gap: 20px; } }

/* team: phone cards first */
.prd-team { padding: 14px 12px 4px; }
.prd-cols { display: none; }
.prd-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.prd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: background-color 240ms ease, border-color 240ms ease; }
.prd-in { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.prd-f { display: grid; gap: 4px; align-content: start; }
.prd-f > label { font-size: .75rem; font-weight: 500; color: var(--muted); }
.prd .input { min-height: 44px; padding: 8px 10px; background: var(--bg); }
.prd .input-group .addon { padding: 0 9px; font-size: .875rem; }
.prd-gross { text-align: right; }
.prd-f .error { grid-column: 1 / -1; }
.prd-out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); }
.prd-o { display: grid; gap: 1px; align-content: start; min-width: 0; }
.prd-o dt { font-size: .6875rem; color: var(--muted); }
.prd-o dd { margin: 0; font-size: .8125rem; white-space: nowrap; }
.prd-o-split { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prd-o-split dd { display: flex; gap: 10px; align-items: baseline; }
.prd-o-split small { font-size: .75rem; color: var(--muted); }
.prd-o-net { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding-top: 8px; border-top: 1px dashed var(--line); }
.prd-o-net dt { font-size: .875rem; color: var(--ink); font-weight: 500; }
.prd-o-net dd { font-size: 1rem; font-weight: 600; }
.prd-st { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.prd-spin, .prd-paid, .prd-slipbtn { display: none; }
.prd-spin .icon { width: 18px; height: 18px; color: var(--muted); animation: spin 900ms linear infinite; }
.prd-paid { align-items: center; gap: 5px; font-size: .8125rem; font-weight: 600; color: var(--accent-text); }
.prd-paid .icon { width: 18px; height: 18px; color: var(--accent); }
.prd-slipbtn { align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 500; cursor: pointer; }
.prd-slipbtn .icon { width: 16px; height: 16px; }
.prd-del { align-self: center; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid transparent; border-radius: var(--r-control); background: none; color: var(--muted); cursor: pointer; transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease; }
.prd-del .icon { width: 18px; height: 18px; }
.prd-del:disabled { opacity: .35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) {
  .prd-del:not(:disabled):hover { color: var(--danger); border-color: var(--line); background: var(--danger-soft); }
  .prd-slipbtn:hover { border-color: var(--ink); }
  .prd.is-done .prd-row:hover { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
}
.prd-row.is-busy { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.prd-row.is-busy .prd-spin { display: inline-grid; }
.prd-row.is-paid .prd-paid { display: inline-flex; }
.prd.is-done .prd-slipbtn { display: inline-flex; }
.prd.is-done .prd-row { cursor: pointer; }
.prd.is-done .prd-row .input { cursor: text; }
.prd-row.is-paid .prd-paid { animation: prd-tick 280ms var(--ease-out); }
@keyframes prd-tick { from { opacity: 0; transform: scale(.85); } }
.prd-add-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 0 16px; }
.prd-count { font-size: .8125rem; color: var(--muted); }

/* run strip: company account, progress, run */
.prd-side { display: grid; gap: 16px; padding: 18px 16px 20px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.prd-bank { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.prd-bank .tile-icon { width: 40px; height: 40px; }
.prd-bank .tile-icon .icon { width: 20px; height: 20px; }
.prd-bank-txt { min-width: 0; flex: 1; }
.prd-bank-txt strong { display: block; font-weight: 600; font-size: .9375rem; }
.prd-bank-txt small { display: block; font-size: .6875rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prd-bank-paid { display: grid; justify-items: end; }
.prd-bank-paid small { font-size: .6875rem; color: var(--muted); }
.prd-bank-paid .mono { font-size: 1rem; font-weight: 500; }
.prd-progress { display: grid; gap: 10px; }
.prd-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.prd-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.prd-stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .8125rem; font-weight: 500; }
.prd-stages .chk.is-idle { color: var(--muted); }
.prd-stages .chk.is-idle .is-done { opacity: 0; transform: scale(.8); }
.prd-stages .chk.is-idle .check-state::before { content: ""; position: absolute; inset: 2px; border: 1.5px solid var(--line-strong); border-radius: 50%; }
.prd-run { display: grid; gap: 4px; }
.prd-skip { justify-self: center; min-height: 40px; padding: 0 10px; background: none; border: 0; color: var(--accent-text); font-weight: 500; font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.prd-skip.is-off { visibility: hidden; }

/* summary */
.prd-summary { position: relative; padding: 18px 16px 20px; border-top: 1px solid var(--line); }
.prd-summary-head { display: grid; gap: 2px; padding-right: 168px; min-height: 40px; }
.prd-summary-head strong { font-weight: 600; font-size: .9375rem; }
.prd-summary-head small { font-size: .75rem; color: var(--muted); }
.prd-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 14px 0 0; }
.prd-totals > div { display: grid; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.prd-totals dt { font-size: .75rem; color: var(--muted); }
.prd-totals dd { margin: 0; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.prd-totals .is-key dd { color: var(--accent-text); }
.prd-summary:not(.is-done) .prd-totals dd { color: var(--muted); }
.prd .prd-summary .stamp { opacity: 0; top: 14px; right: 14px; left: auto; translate: none; font-size: .75rem; }
.prd-fly { position: absolute; left: 0; top: 0; z-index: 5; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 500; white-space: nowrap; pointer-events: none; box-shadow: var(--shadow); will-change: transform, opacity; opacity: 0; }

.prd-foot { margin-top: 16px; display: grid; gap: 8px; font-size: .875rem; color: var(--muted); }
.prd-how summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; list-style: none; color: var(--accent-text); font-weight: 500; }
.prd-how summary::-webkit-details-marker { display: none; }
.prd-how summary .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.prd-how[open] summary .icon { transform: rotate(180deg); }
.prd-how ul { display: grid; gap: 6px; padding-left: 18px; max-width: 78ch; }

@media (min-width: 640px) {
  .prd-team, .prd-side, .prd-summary { padding-inline: 20px; }
  .prd-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prd-stages { display: flex; flex-wrap: wrap; gap: 8px 18px; }
}

/* wide screens: one table, columns shared by the header and every row (subgrid) */
@media (min-width: 960px) {
  .prd { --prd-cols: minmax(0, 1.45fr) minmax(0, 1.25fr) minmax(0, 1.05fr) repeat(4, minmax(0, .7fr)) minmax(0, 1fr) 132px 40px; }
  .prd-team { padding-top: 4px; }
  .prd-cols { display: grid; grid-template-columns: var(--prd-cols); gap: 12px; padding: 12px 0 10px; border-bottom: 1px solid var(--line); font-size: .75rem; font-weight: 500; color: var(--muted); }
  .prd-cols span:nth-child(n+3):nth-child(-n+8) { text-align: right; }
  .prd-rows { gap: 0; }
  .prd-row { grid-template-columns: var(--prd-cols); gap: 12px; align-items: center; padding: 10px 0; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; background: transparent; }
  .prd-row.is-busy { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
  .prd-in { grid-column: 1 / 3; grid-template-columns: subgrid; gap: 12px; }
  .prd-f > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prd .input { min-height: 40px; font-size: .9375rem; }
  .prd-out { grid-column: 3 / 9; grid-template-columns: subgrid; gap: 12px; padding: 0; border: 0; }
  .prd-o { text-align: right; }
  .prd-o dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .prd-o dd { font-size: .875rem; }
  .prd-o, .prd-o-split, .prd-o-net, .prd-o-split dd { display: grid; justify-items: end; justify-content: normal; gap: 0; }
  .prd-o-split, .prd-o-net { grid-column: auto; padding: 0; border: 0; }
  .prd-o-net { display: grid; }
  .prd-o-net dd { font-size: .9375rem; }
  .prd-st { grid-column: 9; gap: 8px; }
  .prd-slipbtn { width: 36px; padding: 0; justify-content: center; }
  .prd-slipbtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prd-del { grid-column: 10; }
  .prd-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 240px; align-items: center; gap: 24px; }
  .prd-totals { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .prd-totals > div { padding: 0 0 0 16px; border-top: 0; border-left: 1px solid var(--line); }
  .prd-totals > div:first-child { padding-left: 0; border-left: 0; }
  .prd-totals dd { font-size: 1.375rem; }
  .prd-summary-head { padding-right: 220px; }
  .prd .prd-summary .stamp { top: 16px; right: 20px; font-size: .8125rem; }
}

/* sample payslip */
.prd-slip { margin: auto; width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.prd-slip::backdrop { background: rgb(12 21 19 / .5); }
.motion .prd-slip[open]::backdrop { animation: fade-in 200ms ease; }
.prd-slip.is-closing::backdrop { opacity: 0; transition: opacity 150ms ease; }
.prd-slip-card { position: relative; overflow: hidden; display: grid; gap: 18px; padding: 22px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-lg); }
.prd-slip-mark { position: absolute; left: 50%; top: 52%; translate: -50% -50%; rotate: -22deg; font-size: clamp(4rem, 16vw, 6.5rem); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); opacity: .06; pointer-events: none; user-select: none; white-space: nowrap; }
.prd-slip-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.prd-slip-kicker { font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
.prd-slip-meta { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.prd-slip-close { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--ink); cursor: pointer; }
.prd-slip-close .icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .prd-slip-close:hover { border-color: var(--ink); } }
.prd-slip-cols { position: relative; display: grid; gap: 18px; }
@media (min-width: 520px) { .prd-slip-cols { grid-template-columns: 1fr 1fr; gap: 24px; } }
.prd-slip-cols h4 { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.prd-slip-cols dl { margin: 0; }
.prd-slip-cols dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .875rem; }
.prd-slip-cols dd { margin: 0; }
.prd-slip-cols .is-total { border-bottom: 0; border-top: 1px solid var(--line-strong); margin-top: 2px; font-weight: 600; }
.prd-slip-net { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: var(--r-control); background: var(--accent-soft); }
.prd-slip-net span { font-weight: 500; }
.prd-slip-net strong { font-size: 1.5rem; font-weight: 500; color: var(--accent-text); }
.prd-slip-note { position: relative; font-size: .8125rem; color: var(--muted); }

/* homepage teaser in the Payroll block */
.try-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 16px; padding: 12px 12px 12px 14px; border: 1px dashed var(--line-strong); border-radius: 12px; background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface)); }
.try-teaser-txt { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 220px; }
.try-teaser .tile-icon { width: 36px; height: 36px; }
.try-teaser .tile-icon .icon { width: 18px; height: 18px; }
.try-teaser strong { display: block; font-weight: 600; font-size: .9375rem; }
.try-teaser small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.try-teaser .btn { min-height: 40px; padding: 8px 14px; }
.prd-hint { display: none; width: 100%; font-size: .8125rem; color: var(--muted); }
.prd.is-done .prd-hint { display: block; }
@media (min-width: 640px) { .prd-hint { width: auto; margin-right: auto; } .prd-add-row .btn { order: -1; } }
@media (max-width: 959px) { .prd-side { grid-template-columns: minmax(0, 1fr); } }
.prd-bank, .prd-bank-paid { min-width: 0; }
.prd-bank-paid .mono { white-space: nowrap; }
@media (max-width: 639px) {
  .prd-bank { gap: 10px; padding: 12px; }
  .prd-bank .tile-icon { width: 36px; height: 36px; }
  .prd-bank-txt strong { font-size: .875rem; white-space: nowrap; }
  .prd-skip { min-height: 36px; }
}
@media (min-width: 1024px) and (max-height: 800px) { .svc.is-pinned .try-teaser small { display: none; } }

/* ---------- Login to the client portal (header + phone menu) ---------- */
.btn-login .icon { width: 18px; height: 18px; }
@media (min-width: 1080px) and (max-width: 1239px) {
  .header-row { gap: 16px; }
  .main-nav a, .nav-trigger { padding-inline: 9px; }
  .header-actions .btn { padding-inline: 13px; }
}
