:root {
  --bg: #FFFFFF;
  --fg: #02172C;
  --accent: #18A79B;
  --accent-ink: #11776E;
  --accent-ink-hover: #0D665E;
  --muted: #5B6675;
  --surface: #F4F5F7;
  --surface-strong: #E8EBF0;
  --surface-dark: #0A263F;
  --surface-dark-raised: #10324F;
  --text-on-dark: #FFFFFF;
  --muted-on-dark: #BDC9D5;
  --border: #D9DFE7;
  --border-dark: #365169;
  --browser-border: #CDD5D4;
  --browser-surface: #F4F5F7;
  --browser-divider: #D9DFE7;
  --browser-muted: #61716F;
  --browser-dot-border: #AEBBB9;
  --browser-dot: #DFE4EB;
  --browser-dot-red: #D6A9A3;
  --browser-dot-amber: #C99A34;
  --browser-dot-green: #A9CFBF;
  --browser-screen: #FFFFFF;
  --browser-caption: #4F6665;
  --browser-caption-muted: #6A7977;
  --browser-separator: #9AA8A5;
  --accent-hover: #13887E;
  --danger: #B84D4D;
  --danger-text: #F3C3BD;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --radius-small: 4px;
  --radius-medium: 6px;
  --radius-large: 8px;
  --shell: min(1240px, calc(100% - 64px));
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Archivo", "Trebuchet MS", sans-serif;
  --type-caption: clamp(0.6875rem, 0.66rem + 0.12vw, 0.75rem);
  --type-label: clamp(0.75rem, 0.71rem + 0.16vw, 0.825rem);
  --type-small: clamp(0.875rem, 0.84rem + 0.16vw, 0.95rem);
  --type-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --type-lead: clamp(1.125rem, 1.03rem + 0.42vw, 1.35rem);
  --type-heading-3: clamp(1.25rem, 1.08rem + 0.75vw, 1.65rem);
  --type-display-2: clamp(3rem, 2.1rem + 4.2vw, 5.8rem);
  --type-display-1: clamp(4rem, 2.35rem + 6.9vw, 7.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: var(--space-3);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--type-display-1);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.035em;
}

h2 {
  max-width: 760px;
  margin-bottom: var(--space-3);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: var(--type-display-2);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.028em;
}

h3 {
  margin-bottom: var(--space-1);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--type-heading-3);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

strong {
  font-weight: 500;
}

strong,
h1,
h2,
h3,
.button,
.nav-links,
.eyebrow {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 4px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--fg);
  font-size: var(--type-label);
  font-weight: 500;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--accent-ink);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-blue {
  color: var(--accent-ink);
}

.eyebrow-green {
  color: var(--accent-ink);
}

.section-lead {
  max-width: 690px;
  margin-bottom: var(--space-6);
  color: var(--muted);
  font-size: var(--type-lead);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--fg);
  box-shadow: 0 12px 32px rgba(2, 23, 44, 0.18);
  font-size: var(--type-label);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 150ms ease-out;
}

.button:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.cta-button {
  transition: background-color 150ms ease-out, border-color 150ms ease-out, transform 340ms cubic-bezier(0.2, 1.45, 0.35, 1);
}

.cta-button:hover {
  transform: scale(1.02);
}

.cta-button:active {
  transform: scale(1);
}

.button-small {
  min-height: 40px;
  padding: 10px 15px;
  font-size: var(--type-caption);
}

/* Outline (secondary) button, e.g. Log in: quieter than the filled CTA, fills in on hover. */
.button-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}

.button-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--fg);
}

.text-link {
  display: inline-flex;
  position: relative;
  align-items: center;
  min-height: 44px;
  padding-bottom: 2px;
  color: var(--accent-ink);
  font-size: var(--type-label);
  font-weight: 500;
}

.text-link:hover {
  color: var(--accent-ink-hover);
}

.text-link-blue {
  color: var(--accent-ink);
}

.text-link-blue:hover {
  color: var(--accent-ink-hover);
}

:is(.text-link, .browser-caption a, .footer-nav a, .footer-contact a, .contact-list a, .form-errors a) {
  position: relative;
  text-decoration: none;
  transition: color 150ms ease-out;
}

:is(.text-link, .browser-caption a, .footer-nav a, .footer-contact a, .contact-list a, .form-errors a)::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 150ms ease-out;
}

.text-link::after { bottom: 4px; }

:is(.text-link, .browser-caption a, .footer-nav a, .footer-contact a, .contact-list a, .form-errors a):is(:hover, :focus-visible)::after {
  transform: scaleX(1);
}

/* Navigation */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 16px;
  white-space: nowrap;
  transition: opacity 150ms ease-out;
}

.brand:hover { opacity: 0.82; }

.brand img {
  width: 132px;
  height: auto;
}

.brand span {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.025em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
  font-size: var(--type-label);
  font-weight: 500;
}

.nav-links > a:not(.button) {
  position: relative;
  padding-block: 26px;
  color: var(--muted);
  transition: color 150ms ease-out;
}

.nav-links > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: opacity 150ms ease-out, transform 150ms ease-out;
}

.nav-links > a:not(.button):is(:hover, :focus-visible),
.nav-links > a:not(.button)[aria-current="page"] {
  color: var(--accent-ink);
}

.nav-links > a:not(.button):is(:hover, :focus-visible)::after,
.nav-links > a:not(.button)[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--accent-ink);
  border-radius: 8px;
  background: var(--surface);
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.menu-button:hover {
  border-color: var(--accent);
  background: var(--surface-strong);
}

.menu-button span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--fg);
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(680px, calc(100svh - 76px), 920px);
  overflow: hidden;
  background: var(--fg);
  color: var(--bg);
}

.hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(2, 23, 44, 0.66);
  content: "";
}

.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  align-items: flex-end;
  padding-block: clamp(104px, 12vh, 144px);
}

.hero-copy {
  width: min(100%, 780px);
  min-width: 0;
  text-align: left;
}

.hero-copy h1 {
  max-width: 12ch;
  color: var(--bg);
}

.hero-copy .eyebrow {
  color: var(--accent);
}

.hero-lead {
  max-width: 660px;
  margin-bottom: var(--space-4);
  color: var(--muted-on-dark);
  font-size: var(--type-lead);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: 0;
}

.hero .text-link {
  color: var(--bg);
}

/* Product evidence */
.product-sheet {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-medium);
  background: var(--surface-dark);
  box-shadow: 0 34px 70px rgba(2, 23, 44, 0.26);
}

.sheet-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 2px 3px 10px;
  color: var(--muted-on-dark);
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sheet-topline span:last-child {
  color: var(--accent);
}

.sheet-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-large);
  background: var(--surface-dark-raised);
}

.sheet-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.product-sheet figcaption {
  margin: 11px 5px 3px;
  color: var(--muted-on-dark);
  font-size: var(--type-caption);
  line-height: 1.5;
}

.product-sheet-light {
  border-color: var(--accent);
  background: var(--surface-dark);
}

.product-sheet-blue {
  border-color: var(--accent);
}

.product-sheet-dark {
  border-color: var(--accent);
}

/* Proof band */
.proof-band {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.proof-band-grid {
  display: grid;
  min-height: 104px;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  align-items: stretch;
}

.proof-band-grid > p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: var(--space-3);
  border-left: 1px solid var(--border);
  font-size: var(--type-label);
}

.proof-band-grid > p:last-child {
  border-right: 1px solid var(--border);
}

.proof-band-grid .proof-intro {
  padding-left: 0;
  border-left: 0;
  color: var(--fg);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-band-grid span {
  color: var(--accent-ink);
  font-size: var(--type-caption);
  font-weight: 500;
}

/* Editorial stories */
.story {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 10vw, 152px);
}

.story-grid,
.payroll-layout,
.leave-layout,
.control-layout {
  position: relative;
  z-index: 1;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.78fr);
  gap: clamp(64px, 8vw, 126px);
  align-items: center;
}

.payroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(48px, 5vw, 72px);
  align-items: center;
}

.payroll-intro {
  max-width: 1080px;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

.payroll-intro h2 {
  max-width: 1040px;
}

.payroll-intro .section-lead {
  max-width: 850px;
  margin-bottom: 0;
}

.payroll-visual {
  min-width: 0;
  margin: 0;
}

.leave-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.leave-layout .story-copy {
  max-width: 470px;
}

.browser-window {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--browser-border);
  border-radius: var(--radius-large);
  background: var(--browser-surface);
  box-shadow: 0 18px 42px rgba(2, 23, 44, 0.13), 0 3px 9px rgba(2, 23, 44, 0.07);
}

.browser-toolbar {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  border-bottom: 1px solid var(--browser-divider);
  color: var(--browser-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.browser-dots {
  display: flex;
  gap: 5px;
}

.browser-dots i {
  width: 7px;
  height: 7px;
  border: 1px solid var(--browser-dot-border);
  border-radius: 50%;
  background: var(--browser-dot);
}

.browser-dots i:first-child { background: var(--browser-dot-red); }
.browser-dots i:nth-child(2) { background: var(--browser-dot-amber); }
.browser-dots i:last-child { background: var(--browser-dot-green); }

.browser-screen {
  position: relative;
  background: var(--browser-screen);
}

.browser-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.screen-highlight {
  position: absolute;
  z-index: 1;
  border: 1.5px solid rgba(24, 167, 155, 0.88);
  border-radius: 5px;
  background: rgba(24, 167, 155, 0.14);
  box-shadow: 0 0 0 3px rgba(24, 167, 155, 0.09);
  pointer-events: none;
}

.highlight-run-report { left: 23.5%; top: 38.5%; width: 67.5%; height: 6%; }
.highlight-download-csv { left: 22%; top: 61.5%; width: 11%; height: 5%; }
.highlight-group-by-site { left: 25.4%; top: 31.6%; width: 12.5%; height: 7.4%; }
.highlight-leave-liability { left: 27.2%; top: 43.2%; width: 19%; height: 9%; }
.highlight-pending-status { left: 64.1%; top: 80.4%; width: 4.7%; height: 3.3%; }
.highlight-approved-status { left: 64.1%; top: 93.1%; width: 5.2%; height: 3.4%; }

.browser-window .browser-caption {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 9px 14px;
  border-top: 1px solid var(--browser-divider);
  color: var(--browser-caption);
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.4;
}

.browser-caption small {
  margin-left: 9px;
  color: var(--browser-caption-muted);
  font-size: inherit;
  font-weight: 400;
}

.browser-caption small::before {
  margin-right: 9px;
  color: var(--browser-separator);
  content: "/";
}

.browser-caption a {
  flex: 0 0 auto;
  color: var(--accent-ink);
}

.browser-caption a:hover { color: var(--accent-ink-hover); }

.self-service-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.self-service-intro {
  position: relative;
  z-index: 1;
  max-width: 1050px;
  margin-bottom: clamp(40px, 4.5vw, 64px);
}

.self-service-intro h2 {
  max-width: 1050px;
  margin-bottom: 0;
}

.self-service-copy {
  max-width: 460px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.self-service-copy > p:not(.eyebrow) {
  margin-bottom: 0;
  padding: 22px 0;
  color: var(--muted);
  font-size: var(--type-body);
}

.self-service-copy > p + p { border-top: 1px solid var(--border); }

.control-layout {
  display: grid;
  gap: clamp(40px, 5vw, 72px);
}

.control-layout .story-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.42fr);
  column-gap: var(--space-8);
  align-items: center;
}

.control-layout .story-copy .eyebrow {
  grid-column: 1 / -1;
}

.control-layout .story-copy h2,
.control-layout .story-copy .section-lead {
  margin-bottom: 0;
}

.control-layout .browser-window {
  width: min(100%, 980px);
  justify-self: center;
}

.story-light {
  background: var(--bg);
}

.story-dark {
  background: var(--fg);
  color: var(--text-on-dark);
}

.story-dark h2,
.story-dark h3 {
  color: var(--text-on-dark);
}

.story-dark .eyebrow {
  color: var(--accent);
}

.story-dark .section-lead {
  color: var(--muted-on-dark);
}

.story-rings,
.story-rings::after {
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(24, 167, 155, 0.28);
  border-radius: 50%;
  content: "";
}

.story-rings {
  right: -310px;
  bottom: -280px;
}

.story-rings::after {
  top: -38px;
  left: -38px;
  border-color: rgba(255, 255, 255, 0.14);
}

.evidence-list {
  border-top: 1px solid var(--border);
}

.evidence-list article {
  position: relative;
  padding: 22px 0 22px 30px;
  border-bottom: 1px solid var(--border);
}

.evidence-list article::before {
  position: absolute;
  top: 31px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.evidence-list h3 {
  margin-bottom: 5px;
  font-size: var(--type-body);
}

.evidence-list p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--type-small);
  line-height: 1.65;
}

.evidence-list-dark {
  border-top-color: var(--border-dark);
}

.evidence-list-dark article {
  border-bottom-color: var(--border-dark);
}

.evidence-list-dark article::before {
  border-color: var(--accent);
}

.evidence-list-dark p {
  color: var(--muted-on-dark);
}

.story-control .control-statements {
  width: min(100%, 980px);
  justify-self: center;
  border-color: var(--border-dark);
}

.story-control .control-statements p + p {
  border-color: var(--border-dark);
}

.story-control .control-statements strong {
  color: var(--accent);
}

.story-control .control-statements span {
  color: var(--muted-on-dark);
}

.control-statements {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.control-statements p {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  min-width: 0;
  gap: var(--space-5);
  align-items: baseline;
  margin: 0;
  padding: 24px 0;
}

.control-statements p + p {
  border-top: 1px solid var(--border);
}

.control-statements strong {
  color: var(--accent-ink);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-statements span {
  color: var(--muted);
  font-size: var(--type-label);
  line-height: 1.6;
}

/* Capability hierarchy */
.capabilities {
  padding-block: clamp(96px, 10vw, 152px);
  background: var(--bg);
  color: var(--fg);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.42fr);
  column-gap: var(--space-8);
  align-items: center;
  margin-bottom: var(--space-8);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading .section-lead {
  margin-bottom: 6px;
  color: var(--muted);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(230px, auto));
  gap: var(--space-3);
}

.capability-grid article {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.capability-featured {
  grid-row: 1 / 3;
  background: var(--fg) !important;
}

.capability-wide {
  grid-column: 2 / 4;
}

.capability-grid p,
.capability-grid h3 {
  margin-bottom: 0;
}

.capability-grid .ledger-label {
  color: var(--accent-ink);
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.capability-grid h3 {
  max-width: 18ch;
  margin-top: auto;
  padding-top: var(--space-6);
  color: var(--fg);
  font-size: var(--type-heading-3);
}

.capability-grid article > p:last-child {
  max-width: 48ch;
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--type-small);
}

.capability-featured h3 {
  max-width: 12ch;
  color: var(--bg);
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}

.capability-featured .ledger-label {
  color: var(--accent);
}

.capability-grid .capability-featured > p:last-child {
  color: var(--muted-on-dark);
}

.commercial-note {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(300px, 1fr) auto;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-8);
  padding: 30px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
}

.commercial-note h3,
.commercial-note p {
  margin-bottom: 0;
}

.price-amount {
  display: inline-block;
  min-width: 5.2ch;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.commercial-note .eyebrow {
  margin-bottom: 4px;
}

.commercial-note > p {
  color: var(--muted);
  font-size: var(--type-small);
}

/* Demo */
.demo {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 10vw, 144px);
  background: var(--surface);
  color: var(--fg);
}

.demo-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(460px, 0.82fr);
  gap: clamp(64px, 8vw, 120px);
  align-items: start;
}

.demo-copy > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: var(--type-body);
}

.contact-list {
  margin: var(--space-6) 0 0;
  border-top: 1px solid var(--border);
}

.contact-list div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-3);
  padding-block: 15px;
  border-bottom: 1px solid var(--border);
}

.contact-list dt {
  font-size: var(--type-caption);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-list dd {
  margin-bottom: 0;
  font-size: var(--type-small);
  font-weight: 500;
}

.contact-list a:hover {
  color: var(--accent-ink);
}

.demo-form {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-large);
  background: var(--fg);
  color: var(--text-on-dark);
  box-shadow: 0 32px 70px rgba(2, 23, 44, 0.28);
}

.field-row {
  margin-bottom: 18px;
}

.field-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-on-dark);
  font-size: var(--type-label);
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font-size: var(--type-small);
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

input,
select {
  min-height: 48px;
  padding: 10px 13px;
}

textarea {
  min-height: 118px;
  padding: 12px 13px;
  resize: vertical;
}

select option {
  background: var(--bg);
  color: var(--fg);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--accent);
  background: var(--surface-dark-raised);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(24, 167, 155, 0.12);
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

.button-submit {
  width: 100%;
  margin-top: 2px;
  box-shadow: none;
}

.form-errors {
  color: var(--danger-text);
  font-size: var(--type-label);
}

.form-errors p {
  margin-bottom: 4px;
  font-weight: 500;
}

.form-errors ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.form-errors a {
  color: inherit;
}

.form-success {
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  font-size: var(--type-label);
}

/* Footer */
.site-footer {
  padding: clamp(64px, 7vw, 96px) 0 28px;
  background: var(--fg);
  color: var(--text-on-dark);
}

.footer-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3vw, 36px);
  padding-bottom: clamp(64px, 7vw, 96px);
  text-align: center;
}

.footer-brand,
.footer-pitch {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-pitch {
  width: min(100%, 820px);
}

.footer-brand img {
  width: clamp(190px, 18vw, 240px);
  height: auto;
  filter: brightness(1.16) saturate(1.08);
}

.footer-brand p {
  margin: 10px 0 0;
  color: var(--muted-on-dark);
  font-size: var(--type-caption);
}

.footer-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-tagline {
  max-width: 16ch;
  margin: 0 0 20px;
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 5.3vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.footer-subheadline {
  max-width: 54ch;
  margin: 0 0 28px;
  color: var(--muted-on-dark);
  font-size: var(--type-body);
  line-height: 1.65;
}

.footer-cta {
  box-shadow: none;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.footer-login {
  margin-top: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.footer-details {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr);
  gap: var(--space-6);
  padding: 32px 0 52px;
  border-top: 1px solid var(--border-dark);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  column-gap: clamp(24px, 3vw, 48px);
  row-gap: 12px;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.footer-nav h2,
.footer-contact h2 {
  width: 100%;
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: var(--type-caption);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav a,
.footer-contact a {
  color: var(--text-on-dark);
  font-size: var(--type-label);
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  color: var(--muted-on-dark);
  font-size: var(--type-caption);
}

.footer-bottom p {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .stagger-group > * {
    opacity: 0;
    transform: translateY(9px);
    transition: opacity 350ms ease-out, transform 350ms ease-out;
  }

  .motion-ready .stagger-group.is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }

  .motion-ready .stagger-group > :nth-child(2) { transition-delay: 80ms; }
  .motion-ready .stagger-group > :nth-child(3) { transition-delay: 160ms; }
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 18px;
  }

  .nav-links > a:not(.button) {
    display: none;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 44px;
  }

  .payroll-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
  }

  .leave-layout {
    gap: 44px;
  }
}

@media (max-width: 960px) {
  :root {
    --shell: min(100% - 48px, 760px);
  }

  .nav-links > a:not(.button) {
    display: block;
  }

  .menu-button {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links > a:not(.button) {
    padding-block: 14px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links > a:not(.button)::after {
    display: none;
  }

  .nav-links .button {
    margin-top: 16px;
  }

  .hero {
    min-height: 0;
  }

  .story-grid,
  .payroll-layout,
  .leave-layout,
  .self-service-layout,
  .demo-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .payroll-layout,
  .self-service-layout {
    align-items: start;
  }

  .hero-grid {
    padding-block: 104px 80px;
  }

  .self-service-copy {
    max-width: 640px;
  }

  .product-sheet {
    width: min(100%, 680px);
  }

  .proof-band-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-band-grid .proof-intro {
    grid-column: 1 / -1;
    padding: 18px 0 0;
  }

  .proof-band-grid > p {
    border-left: 1px solid var(--border);
  }

  .proof-band-grid > p:last-child {
    border-right: 1px solid var(--border);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    align-items: start;
  }

  .control-layout .story-copy {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    align-items: start;
  }

  .capability-grid {
    grid-template-rows: repeat(2, minmax(210px, auto));
  }

  .commercial-note {
    grid-template-columns: 1fr 1fr;
  }

  .commercial-note .text-link {
    justify-self: start;
  }

}

@media (max-width: 680px) {
  :root {
    --shell: min(100% - 32px, 560px);
  }

  .nav {
    min-height: 70px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 120px;
  }

  .brand span {
    max-width: 106px;
    padding-bottom: 2px;
    font-size: var(--type-caption);
    line-height: 1.2;
    white-space: normal;
  }

  .nav-links {
    top: 70px;
  }

  .hero-grid {
    padding-block: 96px 64px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: var(--space-6);
  }

  .hero-actions .button,
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .product-sheet {
    padding: 8px;
    border-radius: var(--radius-large);
  }

  .sheet-topline {
    padding: 1px 2px 7px;
    font-size: var(--type-caption);
  }

  .sheet-viewport {
    aspect-ratio: 1 / 1;
  }

  .product-sheet figcaption {
    font-size: var(--type-caption);
  }

  .browser-toolbar {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 9px;
  }

  .browser-window .browser-caption {
    padding-inline: 10px;
    font-size: 10px;
  }

  .browser-caption small { margin-left: 5px; }
  .browser-caption small::before { margin-right: 5px; }

  .proof-band-grid {
    grid-template-columns: 1fr;
    padding-block: 12px;
  }

  .proof-band-grid .proof-intro,
  .proof-band-grid > p {
    grid-column: auto;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    border-left: 0;
  }

  .proof-band-grid > p:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .story {
    padding-block: 84px;
  }

  .story-grid {
    gap: var(--space-6);
  }

  .section-lead {
    margin-bottom: var(--space-4);
  }

  .evidence-list article {
    padding: 18px 0 18px 26px;
  }

  .evidence-list article::before {
    top: 27px;
  }

  .capabilities {
    padding-block: 84px;
  }

  .section-heading {
    margin-bottom: var(--space-6);
  }

  .control-statements p {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .capability-grid article,
  .capability-featured,
  .capability-wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 230px;
  }

  .commercial-note {
    grid-template-columns: 1fr;
    gap: var(--space-3);
    padding: 26px;
  }

  .demo {
    padding-block: 84px;
  }

  .demo-grid {
    gap: var(--space-6);
  }

  .field-row-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .demo-form {
    padding: 24px;
    border-radius: var(--radius-medium);
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-details {
    grid-template-columns: 1fr;
  }

  .footer-hero {
    gap: 28px;
  }

  .footer-details {
    gap: 38px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .brand span {
    display: none;
  }

  .footer-tagline {
    font-size: clamp(3rem, 12vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:is(:hover, :active) {
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
