:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-muted: #eef1f5;
  --text: #1b2433;
  --muted: rgba(27, 36, 51, 0.74);
  --muted-soft: rgba(27, 36, 51, 0.54);
  --line: rgba(27, 36, 51, 0.12);
  --line-strong: rgba(27, 36, 51, 0.18);
  --accent: #7f5af0;
  --accent-hover: #6545d8;
  --accent-soft: rgba(127, 90, 240, 0.12);
  --success: #23805a;
  --sky: #4476d9;
  --pink: #c85792;
  --shadow: 0 24px 64px rgba(17, 24, 39, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --page-gutter: clamp(14px, 3vw, 32px);
  --content-max: 1240px;
  --hero-max: 1600px;
  --section-space: clamp(72px, 9vw, 112px);
  --site-header-height: 132px;
  --container: min(var(--content-max), calc(100vw - (var(--page-gutter) * 2)));
  --font-sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
  --mountain-image: url("/payroll/payroll-mountain-band.png");
  --type-display-hero: clamp(3rem, 2.25rem + 3.1vw, 5.25rem);
  --type-heading-page: clamp(2.35rem, 1.95rem + 1.9vw, 3.9rem);
  --type-heading-section: clamp(1.45rem, 1.18rem + 1.05vw, 2.15rem);
  --type-heading-card: clamp(1.2rem, 1.08rem + 0.45vw, 1.5rem);
  --type-body-lg: clamp(1rem, 0.97rem + 0.18vw, 1.08rem);
  --type-body-md: clamp(0.98rem, 0.965rem + 0.08vw, 1.02rem);
  --type-body-sm: clamp(0.92rem, 0.905rem + 0.06vw, 0.96rem);
  --type-label: clamp(0.74rem, 0.725rem + 0.08vw, 0.8rem);
  --leading-display: 0.94;
  --leading-heading: 1.04;
  --leading-copy: 1.66;
  --tracking-display: 0;
  --tracking-heading: 0;
  --measure-heading: 14ch;
  --measure-copy: 34rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(27, 36, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 36, 51, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #ffffff 100%);
  background-size: 88px 88px, 88px 88px, auto;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

peak-release-banner,
peak-solutions-menu {
  display: contents;
}

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

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

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

::selection {
  background: rgba(127, 90, 240, 0.22);
  color: #101827;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.page-main {
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.site-banner {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: #000000;
}

.site-banner-inner {
  display: flex;
  justify-content: center;
  padding: 10px 0 11px;
}

.site-banner-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--type-body-sm);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-wrap: pretty;
}

.site-banner-copy a {
  position: relative;
  display: inline-block;
  color: #8eb2ff;
  font-weight: 600;
  transition: color 160ms ease;
}

.site-banner-copy a::before {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

.site-banner-copy a:hover {
  color: #bfd2ff;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 20px rgba(17, 24, 39, 0.1))
    drop-shadow(0 0 14px rgba(127, 90, 240, 0.1));
}

.brand span {
  font-size: var(--type-body-sm);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-cluster,
.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-cluster {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
  font-size: var(--type-body-sm);
  font-weight: 700;
  line-height: 1;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-toggle:hover {
  background: #ffffff;
  border-color: rgba(27, 36, 51, 0.26);
}

.nav-toggle:active {
  transform: scale(0.97);
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(127, 90, 240, 0.62);
  outline-offset: 3px;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(6px);
}

.site-nav.is-menu-open .nav-toggle-bars {
  transform: rotate(45deg);
}

.site-nav.is-menu-open .nav-toggle-bars::before {
  opacity: 0;
  transform: translateY(0);
}

.site-nav.is-menu-open .nav-toggle-bars::after {
  transform: translateY(0) rotate(90deg);
}

.nav-links,
.nav-actions {
  flex-wrap: wrap;
}

.nav-links a,
.nav-link-button,
.nav-details summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.35;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.nav-links a:hover,
.nav-link-button:hover,
.nav-details summary:hover,
.nav-links a[aria-current="page"],
.nav-details.is-current summary,
.nav-details[open] summary {
  color: var(--text);
}

.nav-details {
  position: relative;
}

.nav-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.nav-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 160ms ease;
}

.nav-details[open] .nav-caret {
  transform: rotate(225deg) translateY(-1px);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 50;
  display: grid;
  gap: 4px;
  min-width: 320px;
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.nav-menu-group {
  display: grid;
  gap: 4px;
}

.nav-menu-group + .nav-menu-group {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.nav-menu-label {
  margin: 0;
  padding: 4px 12px;
  color: rgba(27, 36, 51, 0.46);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-menu-date {
  flex: 0 0 auto;
  color: rgba(27, 36, 51, 0.5);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  background: rgba(27, 36, 51, 0.06);
  color: var(--text);
}

.nav-menu a:hover .nav-menu-date,
.nav-menu a[aria-current="page"] .nav-menu-date {
  color: rgba(27, 36, 51, 0.68);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: var(--type-body-sm);
  font-weight: 700;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.96);
}

.button-primary {
  border-color: rgba(127, 90, 240, 0.44);
  background: linear-gradient(180deg, #8b67f4 0%, #6545d8 100%);
  color: #ffffff;
  box-shadow: 0 18px 30px rgba(127, 90, 240, 0.16);
}

.button-primary:hover {
  background: linear-gradient(180deg, #9674f6 0%, #6d4be0 100%);
  box-shadow: 0 20px 34px rgba(127, 90, 240, 0.22);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(27, 36, 51, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.button-link {
  min-height: 40px;
  padding: 0;
  border: 0;
  color: var(--text);
  font-weight: 700;
}

.button-link::after {
  content: "->";
  margin-left: 8px;
  color: var(--accent-hover);
}

.eyebrow {
  margin: 0 0 16px;
  color: rgba(27, 36, 51, 0.68);
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.32em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 340px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.24) 40%, rgba(255, 255, 255, 0.94) 100%),
    var(--mountain-image) center bottom / cover no-repeat;
  opacity: 0.96;
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 30%, rgba(127, 90, 240, 0.08), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.24) 38%, rgba(255, 255, 255, 0.72));
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 60% 30%, rgba(127, 90, 240, 0.11), transparent 22%),
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, 0.54), transparent 12%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.42) 42%, rgba(255, 255, 255, 0.8) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 18%),
    linear-gradient(180deg, transparent 56%, rgba(255, 255, 255, 0.72) 84%, rgba(255, 255, 255, 0.96) 100%);
  pointer-events: none;
}

.hero-grid,
.page-hero-layout {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(132px, 188px) 1px minmax(420px, 520px) minmax(560px, 1fr);
  gap: clamp(24px, 2.4vw, 42px);
  align-items: center;
  min-height: 720px;
  padding: 68px 0 286px;
}

.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  align-items: center;
  min-height: 620px;
  padding: 76px 0 260px;
}

.hero-lockup {
  display: grid;
  place-items: center;
}

.hero-lockup img {
  width: min(210px, 100%);
  filter:
    drop-shadow(0 22px 40px rgba(17, 24, 39, 0.1))
    drop-shadow(0 0 18px rgba(127, 90, 240, 0.06));
}

.hero-divider {
  width: 1px;
  height: min(320px, 54vh);
  background: linear-gradient(180deg, rgba(27, 36, 51, 0.08), rgba(27, 36, 51, 0.26), rgba(127, 90, 240, 0.16));
  box-shadow: 0 0 20px rgba(127, 90, 240, 0.06);
}

.hero-copy,
.page-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.hero-copy {
  max-width: 520px;
}

.hero-title,
.page-title,
.section-header h2,
.story-panel h3,
.pricing-card h3,
.product-card h3,
.quote-panel h3,
.article-card h3,
.content-card h3,
.redirect-shell h1 {
  margin: 0;
  color: var(--text);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

.hero-title {
  font-size: var(--type-display-hero);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  max-width: var(--measure-heading);
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.hero-desktop-break {
  display: inline;
}

.page-title,
.section-header h2 {
  font-size: var(--type-heading-page);
  max-width: var(--measure-heading);
  text-wrap: balance;
}

.hero-title .muted-line,
.page-title .muted-line,
.section-header .muted-line {
  color: rgba(27, 36, 51, 0.42);
}

.hero-rule {
  width: min(220px, 56%);
  height: 1px;
  margin: 28px 0 24px;
  background: linear-gradient(90deg, var(--accent), rgba(27, 36, 51, 0.14), transparent);
}

.hero-subhead,
.page-subhead,
.section-header p,
.story-panel p,
.product-card p,
.quote-panel p,
.content-card p,
.article-card p,
.resource-note,
.redirect-shell p,
.footer-copy,
.footer-group a,
.feature-item p,
.stack-card p,
.demo-step p,
.surface-stat p,
.metric-band p {
  color: var(--muted);
}

.hero-subhead {
  max-width: 31rem;
  font-family: var(--font-mono);
  font-size: var(--type-body-sm);
  line-height: 1.52;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-subhead {
  max-width: 36rem;
  font-size: var(--type-body-lg);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-caption,
.section-note,
.stack-label,
.resource-tag,
.surface-label,
.metric-band strong,
.panel-chip,
.pricing-tag {
  font-family: var(--font-mono);
  font-size: var(--type-label);
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-caption,
.section-note,
.stack-label,
.resource-tag,
.surface-label,
.panel-chip,
.pricing-tag {
  margin: 18px 0 0;
  color: rgba(27, 36, 51, 0.54);
}

.hero-stage,
.stage-board {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-stage::before {
  content: "";
  position: absolute;
  right: 7%;
  top: 12px;
  width: min(560px, 82%);
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 90, 240, 0.16), transparent 68%);
  filter: blur(28px);
  opacity: 0.92;
  pointer-events: none;
}

.hero-stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 5%;
  bottom: 18px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(148, 163, 184, 0.18), transparent 72%);
  pointer-events: none;
}

.device-laptop,
.device-phone,
.board-shell,
.surface-board,
.resource-board,
.timeline-board {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.device-laptop {
  position: relative;
  right: -96px;
  top: auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  width: min(760px, 100%);
  min-height: 420px;
  padding: 20px 22px 24px;
  border-radius: 30px 30px 22px 22px;
  isolation: isolate;
  box-shadow:
    0 40px 90px rgba(17, 24, 39, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.56),
    0 0 40px rgba(127, 90, 240, 0.08);
}

.device-laptop::before {
  content: "";
  position: absolute;
  inset: 8px 8px 18px;
  border-radius: 24px 24px 16px 16px;
  border: 1px solid rgba(27, 36, 51, 0.08);
  background: linear-gradient(136deg, rgba(255, 255, 255, 0.72) 0%, transparent 18%, transparent 54%, rgba(255, 255, 255, 0.24) 100%);
  pointer-events: none;
}

.device-laptop::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -20px;
  height: 20px;
  border-radius: 0 0 38px 38px;
  background: linear-gradient(180deg, rgba(216, 220, 232, 0.86), rgba(84, 89, 101, 0.96));
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.device-sidebar {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  position: relative;
  z-index: 1;
}

.device-sidebar img {
  width: 78px;
}

.device-menu {
  display: grid;
  align-content: start;
  gap: 8px;
}

.device-menu span {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(27, 36, 51, 0.72);
  font-size: 0.83rem;
}

.device-menu .is-active {
  background: rgba(127, 90, 240, 0.08);
  color: var(--text);
}

.device-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.device-topbar,
.activity-row,
.page-hero-metrics,
.surface-stat-row,
.metric-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.device-topbar h2,
.panel-title,
.activity-list h3,
.pipeline-panel h3,
.content-card h3,
.stack-card h3,
.demo-step h3,
.surface-stat h4,
.footer-brand {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.device-topbar h2,
.panel-title,
.pipeline-panel h3,
.activity-list h3,
.stack-card h3,
.content-card h3 {
  font-size: 1.08rem;
}

.panel-chip {
  margin: 0;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(27, 36, 51, 0.06);
  color: rgba(27, 36, 51, 0.68);
  letter-spacing: 0.12em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-card,
.pipeline-panel,
.activity-list,
.surface-stat,
.board-panel,
.stack-card,
.content-card,
.article-card,
.pricing-card,
.quote-panel,
.redirect-shell,
.metric-band,
.feature-item,
.story-panel,
.resource-category,
.resource-callout {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.metric-card,
.pipeline-panel,
.activity-list,
.board-panel,
.stack-card,
.content-card,
.article-card,
.pricing-card,
.quote-panel,
.redirect-shell,
.resource-category,
.resource-callout {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.metric-card {
  min-height: 98px;
  padding: 16px;
  border: 1px solid rgba(27, 36, 51, 0.08);
  border-radius: 10px;
}

.metric-card p,
.device-phone p {
  margin: 0;
  color: rgba(27, 36, 51, 0.62);
  font-size: 0.78rem;
}

.metric-card strong,
.device-phone strong,
.surface-stat strong,
.metric-band span,
.pricing-price,
.board-metric strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 1.38rem;
  font-variant-numeric: tabular-nums;
}

.metric-card em,
.device-phone em,
.board-metric em,
.metric-band b {
  display: block;
  margin-top: 7px;
  color: var(--success);
  font-style: normal;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
}

.pipeline-panel,
.activity-list,
.board-panel,
.surface-stat,
.surface-board,
.board-shell,
.resource-board,
.timeline-board {
  padding: 18px;
}

.pipeline-grid,
.stats-grid,
.board-grid,
.content-grid,
.article-grid,
.pricing-grid,
.resource-grid,
.resource-category-grid,
.demo-grid,
.feature-rail-grid,
.card-grid,
.stack-grid {
  display: grid;
  gap: 24px;
}

.pipeline-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.pipeline-grid span,
.board-metric p {
  display: grid;
  gap: 6px;
  color: rgba(27, 36, 51, 0.56);
  font-size: 0.74rem;
}

.pipeline-grid b {
  color: var(--text);
  font-size: 1.18rem;
}

.pipeline-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 14px;
}

.pipeline-bars span {
  height: 4px;
  background: var(--accent);
}

.pipeline-bars span:nth-child(2),
.pipeline-bars span:nth-child(3) {
  background: var(--sky);
}

.pipeline-bars span:nth-child(4) {
  background: var(--pink);
}

.pipeline-bars span:nth-child(5) {
  background: var(--success);
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-row {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: rgba(27, 36, 51, 0.72);
  font-size: 0.8rem;
}

.activity-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-row strong {
  color: rgba(27, 36, 51, 0.62);
  font-size: 0.76rem;
}

.device-phone {
  position: absolute;
  left: clamp(16px, 4vw, 52px);
  bottom: 8px;
  width: 184px;
  min-height: 354px;
  padding: 24px 14px 16px;
  border-radius: 34px;
  isolation: isolate;
  box-shadow:
    0 34px 72px rgba(17, 24, 39, 0.12),
    0 0 26px rgba(127, 90, 240, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.device-phone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 78px;
  height: 16px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(220, 223, 230, 0.98), rgba(187, 194, 206, 1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 1px 0 rgba(255, 255, 255, 0.48);
}

.device-phone::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 28px;
  border: 1px solid rgba(27, 36, 51, 0.08);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.72) 0%, transparent 18%, transparent 56%, rgba(255, 255, 255, 0.26) 100%);
  pointer-events: none;
}

.device-phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.device-phone-top img {
  width: 46px;
}

.device-phone-menu {
  width: 18px;
  height: 2px;
  background: rgba(27, 36, 51, 0.74);
  box-shadow:
    0 6px 0 rgba(27, 36, 51, 0.74),
    0 12px 0 rgba(27, 36, 51, 0.74);
}

.phone-panel {
  padding: 14px;
  border-radius: 10px;
  background: rgba(27, 36, 51, 0.05);
  position: relative;
  z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.phone-panel + .phone-panel {
  margin-top: 12px;
}

.phone-chart {
  height: 86px;
  margin-top: 12px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 8%, rgba(154, 99, 255, 0.88) 8% 10%, transparent 10% 22%, rgba(154, 99, 255, 0.88) 22% 24%, transparent 24% 40%, rgba(154, 99, 255, 0.88) 40% 42%, transparent 42% 58%, rgba(154, 99, 255, 0.88) 58% 60%, transparent 60%),
    linear-gradient(180deg, rgba(154, 99, 255, 0.2), rgba(154, 99, 255, 0.04));
}

.feature-rail {
  border-bottom: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.feature-rail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
  padding: 34px 26px;
  border-left: 1px solid var(--line-strong);
  min-width: 0;
}

.feature-item:first-child {
  border-left: 0;
}

.feature-item h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--type-heading-section);
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
  max-width: 12ch;
  text-wrap: balance;
}

.feature-item p {
  grid-column: 2;
  margin: -4px 0 0;
  max-width: 28ch;
  font-size: var(--type-body-md);
  line-height: 1.58;
  text-wrap: pretty;
}

.icon {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  color: var(--accent);
}

.icon-target {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-target::before,
.icon-target::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.icon-target::before {
  inset: 50% -14px auto;
  height: 2px;
}

.icon-target::after {
  inset: -14px auto;
  left: 50%;
  width: 2px;
}

.icon-bolt {
  clip-path: polygon(54% 0, 12% 56%, 44% 56%, 32% 100%, 86% 38%, 54% 38%);
  background: currentColor;
}

.icon-shield {
  border: 2px solid currentColor;
  border-radius: 20px 20px 28px 28px;
  clip-path: polygon(50% 0, 96% 18%, 88% 76%, 50% 100%, 12% 76%, 4% 18%);
}

.icon-shield::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 18px;
  width: 22px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.icon-bars {
  background:
    linear-gradient(currentColor 0 0) 4px 32px / 8px 18px no-repeat,
    linear-gradient(currentColor 0 0) 20px 20px / 8px 30px no-repeat,
    linear-gradient(currentColor 0 0) 36px 8px / 8px 42px no-repeat;
}

.section,
.story-section {
  border-bottom: 1px solid var(--line);
}

.section .container,
.cta-section .container {
  padding: var(--section-space) 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.section-header > div {
  min-width: 0;
  max-width: 44rem;
}

.section-header p {
  min-width: 0;
  max-width: var(--measure-copy);
  margin: 0;
  font-size: var(--type-body-lg);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.card-grid.cols-4,
.resource-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.cols-3,
.pricing-grid,
.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.cols-2,
.content-grid,
.resource-grid,
.demo-grid,
.stack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card,
.content-card,
.article-card,
.resource-category,
.resource-callout,
.stack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  min-width: 0;
  padding: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  gap: 16px;
  min-width: 0;
}

.product-card h3,
.content-card h3,
.article-card h3,
.pricing-card h3,
.quote-panel h3 {
  font-size: var(--type-heading-section);
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
  max-width: 16ch;
  text-wrap: balance;
}

.product-card p,
.content-card p,
.article-card p,
.resource-category p,
.stack-card p {
  margin: 0;
  max-width: var(--measure-copy);
  font-size: var(--type-body-md);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.product-highlights,
.check-list,
.footer-group {
  display: grid;
  gap: 12px;
}

.product-highlights {
  margin-top: auto;
}

.product-highlights span,
.check-list span,
.resource-links a,
.footer-group a,
.step-list li,
.board-list li {
  position: relative;
  display: block;
  min-width: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.resource-links a,
.footer-group a {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.product-highlights span::before,
.check-list span::before,
.resource-links a::before,
.footer-group a::before,
.step-list li::before,
.board-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.product-card footer,
.article-card footer,
.content-card footer,
.resource-category footer {
  margin-top: auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.08fr 1.02fr;
  gap: 0;
}

.story-panel {
  position: relative;
  min-height: 500px;
  padding: 42px;
  border-left: 1px solid var(--line-strong);
  min-width: 0;
}

.story-panel:first-child {
  border-left: 0;
}

.story-panel h3 {
  max-width: 12ch;
  font-size: var(--type-heading-page);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.story-panel p {
  max-width: 24rem;
  font-size: var(--type-body-lg);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.mountain-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.84)),
    var(--mountain-image) center / cover no-repeat;
}

.hero-landscape {
  position: absolute;
  inset: auto 0 0;
  height: 390px;
  pointer-events: none;
  z-index: 0;
}

.hero-landscape::before {
  content: "";
  position: absolute;
  inset: 28px 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 18%, rgba(255, 255, 255, 0.76) 78%, rgba(255, 255, 255, 0.94) 100%);
}

.hero-landscape::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92) 68%, rgba(255, 255, 255, 1) 100%);
}

.hero-ground-glow,
.hero-mist-band,
.hero-ridge {
  position: absolute;
  display: block;
}

.hero-ground-glow {
  left: 36%;
  right: 12%;
  bottom: 76px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(127, 90, 240, 0.14), transparent 68%);
  filter: blur(30px);
  opacity: 0.9;
}

.hero-mist-band {
  left: 6%;
  right: 6%;
  bottom: 92px;
  height: 74px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
  filter: blur(18px);
  opacity: 0.54;
}

.hero-ridge {
  bottom: 0;
  background: var(--mountain-image) center bottom / cover no-repeat;
  filter: drop-shadow(0 26px 40px rgba(17, 24, 39, 0.08));
}

.hero-ridge-back {
  left: -8%;
  width: 52%;
  height: 218px;
  opacity: 0.42;
  transform: scaleX(-1);
  background-position: center 76%;
}

.hero-ridge-mid {
  left: 15%;
  width: 42%;
  height: 304px;
  opacity: 0.92;
  background-position: center bottom;
}

.hero-ridge-front {
  right: -10%;
  width: 58%;
  height: 272px;
  opacity: 0.66;
  background-position: 76% bottom;
}

@media (min-width: 1680px) {
  .hero-grid {
    grid-template-columns: minmax(128px, 176px) 1px minmax(560px, 640px) minmax(560px, 1fr);
    gap: 28px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-title {
    font-size: clamp(2.9rem, 3.35vw, 4.3rem);
  }

  .device-laptop {
    right: 8px;
    width: min(760px, 100%);
  }

  .device-phone {
    left: 22px;
    bottom: 16px;
    width: 182px;
    min-height: 346px;
  }
}

.center-panel {
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
}

.center-panel p {
  max-width: 32rem;
}

.shield-core {
  position: relative;
  width: min(220px, 80%);
  aspect-ratio: 1 / 1.12;
  margin: 42px 0 18px;
  border: 1px solid rgba(27, 36, 51, 0.18);
  clip-path: polygon(50% 0, 96% 18%, 88% 76%, 50% 100%, 12% 76%, 4% 18%);
  background:
    radial-gradient(circle at 50% 25%, rgba(127, 90, 240, 0.18), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(247, 248, 250, 0.98));
  box-shadow:
    0 0 44px rgba(127, 90, 240, 0.1),
    inset 0 0 0 3px rgba(255, 255, 255, 0.44);
}

.shield-core::after {
  content: "";
  position: absolute;
  inset: 18% 24%;
  background: url("/Peak.png") center / contain no-repeat;
  filter: brightness(1.15);
}

.trust-ring {
  width: 100%;
  max-width: 440px;
  height: 88px;
  margin-top: 10px;
  border-top: 1px solid rgba(127, 90, 240, 0.24);
  border-radius: 50%;
  box-shadow: 0 -10px 28px rgba(127, 90, 240, 0.04);
}

.trust-grid,
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.surface-board,
.board-shell,
.resource-board,
.timeline-board {
  border-radius: var(--radius-lg);
}

.surface-board {
  display: grid;
  gap: 18px;
}

.surface-stat-row {
  flex-wrap: wrap;
}

.surface-stat {
  border: 1px solid rgba(27, 36, 51, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.surface-stat h4 {
  font-size: 0.95rem;
}

.surface-stat p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 28px;
}

.quote-panel {
  display: grid;
  gap: 18px;
  padding: 34px;
}

.quote-panel blockquote {
  margin: 0;
  color: var(--text);
  max-width: 18ch;
  font-size: var(--type-heading-section);
  line-height: 1.24;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.quote-panel cite {
  color: rgba(27, 36, 51, 0.52);
  font-style: normal;
}

.stack-card {
  display: grid;
  gap: 12px;
}

.stack-card h3,
.resource-category h3,
.resource-callout h3 {
  margin: 0;
  max-width: 18ch;
  font-size: var(--type-heading-card);
  line-height: 1.18;
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.page-hero-metrics {
  flex-wrap: wrap;
  margin-top: 24px;
}

.metric-band {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.metric-band strong {
  margin: 0;
}

.metric-band span {
  margin: 0;
  font-size: 1.2rem;
}

.board-shell,
.resource-board,
.timeline-board {
  display: grid;
  gap: 16px;
}

.board-header,
.board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.board-header p,
.board-row p,
.board-row span,
.board-metric p {
  margin: 0;
}

.board-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.board-metric {
  padding: 16px;
  border-radius: 12px;
  background: rgba(27, 36, 51, 0.04);
}

.board-list,
.step-list,
.resource-links {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline-board .board-row,
.resource-board .board-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.timeline-board .board-row:last-child,
.resource-board .board-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.board-row strong {
  color: rgba(27, 36, 51, 0.58);
  font-size: 0.78rem;
}

.chart-panel {
  height: 170px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(27, 36, 51, 0.08) 1px, transparent 1px) 0 0 / 18% 100%,
    linear-gradient(rgba(27, 36, 51, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, rgba(127, 90, 240, 0.14), rgba(127, 90, 240, 0.03));
}

.section-slab {
  padding-top: 40px;
}

.demo-grid {
  align-items: start;
}

.demo-step {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.demo-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(127, 90, 240, 0.14);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo-step h3 {
  margin: 16px 0 10px;
  color: var(--text);
  font-size: 1.2rem;
}

.demo-step p {
  margin: 0;
  line-height: 1.62;
}

.pricing-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.7)),
    var(--mountain-image) center bottom / cover no-repeat,
    #ffffff;
}

.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
}

.pricing-card.is-featured {
  border-color: rgba(127, 90, 240, 0.48);
  box-shadow: 0 20px 32px rgba(127, 90, 240, 0.12);
}

.pricing-tag {
  display: inline-flex;
  align-self: center;
  margin: -42px auto 8px;
  padding: 10px 18px;
  border: 1px solid rgba(127, 90, 240, 0.48);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(127, 90, 240, 0.16), rgba(127, 90, 240, 0.08));
  color: var(--accent-hover);
}

.pricing-price {
  font-size: clamp(3rem, 4vw, 4rem);
  line-height: 1;
}

.pricing-billing {
  margin: -10px 0 0;
  color: rgba(27, 36, 51, 0.54);
}

.pricing-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
}

.pricing-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-hover);
}

.resource-category-grid,
.resource-grid {
  align-items: stretch;
}

.article-card,
.resource-callout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-card p,
.resource-callout p {
  margin: 0;
  line-height: 1.66;
}

.article-meta {
  margin-top: auto;
  color: rgba(27, 36, 51, 0.5);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-library-intro {
  border-bottom: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 248, 250, 0.76)),
    rgba(255, 255, 255, 0.94);
}

.resource-library-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(54px, 8vw, 94px) 0 clamp(28px, 4vw, 42px);
}

.resource-library-intro h1,
.resource-document-hero h2,
.resource-doc-heading h2,
.resource-question-block h2 {
  margin: 0;
  color: var(--text);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  text-wrap: balance;
}

.resource-library-intro h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 2rem + 2.25vw, 4.35rem);
}

.resource-library-intro p:not(.eyebrow) {
  max-width: 42rem;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.resource-library-search {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 0 16px 0 20px;
  border: 1px solid rgba(27, 36, 51, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 16px 44px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.resource-library-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
}

.resource-library-search input::placeholder {
  color: rgba(27, 36, 51, 0.56);
}

.resource-library-search kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border: 1px solid rgba(27, 36, 51, 0.1);
  border-radius: 6px;
  background: rgba(27, 36, 51, 0.05);
  color: rgba(27, 36, 51, 0.52);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.resource-search-icon {
  position: relative;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(27, 36, 51, 0.58);
  border-radius: 50%;
}

.resource-search-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(27, 36, 51, 0.58);
  transform: rotate(45deg);
}

.resource-library-section {
  background: rgba(255, 255, 255, 0.84);
}

.resource-library-section .container {
  padding: clamp(34px, 5vw, 58px) 0 clamp(76px, 10vw, 128px);
}

.resource-library-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: clamp(38px, 6vw, 86px);
  align-items: start;
}

.resource-library-sidebar {
  position: sticky;
  top: calc(var(--site-header-height) + 24px);
  display: grid;
  gap: 26px;
  max-height: calc(100vh - var(--site-header-height) - 48px);
  overflow: auto;
  padding-right: 14px;
}

.resource-library-nav {
  display: grid;
  gap: 4px;
}

.resource-library-nav h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 1.32rem;
  line-height: 1.2;
}

.resource-library-nav a,
.resource-library-nav summary {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(27, 36, 51, 0.72);
  font-size: 0.98rem;
  line-height: 1.4;
}

.resource-library-nav a:hover,
.resource-library-nav summary:hover,
.resource-library-nav a[aria-current="page"] {
  background: rgba(127, 90, 240, 0.08);
  color: var(--text);
}

.resource-library-nav details {
  display: grid;
  gap: 2px;
}

.resource-library-nav summary {
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
}

.resource-library-nav summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.resource-library-nav details[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.resource-library-nav details a {
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(27, 36, 51, 0.12);
  border-radius: 0 8px 8px 0;
}

.resource-sidebar-note {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.resource-sidebar-note p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.6;
}

.resource-library-content {
  min-width: 0;
  max-width: 960px;
}

.resource-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: rgba(27, 36, 51, 0.56);
  font-size: var(--type-body-sm);
  font-weight: 700;
}

.resource-breadcrumb a:hover {
  color: var(--text);
}

.resource-document-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding-bottom: clamp(34px, 5vw, 58px);
  border-bottom: 1px solid var(--line-strong);
}

.resource-document-hero h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 1.9rem + 1.4vw, 3.55rem);
}

.resource-document-hero p:not(.resource-tag),
.resource-doc-heading p:not(.resource-tag),
.resource-question-block p:not(.resource-tag) {
  max-width: 44rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.resource-doc-block {
  padding: clamp(42px, 6vw, 72px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--site-header-height) + 24px);
}

.resource-doc-heading {
  margin-bottom: 26px;
}

.resource-doc-heading h2,
.resource-question-block h2 {
  max-width: 18ch;
  font-size: clamp(1.65rem, 1.42rem + 0.9vw, 2.35rem);
}

.resource-doc-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.resource-doc-list-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-doc-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(180px, 0.58fr) minmax(220px, 1fr);
  gap: 18px;
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition:
    background 160ms ease,
    padding 160ms ease,
    color 160ms ease;
}

.resource-doc-list-grid .resource-doc-row {
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 24px 22px;
  border-right: 1px solid var(--line);
}

.resource-doc-list-grid .resource-doc-row:nth-child(2n) {
  border-right: 0;
}

.resource-doc-row:hover {
  padding-left: 14px;
  padding-right: 14px;
  background: rgba(27, 36, 51, 0.035);
}

.resource-doc-list-grid .resource-doc-row:hover {
  padding-left: 28px;
  padding-right: 16px;
}

.resource-doc-kicker {
  color: rgba(27, 36, 51, 0.5);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.resource-doc-title {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.32;
}

.resource-doc-summary {
  color: var(--muted);
  font-size: var(--type-body-sm);
  line-height: 1.62;
  text-wrap: pretty;
}

.resource-reading-path {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-reading-path div {
  min-width: 0;
  padding-top: 18px;
  border-top: 2px solid rgba(127, 90, 240, 0.22);
}

.resource-reading-path span {
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
}

.resource-reading-path p {
  margin: 12px 0 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.44;
  text-wrap: pretty;
}

.resource-question-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-top: clamp(42px, 6vw, 72px);
  padding: 30px 0 0;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--site-header-height) + 24px);
}

@media (max-width: 1100px) {
  .resource-library-layout {
    grid-template-columns: minmax(196px, 230px) minmax(0, 1fr);
    gap: 34px;
  }

  .resource-doc-row {
    grid-template-columns: minmax(110px, 0.34fr) minmax(180px, 0.7fr);
  }

  .resource-doc-summary {
    grid-column: 2;
  }
}

@media (max-width: 920px) {
  .resource-library-intro-grid,
  .resource-library-layout,
  .resource-document-hero,
  .resource-question-block {
    grid-template-columns: 1fr;
  }

  .resource-library-intro-grid {
    align-items: start;
  }

  .resource-library-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .resource-library-nav {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }

  .resource-library-content {
    max-width: none;
  }

  .resource-document-hero .button,
  .resource-question-block .button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .resource-library-intro-grid {
    padding-top: 42px;
  }

  .resource-doc-list-grid,
  .resource-reading-path {
    grid-template-columns: 1fr;
  }

  .resource-doc-row,
  .resource-doc-list-grid .resource-doc-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
    border-right: 0;
  }

  .resource-doc-summary {
    grid-column: auto;
  }

  .resource-doc-row:hover,
  .resource-doc-list-grid .resource-doc-row:hover {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 560px) {
  .resource-library-search {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .resource-library-search kbd {
    display: none;
  }

  .resource-library-nav h2 {
    font-size: 1.18rem;
  }

  .resource-library-intro h1 {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
  }
}

.cta-section {
  background: #ffffff;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) auto;
  align-items: center;
  gap: 28px;
  padding: 30px 36px;
  border: 1px solid rgba(27, 36, 51, 0.1);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(27, 36, 51, 0.035), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 248, 250, 0.96)),
    rgba(255, 255, 255, 0.98);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.cta-band h2 {
  margin: 0;
  color: var(--text);
  max-width: 14ch;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--tracking-display);
  text-wrap: pretty;
}

.cta-band p {
  margin: 12px 0 0;
  max-width: 38rem;
  color: rgba(27, 36, 51, 0.68);
  font-size: 1rem;
  line-height: 1.64;
  text-wrap: pretty;
}

.cta-band .button-row {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  background: #ffffff;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(140px, 0.8fr));
  gap: 28px;
  padding: 42px 0 54px;
  border-top: 1px solid var(--line-strong);
}

.footer-brand-block {
  display: grid;
  gap: 12px;
}

.footer-brand-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-line img {
  width: 32px;
  height: 32px;
}

.footer-copy {
  margin: 0;
  max-width: 26rem;
  font-size: var(--type-body-md);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.footer-group-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: var(--type-body-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.redirect-page {
  min-height: 100vh;
}

.redirect-page .page-main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 83px);
  padding: 40px 0;
}

.redirect-shell {
  width: min(640px, var(--container));
  padding: 40px;
  text-align: center;
}

.redirect-shell h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
}

.redirect-shell p {
  margin: 18px auto 0;
  max-width: 32rem;
  line-height: 1.7;
}

.redirect-shell .button-row {
  justify-content: center;
}

.sign-in-page {
  color-scheme: dark;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #050506 0%, #0c0d10 44%, #050506 100%);
  background-size: 82px 82px, 82px 82px, auto;
  color: rgba(246, 248, 252, 0.96);
}

.sign-in-page .site-shell {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05), transparent 32%),
    linear-gradient(245deg, rgba(127, 90, 240, 0.1), transparent 42%);
}

.sign-in-page .site-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.94), rgba(5, 5, 6, 0.78));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.sign-in-page .brand span,
.sign-in-page .nav-links a:hover,
.sign-in-page .nav-link-button:hover,
.sign-in-page .nav-details summary:hover,
.sign-in-page .nav-link-button[aria-current="page"],
.sign-in-page .nav-details[open] summary {
  color: #ffffff;
}

.sign-in-page .brand img {
  filter:
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 14px rgba(127, 90, 240, 0.18));
}

.sign-in-page .nav-links a,
.sign-in-page .nav-link-button,
.sign-in-page .nav-details summary {
  color: rgba(237, 242, 251, 0.68);
}

.sign-in-page .nav-menu {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 12, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34);
}

.sign-in-page .nav-menu-group + .nav-menu-group,
.has-mobile-nav .sign-in-page .nav-actions {
  border-color: rgba(255, 255, 255, 0.1);
}

.sign-in-page .nav-menu-label,
.sign-in-page .nav-menu-date {
  color: rgba(237, 242, 251, 0.46);
}

.sign-in-page .nav-menu a:hover,
.sign-in-page .nav-menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.sign-in-page .nav-toggle {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 249, 252, 0.9);
}

.sign-in-page .nav-toggle:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.signin-hero {
  min-height: calc(100svh - var(--site-header-height));
  overflow: hidden;
}

.signin-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: var(--container);
  min-height: calc(100svh - var(--site-header-height));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) 0;
}

.signin-shell::before {
  content: "";
  position: absolute;
  top: clamp(36px, 7vw, 92px);
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 72%);
  opacity: 0.72;
}

.signin-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: 34rem;
}

.signin-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  color: rgba(237, 242, 251, 0.68);
  font-size: var(--type-body-sm);
  font-weight: 700;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.signin-back-link::before {
  content: "<-";
  margin-right: 8px;
  color: rgba(151, 177, 255, 0.82);
}

.signin-back-link:hover {
  color: #ffffff;
  transform: translateX(-2px);
}

.signin-copy .eyebrow {
  margin: 0;
  color: rgba(151, 177, 255, 0.82);
}

.signin-copy h1 {
  margin: 0;
  max-width: 10ch;
  color: #ffffff;
  font-size: clamp(3.1rem, 2.32rem + 2.8vw, 5rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.signin-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 28rem;
  color: rgba(237, 242, 251, 0.72);
  font-size: var(--type-body-lg);
  line-height: 1.66;
  text-wrap: pretty;
}

.signin-product-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.signin-product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 148px;
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    rgba(10, 10, 12, 0.88);
  box-shadow:
    inset 4px 0 0 rgba(255, 255, 255, 0.18),
    0 22px 48px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.signin-product-card:hover {
  border-color: rgba(151, 177, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(12, 13, 16, 0.94);
  box-shadow:
    inset 4px 0 0 rgba(151, 177, 255, 0.72),
    0 28px 58px rgba(0, 0, 0, 0.34);
  transform: translateY(-3px);
}

.signin-product-body,
.signin-product-actions {
  min-width: 0;
}

.signin-product-kicker {
  margin: 0 0 8px;
  color: rgba(151, 177, 255, 0.76);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.signin-product-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 1.25rem + 0.55vw, 1.82rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.signin-product-body p:not(.signin-product-kicker) {
  margin: 10px 0 0;
  max-width: 32rem;
  color: rgba(230, 237, 248, 0.68);
  font-size: var(--type-body-sm);
  line-height: 1.56;
  text-wrap: pretty;
}

.signin-product-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.signin-product-actions .button {
  min-width: 118px;
  min-height: 46px;
}

.signin-product-actions p {
  margin: 0;
  color: rgba(230, 237, 248, 0.46);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: right;
}

[data-signin-reveal] {
  animation: signin-rise 680ms cubic-bezier(0.19, 1, 0.22, 1) both;
}

.signin-product-card:nth-child(1) {
  animation-delay: 90ms;
}

.signin-product-card:nth-child(2) {
  animation-delay: 170ms;
}

@keyframes signin-rise {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 24px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 980px) {
  .signin-shell {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .signin-copy {
    max-width: 42rem;
  }

  .signin-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 760px) {
  .signin-shell {
    width: min(calc(100% - 32px), var(--content-max));
    min-height: 0;
    padding: 48px 0 64px;
  }

  .signin-product-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
  }

  .signin-product-actions {
    justify-items: stretch;
  }

  .signin-product-actions .button {
    width: 100%;
  }

  .signin-product-actions p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .signin-copy h1 {
    font-size: clamp(2.65rem, 14vw, 3.35rem);
  }

  .signin-copy p:not(.eyebrow) {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-signin-reveal],
  .signin-product-card:nth-child(1),
  .signin-product-card:nth-child(2) {
    animation: none;
  }

  .signin-product-card:hover,
  .signin-back-link:hover {
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1220px) {
  .hero-grid {
    grid-template-columns: minmax(150px, 210px) 1px minmax(320px, 1fr);
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 368px;
  }

  .hero-stage {
    grid-column: 1 / -1;
  }

  .device-laptop {
    right: 0;
    left: 50%;
    width: min(840px, 100%);
    transform: translateX(-50%);
  }

  .device-phone {
    left: max(0px, calc(50% - 400px));
  }

  .hero-landscape {
    height: 340px;
  }

  .hero-ridge-mid {
    left: 12%;
    width: 46%;
    height: 264px;
  }

  .hero-ridge-front {
    width: 54%;
    height: 236px;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-panel {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .story-panel:first-child {
    border-top: 0;
  }

  .feature-rail-grid,
  .card-grid.cols-4,
  .resource-category-grid,
  .pricing-grid,
  .article-grid,
  .footer-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .site-nav {
    align-items: flex-start;
  }

  .nav-cluster {
    justify-content: flex-start;
  }

  .page-hero-layout,
  .split-layout,
  .card-grid.cols-3,
  .card-grid.cols-2,
  .content-grid,
  .resource-grid,
  .demo-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-layout {
    min-height: 0;
    padding-top: 64px;
    padding-bottom: 260px;
  }

  .feature-rail-grid {
    grid-template-columns: 1fr;
  }

  .feature-item,
  .feature-item:first-child {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .feature-item:first-child {
    border-top: 0;
  }

  .cta-band {
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 26px 24px;
  }

  .cta-band .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .has-mobile-nav .site-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 0;
    padding: 14px 0;
  }

  .has-mobile-nav .brand {
    min-width: 0;
  }

  .has-mobile-nav .nav-toggle {
    display: inline-flex;
  }

  .has-mobile-nav .site-nav:not(.is-menu-open) .nav-cluster {
    display: none;
  }

  .has-mobile-nav .nav-cluster {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 4px 0 2px;
  }

  .has-mobile-nav .nav-links,
  .has-mobile-nav .nav-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .has-mobile-nav .nav-links a,
  .has-mobile-nav .nav-link-button,
  .has-mobile-nav .nav-details summary {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 0 2px;
  }

  .has-mobile-nav .nav-actions {
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
  }

  .has-mobile-nav .nav-actions .nav-link-button,
  .has-mobile-nav .nav-actions .button {
    width: 100%;
    justify-content: center;
  }

  .has-mobile-nav .nav-details {
    width: 100%;
  }

  .has-mobile-nav .nav-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }

  .site-banner-inner {
    padding: 10px 16px 11px;
  }

  .site-banner-copy {
    font-size: 0.88rem;
  }

  .page-hero::before {
    height: 270px;
  }

  .hero-desktop-break {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 52px;
    padding-bottom: 252px;
  }

  .hero-lockup {
    justify-items: start;
  }

  .hero-lockup img {
    width: 150px;
  }

  .hero-divider {
    width: 100%;
    height: 1px;
  }

  .hero-title {
    font-size: clamp(2.6rem, 14vw, 4rem);
  }

  .hero-subhead {
    letter-spacing: 0.16em;
  }

  .hero-stage {
    min-height: 300px;
  }

  .hero-landscape {
    height: 250px;
  }

  .hero-ground-glow {
    left: 24%;
    right: 6%;
    bottom: 58px;
  }

  .hero-mist-band {
    left: 0;
    right: 0;
    bottom: 66px;
  }

  .hero-ridge-back {
    width: 52%;
    height: 132px;
    opacity: 0.28;
  }

  .hero-ridge-mid {
    left: -6%;
    width: 84%;
    height: 176px;
    opacity: 0.62;
  }

  .hero-ridge-front {
    right: -16%;
    width: 82%;
    height: 166px;
    opacity: 0.52;
  }

  .device-laptop {
    top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    width: 100%;
    min-height: 0;
    padding: 18px;
  }

  .device-sidebar {
    display: none;
  }

  .metric-grid,
  .pipeline-grid,
  .stats-grid,
  .trust-grid,
  .board-grid {
    grid-template-columns: 1fr;
  }

  .activity-list {
    display: none;
  }

  .device-phone {
    display: none;
  }

  .section .container,
  .cta-section .container {
    padding: 56px 0;
  }

  .section-header {
    align-items: start;
    flex-direction: column;
  }

  .feature-rail-grid,
  .card-grid.cols-4,
  .card-grid.cols-3,
  .resource-category-grid,
  .pricing-grid,
  .article-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100vw - 28px, 1240px);
  }

  .button {
    width: 100%;
  }

  .nav-actions .button,
  .button-link {
    width: auto;
  }

  .button-row {
    align-items: stretch;
  }

  .home-hero-menu-shell,
  .home-ops-menu-shell,
  .about-system-shell {
    width: 100%;
  }

  .home-hero-menu-item,
  .home-ops-menu-item {
    border-radius: 18px;
  }

  .home-ops-menu-content p,
  .home-ops-detail-copy {
    font-size: 0.96rem;
  }

  .about-system-list {
    grid-template-columns: 1fr;
  }

  .story-panel,
  .content-card,
  .article-card,
  .product-card,
  .pricing-card,
  .quote-panel,
  .resource-category,
  .resource-callout,
  .stack-card,
  .redirect-shell {
    padding: 24px;
  }

  .hero-landscape {
    height: 220px;
  }
}

/* Homepage hero reference composition */

.hero .container {
  width: min(1720px, calc(100vw - 48px));
}

.hero .hero-grid {
  grid-template-columns: minmax(220px, 320px) 1px minmax(560px, 680px) minmax(620px, 1fr);
  gap: clamp(28px, 2.2vw, 40px);
  min-height: 710px;
  padding: 62px 0 286px;
  align-items: center;
}

.hero .hero-lockup {
  justify-items: center;
}

.hero .hero-lockup img {
  width: min(320px, 100%);
  filter: none;
}

.hero .hero-divider {
  height: 320px;
  background: linear-gradient(180deg, rgba(27, 36, 51, 0.1), rgba(27, 36, 51, 0.28), rgba(27, 36, 51, 0.1));
  box-shadow: none;
}

.hero .hero-copy {
  max-width: 680px;
}

.hero .hero-title {
  font-size: clamp(3.55rem, 3.9vw, 4.9rem);
  line-height: 0.92;
}

.hero .hero-rule {
  width: min(210px, 46%);
  margin: 26px 0 0;
}

.hero .hero-subhead {
  margin: 24px 0 0;
  max-width: 24ch;
  font-size: clamp(1.02rem, 1.05vw, 1.28rem);
  line-height: 1.58;
  letter-spacing: 0.22em;
}

.hero .hero-title span {
  display: block;
  white-space: nowrap;
}

.hero .hero-title .muted-line {
  color: rgba(27, 36, 51, 0.5);
}

.hero .hero-stage {
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-left: 24px;
}

.hero .hero-stage::before {
  right: 8%;
  top: 64px;
  width: min(520px, 74%);
  height: 300px;
}

.hero .hero-stage::after {
  left: 16%;
  right: 4%;
  bottom: 14px;
}

.hero .device-laptop {
  position: relative;
  right: 0;
  top: auto;
  width: min(100%, 900px);
  min-height: 0;
  aspect-ratio: 17 / 10;
  padding: 18px 20px 24px;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 18px;
  border-radius: 32px;
}

.hero .device-laptop::before {
  inset: 8px 8px 16px;
  border-radius: 26px 26px 18px 18px;
}

.hero .device-laptop::after {
  left: 8%;
  right: 8%;
  bottom: -18px;
  height: 18px;
}

.hero .device-sidebar img {
  width: 76px;
}

.hero .device-menu {
  gap: 6px;
}

.hero .device-menu span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.hero .hero-nav-dot {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border: 1.4px solid rgba(27, 36, 51, 0.42);
  border-radius: 50%;
}

.hero .device-menu .is-active .hero-nav-dot {
  border-color: var(--text);
  background: var(--text);
  box-shadow: 0 0 0 2px rgba(27, 36, 51, 0.08) inset;
}

.hero .device-main {
  gap: 12px;
}

.hero .device-topbar {
  align-items: flex-start;
}

.hero .device-topbar h2 {
  font-size: clamp(1rem, 1.1vw, 1.8rem);
}

.hero .hero-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .hero-select-chip {
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(27, 36, 51, 0.06);
  color: rgba(27, 36, 51, 0.78);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .hero-bell-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.hero .hero-bell-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 10px;
  height: 11px;
  border: 1.5px solid rgba(255, 167, 214, 0.94);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.hero .hero-bell-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  bottom: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 167, 214, 0.94);
}

.hero .hero-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(27, 36, 51, 0.08);
  color: var(--text);
  font-size: 0.7rem;
  font-weight: 700;
}

.hero .metric-grid {
  gap: 10px;
}

.hero .metric-card {
  min-height: 0;
  padding: 14px;
  border-radius: 12px;
}

.hero .metric-card p {
  font-size: 0.8rem;
}

.hero .metric-card strong {
  margin-top: 8px;
  font-size: clamp(1.2rem, 1.4vw, 1.9rem);
  line-height: 1.05;
}

.hero .metric-card em {
  margin-top: 8px;
  font-size: 0.72rem;
}

.hero .pipeline-panel {
  padding: 16px 18px 18px;
}

.hero .pipeline-panel h3 {
  font-size: 1rem;
}

.hero .hero-pipeline-grid {
  gap: 10px;
  margin-top: 12px;
}

.hero .hero-pipeline-grid span {
  gap: 4px;
}

.hero .hero-pipeline-grid small {
  color: rgba(27, 36, 51, 0.56);
  font-size: 0.72rem;
  line-height: 1.1;
}

.hero .hero-pipeline-grid b {
  font-size: 1.18rem;
}

.hero .pipeline-bars {
  margin-top: 12px;
}

.hero .hero-activity-list {
  padding: 16px 18px;
  gap: 0;
}

.hero .hero-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.hero .hero-activity-header h3 {
  margin: 0;
}

.hero .hero-activity-header a {
  color: var(--sky);
  font-size: 0.82rem;
}

.hero .hero-activity-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.hero .hero-activity-row:first-of-type {
  border-top: 0;
}

.hero .hero-activity-badge {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hero .hero-activity-badge-user {
  background: linear-gradient(180deg, #9c8dff, #595b8b);
}

.hero .hero-activity-badge-deal {
  background: linear-gradient(180deg, #ffb071, #ff6c8f);
}

.hero .hero-activity-badge-new {
  background: linear-gradient(180deg, #b1c0d8, #71819d);
}

.hero .hero-activity-copy p {
  margin: 0;
  color: rgba(27, 36, 51, 0.78);
  font-size: 0.82rem;
  line-height: 1.4;
}

.hero .hero-activity-copy em {
  display: block;
  margin-top: 4px;
  color: rgba(27, 36, 51, 0.56);
  font-style: normal;
  font-size: 0.78rem;
}

.hero .hero-activity-row strong {
  color: rgba(27, 36, 51, 0.62);
  font-size: 0.78rem;
}

.hero .device-phone {
  position: absolute;
  display: block;
  left: clamp(28px, 4vw, 76px);
  bottom: 12px;
  width: clamp(178px, 11vw, 214px);
  min-height: 0;
  aspect-ratio: 9 / 19.5;
  padding: 22px 12px 14px;
  border-radius: 36px;
}

.hero .device-phone::before {
  top: 9px;
  width: 76px;
  height: 15px;
}

.hero .device-phone::after {
  inset: 5px;
  border-radius: 30px;
}

.hero .device-phone-top {
  margin-bottom: 12px;
}

.hero .device-phone-top img {
  width: 44px;
}

.hero .hero-phone-panel {
  padding: 12px 12px 14px;
}

.hero .hero-phone-panel p {
  font-size: 0.8rem;
}

.hero .hero-phone-panel strong {
  font-size: 1.06rem;
  line-height: 1.05;
}

.hero .hero-phone-panel em {
  font-size: 0.68rem;
}

.hero .hero-phone-chart {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.hero .hero-phone-graph {
  position: relative;
  height: 84px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(rgba(27, 36, 51, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(90deg, rgba(27, 36, 51, 0.04) 1px, transparent 1px) 0 0 / 20% 100%,
    linear-gradient(180deg, rgba(154, 99, 255, 0.14), rgba(154, 99, 255, 0.04));
}

.hero .hero-phone-graph::after {
  content: "";
  position: absolute;
  inset: 14px 8px 12px;
  background:
    linear-gradient(135deg, transparent 8%, rgba(154, 99, 255, 0.92) 8% 10%, transparent 10% 24%, rgba(154, 99, 255, 0.92) 24% 26%, transparent 26% 44%, rgba(154, 99, 255, 0.92) 44% 46%, transparent 46% 63%, rgba(154, 99, 255, 0.92) 63% 65%, transparent 65% 78%, rgba(154, 99, 255, 0.92) 78% 80%, transparent 80%);
}

.hero .hero-phone-axis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  color: rgba(27, 36, 51, 0.52);
  font-size: 0.56rem;
  text-align: center;
}

.hero .hero-landscape {
  height: 360px;
}

.hero .hero-ground-glow {
  left: 34%;
  right: 20%;
}

.hero .hero-ridge-mid {
  left: 18%;
  width: 36%;
  height: 290px;
}

.hero .hero-ridge-front {
  right: -6%;
  width: 56%;
  height: 260px;
}

@media (min-width: 1680px) {
  .hero .hero-grid {
    grid-template-columns: minmax(240px, 340px) 1px minmax(600px, 720px) minmax(700px, 1fr);
  }

  .hero .hero-copy {
    max-width: 720px;
  }

  .hero .hero-title {
    font-size: clamp(3.8rem, 4vw, 5.1rem);
  }
}

@media (max-width: 1220px) {
  .hero .container {
    width: min(1360px, calc(100vw - 48px));
  }

  .hero .hero-grid {
    grid-template-columns: minmax(180px, 240px) 1px minmax(340px, 1fr);
    padding-top: 68px;
    padding-bottom: 396px;
  }

  .hero .hero-stage {
    grid-column: 1 / -1;
    min-height: 500px;
  }

  .hero .hero-title span {
    white-space: normal;
  }

  .hero .device-laptop {
    width: min(100%, 860px);
    margin: 0 auto;
  }

  .hero .device-phone {
    left: max(8px, calc(50% - 330px));
    width: clamp(168px, 18vw, 198px);
  }
}

@media (max-width: 760px) {
  .hero .container {
    width: min(100vw - 28px, 1240px);
  }

  .hero .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 42px;
    padding-bottom: 214px;
  }

  .hero .hero-lockup {
    justify-items: start;
  }

  .hero .hero-lockup img {
    width: 140px;
  }

  .hero .hero-divider {
    width: 100%;
    height: 1px;
  }

  .hero .hero-copy {
    max-width: none;
  }

  .hero .hero-title {
    font-size: clamp(3rem, 14vw, 4.7rem);
  }

  .hero .hero-subhead {
    max-width: 26ch;
    font-size: 0.96rem;
    letter-spacing: 0.18em;
  }

  .hero .hero-stage {
    min-height: 420px;
    justify-content: center;
  }

  .hero .device-laptop {
    display: none;
  }

  .hero .device-phone {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(220px, 58vw);
    margin: 0 auto;
  }

  .hero .hero-landscape {
    height: 220px;
  }
}

/* Peak Payroll main landing page */

body.payroll-os-body {
  color-scheme: light;
}

.payroll-os-page {
  position: relative;
  overflow: clip;
  background: transparent;
  color: var(--text);
}

.payroll-os-container {
  width: var(--container);
  margin: 0 auto;
}

.payroll-os-section {
  position: relative;
  border-bottom: 1px solid var(--line);
  padding: var(--section-space) 0;
}

.payroll-os-eyebrow,
.payroll-os-section-kicker,
.payroll-os-mini-label {
  margin: 0;
  color: rgba(27, 36, 51, 0.68);
  font-family: var(--font-mono);
  font-size: var(--type-label);
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.35;
  text-transform: uppercase;
}

.payroll-os-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
}

.payroll-os-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 54% 30%, rgba(127, 90, 240, 0.08), transparent 24%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.28) 38%, rgba(255, 255, 255, 0.74));
  pointer-events: none;
}

.payroll-os-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 340px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.22) 40%, rgba(255, 255, 255, 0.96) 100%),
    var(--mountain-image) center bottom / cover no-repeat;
  opacity: 0.86;
  pointer-events: none;
}

.payroll-os-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  gap: 32px;
  align-items: center;
  min-height: 680px;
  padding: 76px 0 260px;
}

.payroll-os-hero-copy {
  max-width: 620px;
}

.payroll-os-hero-title,
.payroll-os-section-title,
.payroll-os-sequence-heading h2,
.payroll-os-output-heading h2,
.payroll-os-final-cta h2 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

.payroll-os-hero-title {
  margin-top: 18px;
  max-width: var(--measure-heading);
  font-size: var(--type-display-hero);
  line-height: var(--leading-display);
}

.payroll-os-line-mask {
  display: block;
  overflow: hidden;
}

.payroll-os-line-mask > span {
  display: block;
}

.payroll-os-hero-subhead {
  max-width: 38rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.payroll-os-hero-actions,
.payroll-os-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.payroll-os-hero-visual {
  position: relative;
  min-height: 580px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(27, 36, 51, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(27, 36, 51, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.96);
  background-size: 42px 42px, 42px 42px, auto, auto;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transform-style: preserve-3d;
}

.payroll-os-visual-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payroll-os-visual-topline strong {
  color: var(--success);
  font-weight: 500;
}

.payroll-os-flow-canvas {
  position: relative;
  height: 418px;
}

.payroll-os-flow-lines {
  position: absolute;
  inset: 26px 18px 0;
  width: calc(100% - 36px);
  height: 330px;
  overflow: visible;
}

.payroll-os-flow-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2;
}

.payroll-os-flow-path-muted {
  stroke: var(--line-strong);
}

.payroll-os-flow-path-active {
  stroke: var(--accent-hover);
  stroke-dasharray: 14 18;
  animation: payroll-flow-dash 14s linear infinite;
}

.payroll-os-source-card,
.payroll-os-logic-card,
.payroll-os-output-card {
  position: absolute;
  width: min(232px, 32%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.payroll-os-source-card {
  left: 4%;
  top: 28px;
  padding: 20px;
}

.payroll-os-source-card strong {
  display: block;
  margin-top: 18px;
  color: var(--text);
  font-size: 2.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.payroll-os-source-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.payroll-os-doc-lines {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.payroll-os-doc-lines span {
  height: 6px;
  border-radius: 999px;
  background: rgba(27, 36, 51, 0.1);
}

.payroll-os-doc-lines span:nth-child(2) {
  width: 78%;
}

.payroll-os-doc-lines span:nth-child(3) {
  width: 52%;
}

.payroll-os-logic-card {
  left: 36%;
  top: 148px;
  padding: 18px;
}

.payroll-os-logic-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.payroll-os-logic-stack span {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: rgba(27, 36, 51, 0.72);
  background: rgba(27, 36, 51, 0.04);
  font-size: 0.86rem;
}

.payroll-os-output-card {
  right: 4%;
  bottom: 34px;
  padding: 18px;
}

.payroll-os-output-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: rgba(27, 36, 51, 0.68);
  font-size: 0.86rem;
}

.payroll-os-output-row:last-child {
  border-bottom: 0;
}

.payroll-os-output-row strong {
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payroll-os-data-packet {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-hover);
  box-shadow: 0 0 14px rgba(127, 90, 240, 0.22);
  offset-path: path("M82 86 C 215 86, 210 180, 332 180 S 496 274, 624 274");
  offset-rotate: 0deg;
  transform: translate(16px, 26px);
}

.payroll-os-data-packet.is-two {
  background: var(--sky);
  box-shadow: 0 0 14px rgba(68, 118, 217, 0.2);
}

.payroll-os-flow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.payroll-os-flow-strip span {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  padding: 16px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.payroll-os-flow-strip span:first-child {
  border-left: 0;
}

.payroll-os-flow-strip b {
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.payroll-os-category-grid,
.payroll-os-workflow-grid,
.payroll-os-logic-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.payroll-os-section-title,
.payroll-os-sequence-heading h2,
.payroll-os-output-heading h2,
.payroll-os-final-cta h2 {
  max-width: 13ch;
  font-size: var(--type-heading-page);
  line-height: var(--leading-heading);
}

.payroll-os-section-kicker {
  margin-bottom: 22px;
}

.payroll-os-compare {
  display: grid;
  gap: 14px;
}

.payroll-os-compare-panel,
.payroll-os-role-card,
.payroll-os-agent-card,
.payroll-os-output-record {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.payroll-os-compare-panel {
  min-height: 220px;
  padding: clamp(22px, 3vw, 34px);
}

.payroll-os-compare-panel.is-muted {
  opacity: 0.72;
}

.payroll-os-compare-panel span,
.payroll-os-role-card span,
.payroll-os-agent-card span,
.payroll-os-output-record span {
  display: block;
  color: rgba(27, 36, 51, 0.54);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payroll-os-compare-panel strong {
  display: block;
  max-width: 24rem;
  margin-top: 16px;
  color: var(--text);
  font-size: var(--type-heading-section);
  line-height: 1.12;
  text-wrap: balance;
}

.payroll-os-compare-panel p {
  max-width: 34rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--type-body-md);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.payroll-os-sequence-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(247, 248, 250, 0.76)),
    rgba(255, 255, 255, 0.92);
}

.payroll-os-sequence-heading {
  max-width: 880px;
  margin-bottom: clamp(36px, 6vw, 74px);
}

.payroll-os-sequence-heading h2 {
  max-width: 14ch;
  margin-top: 16px;
}

.payroll-os-sequence-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: start;
}

.payroll-os-sequence-visual {
  position: sticky;
  top: calc(var(--site-header-height) + 28px);
}

.payroll-os-sequence-screen {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(90deg, rgba(27, 36, 51, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(27, 36, 51, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.96);
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.payroll-os-screen-header,
.payroll-os-screen-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--muted-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.payroll-os-screen-header {
  border-bottom: 1px solid var(--line);
}

.payroll-os-screen-header strong {
  color: var(--accent-hover);
  font-weight: 500;
}

.payroll-os-screen-body {
  min-height: 360px;
  padding: clamp(22px, 3vw, 36px);
}

.payroll-os-screen-rows {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.payroll-os-screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(27, 36, 51, 0.04);
}

.payroll-os-screen-row span {
  color: rgba(27, 36, 51, 0.62);
}

.payroll-os-screen-row strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.payroll-os-screen-row.tone-warm strong {
  color: var(--accent-hover);
}

.payroll-os-screen-row.tone-mint strong {
  color: var(--success);
}

.payroll-os-screen-row.tone-steel strong {
  color: var(--sky);
}

.payroll-os-screen-footer {
  position: relative;
  display: block;
  border-top: 1px solid var(--line);
}

.payroll-os-screen-footer span {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--sky), var(--success));
  transform: scaleX(0);
  transform-origin: left center;
}

.payroll-os-screen-footer p {
  margin: 0;
  color: rgba(27, 36, 51, 0.54);
}

.payroll-os-sequence-list {
  display: grid;
  gap: 0;
}

.payroll-os-sequence-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 28px;
  min-height: 260px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  transition:
    opacity 180ms ease,
    color 180ms ease;
}

.payroll-os-sequence-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.payroll-os-sequence-list article > span {
  color: rgba(27, 36, 51, 0.42);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
}

.payroll-os-sequence-list h3 {
  max-width: 18ch;
  margin: 0;
  color: rgba(27, 36, 51, 0.72);
  font-size: var(--type-heading-page);
  line-height: var(--leading-heading);
  letter-spacing: 0;
  text-wrap: balance;
  transition: color 180ms ease;
}

.payroll-os-sequence-list p {
  max-width: 36rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.payroll-os-sequence-list article.is-active > span,
.payroll-os-sequence-list article.is-active h3 {
  color: var(--text);
}

.payroll-os-operator-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.payroll-os-role-card,
.payroll-os-agent-card {
  display: grid;
  align-content: space-between;
  min-height: 172px;
  padding: 24px;
}

.payroll-os-role-card.is-primary {
  border-color: rgba(127, 90, 240, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.92)),
    var(--accent-soft);
}

.payroll-os-role-card strong,
.payroll-os-agent-card strong {
  display: block;
  margin-top: 28px;
  color: var(--text);
  font-size: var(--type-heading-card);
  line-height: 1.16;
  text-wrap: balance;
}

.payroll-os-agent-card {
  grid-column: 1 / -1;
  min-height: 0;
}

.payroll-os-agent-card p {
  max-width: 42rem;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: var(--leading-copy);
}

.payroll-os-logic-copy p {
  max-width: 39rem;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.payroll-os-rule-ledger {
  border-top: 1px solid var(--line);
}

.payroll-os-rule-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.payroll-os-rule-row span {
  color: var(--accent-hover);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.payroll-os-rule-row strong {
  color: var(--text);
  font-size: var(--type-heading-card);
  line-height: 1.2;
}

.payroll-os-output-heading {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.payroll-os-output-heading h2 {
  max-width: 15ch;
}

.payroll-os-output-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
}

.payroll-os-output-record {
  display: grid;
  align-content: start;
  min-height: 300px;
  padding: 24px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.92);
}

.payroll-os-output-record:first-child {
  border-left: 0;
}

.payroll-os-output-record h3 {
  margin: 44px 0 0;
  color: var(--text);
  font-size: var(--type-heading-section);
  line-height: 1.06;
  letter-spacing: 0;
}

.payroll-os-output-record p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: var(--leading-copy);
  text-wrap: pretty;
}

.payroll-os-final-cta {
  border-bottom: 1px solid var(--line);
  padding: var(--section-space) 0;
  background: #ffffff;
}

.payroll-os-final-cta h2 {
  max-width: 13ch;
  margin-top: 18px;
}

.payroll-os-final-actions {
  margin-top: 0;
}

@keyframes payroll-flow-dash {
  to {
    stroke-dashoffset: -220;
  }
}

@media (max-width: 1220px) {
  .payroll-os-hero-grid,
  .payroll-os-category-grid,
  .payroll-os-workflow-grid,
  .payroll-os-logic-grid {
    grid-template-columns: 1fr;
  }

  .payroll-os-hero-copy {
    max-width: 860px;
  }

  .payroll-os-hero-title {
    max-width: 13ch;
  }

  .payroll-os-hero-visual {
    min-height: 540px;
  }

  .payroll-os-output-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payroll-os-output-record:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .payroll-os-output-record:nth-child(5) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .payroll-os-hero {
    min-height: 0;
  }

  .payroll-os-section-title,
  .payroll-os-sequence-heading h2,
  .payroll-os-output-heading h2,
  .payroll-os-final-cta h2 {
    max-width: 14ch;
  }

  .payroll-os-hero-grid {
    gap: 28px;
  }

  .payroll-os-hero-visual {
    min-height: 430px;
  }

  .payroll-os-flow-canvas {
    height: 318px;
  }

  .payroll-os-flow-lines,
  .payroll-os-data-packet {
    display: none;
  }

  .payroll-os-source-card,
  .payroll-os-logic-card,
  .payroll-os-output-card {
    position: static;
    width: auto;
  }

  .payroll-os-flow-canvas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    padding: 16px;
  }

  .payroll-os-flow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .payroll-os-flow-strip span:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .payroll-os-flow-strip span:nth-child(n + 5) {
    border-top: 1px solid var(--line);
  }

  .payroll-os-sequence-layout {
    grid-template-columns: 1fr;
  }

  .payroll-os-sequence-visual {
    position: static;
  }

  .payroll-os-sequence-list article {
    min-height: 0;
  }

  .payroll-os-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payroll-os-output-record,
  .payroll-os-output-record:nth-child(4),
  .payroll-os-output-record:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .payroll-os-output-record:nth-child(odd) {
    border-left: 0;
  }

  .payroll-os-output-record:first-child,
  .payroll-os-output-record:nth-child(2) {
    border-top: 0;
  }
}

@media (max-width: 760px) {
  .payroll-os-container {
    width: min(100vw - 28px, 1240px);
  }

  .payroll-os-hero {
    padding-top: 34px;
    padding-bottom: 40px;
  }

  .payroll-os-hero-title {
    max-width: 11ch;
  }

  .payroll-os-hero-subhead {
    margin-top: 20px;
    line-height: 1.58;
  }

  .payroll-os-hero-actions,
  .payroll-os-final-actions {
    align-items: stretch;
    margin-top: 22px;
  }

  .payroll-os-hero-visual {
    min-height: 0;
  }

  .payroll-os-visual-topline {
    padding: 14px;
  }

  .payroll-os-flow-canvas {
    grid-template-columns: 1fr;
    height: auto;
  }

  .payroll-os-source-card strong {
    font-size: 1.85rem;
  }

  .payroll-os-flow-strip {
    grid-template-columns: 1fr;
  }

  .payroll-os-flow-strip span,
  .payroll-os-flow-strip span:nth-child(4),
  .payroll-os-flow-strip span:nth-child(n + 5) {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .payroll-os-flow-strip span:first-child {
    border-top: 0;
  }

  .payroll-os-section {
    padding: 58px 0;
  }

  .payroll-os-operator-board,
  .payroll-os-output-grid {
    grid-template-columns: 1fr;
  }

  .payroll-os-role-card,
  .payroll-os-agent-card {
    min-height: 0;
  }

  .payroll-os-sequence-list article,
  .payroll-os-rule-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .payroll-os-screen-body {
    min-height: 0;
  }

  .payroll-os-screen-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px;
  }

  .payroll-os-output-record,
  .payroll-os-output-record:first-child,
  .payroll-os-output-record:nth-child(2),
  .payroll-os-output-record:nth-child(odd) {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .payroll-os-output-record:first-child {
    border-top: 0;
  }

  .payroll-os-output-record h3 {
    margin-top: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .payroll-os-flow-path-active {
    animation: none;
  }

  .payroll-os-data-packet {
    display: none;
  }

  .payroll-os-body *,
  .payroll-os-body *::before,
  .payroll-os-body *::after {
    scroll-behavior: auto !important;
  }
}

/* Homepage hero rebuild */

.home-hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line-strong);
}

.home-hero-shell {
  position: relative;
  min-height: 0;
  padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 42px);
  background: #ffffff;
  isolation: isolate;
}

.home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(270px, 0.58fr);
  gap: clamp(24px, 3.4vw, 46px);
  align-items: start;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.home-hero-copy {
  display: grid;
  gap: clamp(16px, 1.9vw, 26px);
  align-content: center;
  max-width: 37rem;
  min-width: 0;
}

.home-hero-title {
  margin: 0;
  color: var(--text);
  max-width: 11ch;
  font-size: calc(var(--type-display-hero) * 0.92);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.home-hero-title span {
  display: block;
  white-space: nowrap;
}

.home-hero-title .muted-line {
  color: rgba(27, 36, 51, 0.5);
}

.home-hero-rule {
  width: clamp(10rem, 13vw, 13rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(27, 36, 51, 0.42),
    rgba(27, 36, 51, 0.12),
    transparent
  );
}

.home-hero-subhead {
  margin: 0;
  max-width: 24ch;
  color: rgba(27, 36, 51, 0.8);
  font-family: var(--font-mono);
  font-size: var(--type-body-sm);
  line-height: 1.46;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-wrap: balance;
}

.home-hero-subhead span {
  display: block;
  white-space: nowrap;
}

.home-hero-menu-card {
  display: flex;
  justify-content: flex-end;
}

.home-hero-menu-shell {
  position: relative;
  width: min(100%, 25.5rem);
  padding: 14px 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, #101010 0%, #050505 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.home-hero-menu-label {
  display: inline-flex;
  margin: 0 0 8px 2px;
  padding: 6px 13px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.home-hero-menu-list {
  display: grid;
  gap: 5px;
}

.home-hero-menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  width: 100%;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: rgba(232, 239, 252, 0.88);
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
  appearance: none;
}

.home-hero-menu-item.is-active {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 4px 0 0 rgba(255, 255, 255, 0.84),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.home-hero-menu-item span:last-child {
  font-size: 0.9rem;
  font-weight: 600;
}

.home-hero-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.home-hero-menu-item:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.home-hero-menu-item:active {
  transform: scale(0.96);
}

.home-hero-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-hero-menu-item.is-active .home-hero-menu-icon {
  background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.18);
}

.home-hero-menu-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(207, 220, 241, 0.92);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.home-hero-menu-item.is-active .home-hero-menu-icon svg {
  stroke: rgba(236, 247, 255, 0.96);
}

.home-hero-menu-popover {
  margin-top: 9px;
  padding: 10px 12px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.92), rgba(4, 4, 4, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.home-hero-menu-popover-title {
  margin: 0;
  color: rgba(244, 248, 255, 0.96);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.home-hero-menu-popover-copy {
  margin: 4px 0 0;
  color: rgba(201, 212, 228, 0.82);
  font-size: 0.76rem;
  line-height: 1.35;
}

.demo-preview-section .container {
  padding-top: 32px;
}

.demo-preview-header {
  margin-bottom: 24px;
}

.demo-preview-header h2 {
  max-width: none;
}

.demo-preview-frame {
  min-height: clamp(320px, 48vw, 720px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-ops-menu-section {
  padding: 12px 0 28px;
  background: #ffffff;
}

.home-ops-menu-grid {
  display: grid;
  grid-template-columns: minmax(280px, 25.5rem) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}

.home-ops-menu-card {
  display: flex;
  justify-content: flex-start;
}

.home-ops-menu-shell {
  width: min(100%, 25.5rem);
  padding: 18px 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, #101010 0%, #050505 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
}

.home-ops-menu-group + .home-ops-menu-group {
  margin-top: 22px;
}

.home-ops-menu-group .home-hero-menu-label {
  margin-bottom: 10px;
}

.home-ops-menu-list {
  display: grid;
  gap: 7px;
}

.home-ops-menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 52px;
  width: 100%;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: transparent;
  color: rgba(232, 239, 252, 0.88);
  text-align: left;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
  appearance: none;
}

.home-ops-menu-item span:last-child {
  font-size: 0.98rem;
  font-weight: 600;
}

.home-ops-menu-item:hover {
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
}

.home-ops-menu-item:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.12),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.home-ops-menu-item:active {
  transform: scale(0.96);
}

.home-ops-menu-item.is-active {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  box-shadow:
    inset 4px 0 0 rgba(255, 255, 255, 0.84),
    0 10px 24px rgba(0, 0, 0, 0.24);
  opacity: 1;
}

.home-ops-menu-item:not(.is-active) {
  opacity: 0.88;
}

.home-ops-menu-item.is-active .home-hero-menu-icon {
  background: radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.18);
}

.home-ops-menu-item.is-active .home-hero-menu-icon svg {
  stroke: rgba(236, 247, 255, 0.96);
}

.home-ops-menu-content {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.home-ops-menu-content h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  white-space: nowrap;
}

.home-ops-menu-content p {
  margin: 14px 0 0;
  max-width: 36rem;
  color: rgba(27, 36, 51, 0.74);
  font-size: 1rem;
  line-height: 1.65;
}

.home-ops-detail-card {
  flex: 1 1 auto;
  min-height: 250px;
  margin-top: 22px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 250, 0.92)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-ops-detail-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}

.home-ops-detail-copy {
  margin: 14px 0 0;
  max-width: 34rem;
  color: rgba(27, 36, 51, 0.74);
  font-size: 1rem;
  line-height: 1.7;
}

.home-ops-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.home-ops-detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(27, 36, 51, 0.1);
  border-radius: 999px;
  background: rgba(27, 36, 51, 0.03);
  color: rgba(27, 36, 51, 0.78);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-section .container {
  padding: var(--section-space) 0;
}

.story-section-heading {
  margin-bottom: 26px;
}

.story-section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 1.7rem + 1.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}

.story-rail {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 30px;
  align-items: stretch;
}

.story-intro-card,
.story-system-card {
  min-width: 0;
  border-radius: 28px;
}

.story-intro-card {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 34px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #111111 0%, #040404 100%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.story-copy-block {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.story-copy-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.story-copy-block .eyebrow,
.story-system-card .eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-intro-card .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.story-intro-card h3,
.story-system-card h3 {
  margin: 0;
  font-size: clamp(2rem, 1.45rem + 1.45vw, 3.2rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: var(--tracking-display);
}

.story-intro-card h3 {
  color: rgba(255, 255, 255, 0.96);
  max-width: 9.5ch;
}

.story-intro-card p {
  margin: 14px 0 0;
  max-width: 31rem;
  color: rgba(228, 235, 245, 0.76);
  font-size: 1rem;
  line-height: 1.68;
}

.story-system-card {
  position: relative;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(27, 36, 51, 0.03), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.94)),
    rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.story-system-card .eyebrow {
  color: rgba(27, 36, 51, 0.46);
}

.story-system-card h3 {
  max-width: 10.5ch;
  color: var(--text);
}

.story-system-copy {
  margin: 18px 0 0;
  max-width: 34rem;
  color: rgba(27, 36, 51, 0.7);
  font-size: 1.08rem;
  line-height: 1.74;
}

.story-system-points {
  display: grid;
  gap: 0;
  margin-top: 34px;
  padding-top: 6px;
}

.story-system-point {
  display: grid;
  grid-template-columns: minmax(170px, 200px) minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(27, 36, 51, 0.08);
}

.story-system-point:first-child {
  border-top: 1px solid rgba(27, 36, 51, 0.1);
}

.story-system-point h4 {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.story-system-point p {
  margin: 0;
  color: rgba(27, 36, 51, 0.68);
  font-size: 1rem;
  line-height: 1.68;
}

/* Homepage motion test bed */

.home-hero-shell::before,
.home-hero-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.home-hero-shell::before {
  background:
    linear-gradient(rgba(27, 36, 51, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 36, 51, 0.035) 1px, transparent 1px);
  background-position:
    var(--home-grid-x, 0) var(--home-grid-y, 0),
    var(--home-grid-x, 0) var(--home-grid-y, 0);
  background-size: 78px 78px;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
}

.home-hero-shell::after {
  background: linear-gradient(115deg, transparent 0%, rgba(27, 36, 51, 0.035) 42%, transparent 70%);
  opacity: 0.62;
  transform: translate3d(var(--home-ambient-x, 0), var(--home-ambient-y, 0), 0);
}

.home-motion-ready .home-hero-shell::before {
  animation: home-grid-drift 24s linear infinite;
}

.home-motion-ready .home-hero-shell::after {
  animation: home-ambient-drift 18s var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1)) infinite alternate;
}

.home-motion-ready .home-hero [data-hero-line],
.home-motion-ready .home-hero [data-hero-reveal] {
  opacity: 0;
  transition:
    opacity 820ms var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1)),
    transform 920ms var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1)),
    filter 920ms var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1));
  transition-delay: var(--home-hero-delay, 0ms);
  will-change: opacity, transform, filter;
}

.home-motion-ready .home-hero [data-hero-line] {
  display: block;
  filter: blur(8px);
  transform: translate3d(0, 34px, 0);
}

.home-motion-ready .home-hero [data-hero-reveal] {
  --home-hero-y: 22px;
  --home-parallax-y: 0px;
  filter: blur(4px);
  transform: translate3d(0, calc(var(--home-hero-y) + var(--home-parallax-y)), 0);
}

.home-motion-ready .home-hero.is-mounted [data-hero-line] {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.home-motion-ready .home-hero.is-mounted [data-hero-reveal] {
  --home-hero-y: 0px;
  opacity: 1;
  filter: blur(0);
}

.home-motion-ready [data-home-reveal] {
  --home-reveal-y: 24px;
  --home-parallax-y: 0px;
  opacity: 0;
  filter: blur(3px);
  transform: translate3d(0, calc(var(--home-reveal-y) + var(--home-parallax-y)), 0);
  transition:
    opacity var(--home-reveal-duration, 780ms) var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1)),
    transform var(--home-reveal-duration, 780ms) var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1)),
    filter var(--home-reveal-duration, 780ms) var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1));
  transition-delay: var(--home-reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.home-motion-ready [data-home-reveal].is-visible {
  --home-reveal-y: 0px;
  opacity: 1;
  filter: blur(0);
}

.home-page .home-hero-menu-shell,
.home-page .home-ops-menu-shell,
.home-page .demo-preview-frame,
.home-page .story-system-card,
.home-page .story-intro-card,
.home-page .quote-panel,
.home-page .stack-card,
.home-page .cta-band {
  will-change: transform;
}

.home-motion-ready .home-hero-menu-shell,
.home-motion-ready .home-ops-menu-shell {
  animation: home-panel-float 8s var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1)) infinite alternate;
}

.home-page .product-card,
.home-page .stack-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 220ms var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1)),
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.home-page .product-card::before,
.home-page .stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(127, 90, 240, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.home-page .product-card > *,
.home-page .stack-card > * {
  position: relative;
  z-index: 1;
}

.home-page .product-card:hover,
.home-page .stack-card:hover {
  border-color: rgba(127, 90, 240, 0.24);
  box-shadow:
    0 22px 48px rgba(17, 24, 39, 0.08),
    0 0 0 1px rgba(127, 90, 240, 0.08);
  transform: translate3d(0, -4px, 0);
}

.home-page .product-card:hover::before,
.home-page .stack-card:hover::before {
  opacity: 1;
}

.home-page .product-card .surface-label,
.home-page .product-highlights span {
  transition:
    color 180ms ease,
    transform 220ms var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1));
}

.home-page .product-card:hover .surface-label {
  color: rgba(101, 69, 216, 0.86);
}

.home-page .product-card:hover .product-highlights span {
  color: rgba(27, 36, 51, 0.8);
  transform: translate3d(4px, 0, 0);
}

.home-page .product-card:hover .product-highlights span:nth-child(2) {
  transform: translate3d(7px, 0, 0);
}

.home-page .product-card:hover .product-highlights span:nth-child(3) {
  transform: translate3d(5px, 0, 0);
}

.home-page .home-hero-menu-item:hover,
.home-page .home-ops-menu-item:hover {
  transform: translate3d(2px, 0, 0);
}

.home-page .button[data-home-magnetic] {
  transform: translate3d(var(--home-magnetic-x, 0px), var(--home-magnetic-y, 0px), 0);
  transition:
    transform 180ms var(--home-motion-ease, cubic-bezier(0.19, 1, 0.22, 1)),
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.home-page .button[data-home-magnetic]:hover {
  transform: translate3d(var(--home-magnetic-x, 0px), var(--home-magnetic-y, 0px), 0);
}

.home-page .story-system-card {
  align-self: start;
}

@media (min-width: 981px) {
  .home-page .story-system-card {
    position: sticky;
    top: calc(var(--site-header-height) + 28px);
  }
}

.site-cursor {
  position: fixed;
  inset: 0;
  z-index: 160;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.site-cursor.is-visible {
  opacity: 1;
}

.site-cursor.is-hidden {
  opacity: 0;
}

.site-cursor-chevron,
.site-cursor-label {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.site-cursor-chevron {
  width: 32px;
  height: 28px;
  overflow: visible;
  fill: none;
  stroke: rgba(27, 36, 51, 0.88);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 10px 18px rgba(127, 90, 240, 0.16));
  transform: translate3d(
      calc(var(--cursor-x, -100px) - 16px),
      calc(var(--cursor-y, -100px) - 7px),
      0
    )
    scale(var(--cursor-chevron-scale, 1));
  transform-origin: 50% 25%;
  transition:
    stroke 180ms ease,
    filter 180ms ease,
    transform 80ms linear;
}

.site-cursor.is-interactive .site-cursor-chevron {
  stroke: rgba(101, 69, 216, 0.92);
  filter: drop-shadow(0 14px 22px rgba(127, 90, 240, 0.24));
  transform: translate3d(
      calc(var(--cursor-x, -100px) - 16px),
      calc(var(--cursor-y, -100px) - 7px),
      0
    )
    scale(1.18);
}

.site-cursor.has-label .site-cursor-chevron {
  stroke: rgba(101, 69, 216, 0.94);
  transform: translate3d(
      calc(var(--cursor-x, -100px) - 16px),
      calc(var(--cursor-y, -100px) - 7px),
      0
    )
    scale(1.08);
}

.site-cursor.has-label.is-interactive .site-cursor-chevron {
  transform: translate3d(
      calc(var(--cursor-x, -100px) - 16px),
      calc(var(--cursor-y, -100px) - 7px),
      0
    )
    scale(1.18);
}

.site-cursor:not(.is-visible) .site-cursor-chevron {
  transform: translate3d(
      calc(var(--cursor-x, -100px) - 16px),
      calc(var(--cursor-y, -100px) - 7px),
      0
    )
    scale(0.82);
}

.site-cursor:not(.is-visible) .site-cursor-label {
  opacity: 0;
}

.site-cursor-label {
  min-width: 0;
  padding: 5px 8px;
  border: 1px solid rgba(27, 36, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: rgba(27, 36, 51, 0.82);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
  transform: translate3d(
    calc(var(--cursor-x, -100px) + 18px),
    calc(var(--cursor-y, -100px) - 28px),
    0
  );
  transition: opacity 140ms ease;
  white-space: nowrap;
}

.site-cursor.has-label .site-cursor-label {
  opacity: 1;
}

.site-cursor-ready a,
.site-cursor-ready button,
.site-cursor-ready summary,
.site-cursor-ready [role="button"],
.site-cursor-ready .product-card,
.site-cursor-ready .stack-card,
.site-cursor-ready .content-card,
.site-cursor-ready .article-card,
.site-cursor-ready .pricing-card,
.site-cursor-ready .resource-category,
.site-cursor-ready .resource-callout,
.site-cursor-ready .cta-band {
  cursor: none;
}

@keyframes home-grid-drift {
  from {
    background-position:
      0 0,
      0 0;
  }

  to {
    background-position:
      78px 78px,
      78px 78px;
  }
}

@keyframes home-ambient-drift {
  from {
    transform: translate3d(-10px, -4px, 0);
  }

  to {
    transform: translate3d(12px, 8px, 0);
  }
}

@keyframes home-panel-float {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(0, -6px, 0);
  }
}

@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  .home-motion-ready .home-hero-shell::before,
  .home-motion-ready .home-hero-shell::after,
  .home-motion-ready .home-hero-menu-shell,
  .home-motion-ready .home-ops-menu-shell {
    animation: none;
  }

  .home-motion-ready .home-hero [data-hero-line],
  .home-motion-ready .home-hero [data-hero-reveal],
  .home-motion-ready [data-home-reveal] {
    opacity: 1;
    filter: none;
    transform: translate3d(0, var(--home-parallax-y, 0px), 0);
    transition: none;
  }

  .home-page .product-card,
  .home-page .stack-card,
  .home-page .button[data-home-magnetic],
  .home-page .product-highlights span {
    transition: none;
  }

  .home-page .product-card:hover,
  .home-page .stack-card:hover,
  .home-page .home-hero-menu-item:hover,
  .home-page .home-ops-menu-item:hover,
  .home-page .button[data-home-magnetic],
  .home-page .button[data-home-magnetic]:hover {
    transform: none;
  }

  .site-cursor {
    display: none;
  }
}

/* About page rebuild */

.about-hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line-strong);
  background: #ffffff;
}

.about-hero-shell {
  padding: clamp(72px, 10vw, 126px) clamp(18px, 4vw, 42px);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  width: min(100%, 78rem);
  margin: 0 auto;
}

.about-hero-copy {
  display: grid;
  gap: clamp(18px, 2vw, 26px);
  max-width: 50rem;
  min-width: 0;
}

.about-hero-copy .eyebrow {
  margin: 0;
}

.about-hero-title {
  margin: 0;
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(3.15rem, 4vw, 5.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.about-hero-subhead {
  margin: 0;
  max-width: 38rem;
  color: rgba(27, 36, 51, 0.76);
  font-size: clamp(1.02rem, 0.96rem + 0.28vw, 1.18rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.about-toggle-visual {
  position: relative;
  min-height: clamp(360px, 36vw, 450px);
  isolation: isolate;
}

.about-toggle-stack {
  position: relative;
  z-index: 2;
  height: clamp(340px, 31vw, 420px);
  overflow: visible;
  border-radius: 0;
  padding: 0;
  mask-image: none;
}

.about-toggle-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 66px;
  width: min(100%, 34rem);
  padding: 0 20px 0 18px;
  border: 1px solid rgba(27, 36, 51, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    rgba(255, 255, 255, 0.94);
  color: rgba(27, 36, 51, 0.72);
  box-shadow:
    0 16px 34px rgba(17, 24, 39, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  position: absolute;
  left: 0;
  top: 50%;
  opacity: 0;
  filter: blur(1.6px);
  transform-origin: center center;
  transform: translate3d(32px, -50%, 0) scale(0.92);
  transition:
    transform 1180ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 980ms cubic-bezier(0.2, 0, 0, 1),
    filter 1050ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 1180ms cubic-bezier(0.19, 1, 0.22, 1),
    border-color 980ms cubic-bezier(0.2, 0, 0, 1),
    background-color 980ms cubic-bezier(0.2, 0, 0, 1),
    color 760ms cubic-bezier(0.2, 0, 0, 1);
  will-change: transform, opacity, filter;
}

.about-toggle-row > * {
  position: relative;
  z-index: 2;
}

.about-toggle-row::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 21px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.7), transparent 34%, rgba(127, 90, 240, 0.05)),
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.56), transparent 38%);
  opacity: 0.74;
  pointer-events: none;
  transition:
    opacity 960ms cubic-bezier(0.2, 0, 0, 1),
    background 960ms cubic-bezier(0.2, 0, 0, 1);
}

.about-toggle-row::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 22px;
  background: transparent;
  box-shadow:
    0 18px 46px rgba(104, 89, 255, 0.2),
    0 0 0 8px rgba(104, 89, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1120ms cubic-bezier(0.2, 0, 0, 1);
}

.about-toggle-row span:nth-child(2) {
  overflow: hidden;
  color: currentColor;
  font-size: clamp(0.94rem, 0.9rem + 0.28vw, 1.12rem);
  font-weight: 800;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.about-toggle-switch {
  position: relative;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background-color: rgba(27, 36, 51, 0.13);
  box-shadow:
    inset 0 1px 3px rgba(17, 24, 39, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.8);
  transition:
    background-color 360ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 360ms cubic-bezier(0.2, 0, 0, 1);
}

.about-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 2px 8px rgba(17, 24, 39, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 360ms cubic-bezier(0.2, 0, 0, 1);
}

.about-toggle-switch.is-on {
  background-color: rgba(35, 128, 90, 0.42);
  box-shadow:
    0 7px 16px rgba(35, 128, 90, 0.12),
    inset 0 1px 3px rgba(18, 91, 61, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.74);
}

.about-toggle-switch.is-on::after {
  transform: translateX(20px);
}

.about-toggle-row.is-active {
  z-index: 5;
  opacity: 1;
  border-color: rgba(27, 36, 51, 0.1);
  color: rgba(27, 36, 51, 0.94);
  filter: blur(0);
  transform: translate3d(-14px, -50%, 0) scale(1.035);
  box-shadow:
    0 28px 58px rgba(17, 24, 39, 0.12),
    0 1px 0 rgba(255, 255, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9);
}

.about-toggle-row.is-active.is-activated {
  border-color: rgba(104, 89, 255, 0.2);
  transform: translate3d(-18px, -50%, 0) scale(1.065);
  box-shadow:
    0 38px 78px rgba(17, 24, 39, 0.15),
    0 1px 0 rgba(255, 255, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.9);
}

.about-toggle-row.is-active::before {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.9), transparent 42%, rgba(255, 255, 255, 0.24)),
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.62), transparent 42%);
  opacity: 0.82;
}

.about-toggle-row.is-active.is-activated::before {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), transparent 42%, rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 16% 50%, rgba(255, 255, 255, 0.7), transparent 44%);
}

.about-toggle-row.is-active.is-activated::after {
  opacity: 1;
}

.about-toggle-row.is-prev.is-activated::after {
  opacity: 0.32;
}

.about-toggle-row.is-active span:nth-child(2) {
  color: var(--text);
}

.about-toggle-row.is-active .about-toggle-switch.is-on {
  background-color: rgba(35, 128, 90, 0.58);
  box-shadow:
    0 10px 22px rgba(35, 128, 90, 0.2),
    inset 0 1px 3px rgba(18, 91, 61, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.75);
}

.about-toggle-row.is-active .about-toggle-switch.is-on::after {
  box-shadow:
    0 5px 14px rgba(18, 91, 61, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.about-toggle-row.is-prev {
  z-index: 4;
  opacity: 0.44;
  filter: blur(0.55px);
  transform: translate3d(18px, calc(-50% - 84px), 0) scale(0.95);
}

.about-toggle-row.is-next {
  z-index: 4;
  opacity: 0.44;
  filter: blur(0.55px);
  transform: translate3d(18px, calc(-50% + 84px), 0) scale(0.95);
}

.about-toggle-row.is-far-prev {
  z-index: 3;
  opacity: 0.12;
  filter: blur(1.8px);
  transform: translate3d(34px, calc(-50% - 158px), 0) scale(0.9);
}

.about-toggle-row.is-far-next {
  z-index: 3;
  opacity: 0.12;
  filter: blur(1.8px);
  transform: translate3d(34px, calc(-50% + 158px), 0) scale(0.9);
}

.about-toggle-row.is-hidden {
  z-index: 1;
  opacity: 0;
  filter: blur(2.8px);
  pointer-events: none;
  transform: translate3d(42px, calc(-50% + 214px), 0) scale(0.88);
}

@media (prefers-reduced-motion: reduce) {
  .about-toggle-switch,
  .about-toggle-switch::after {
    transition: none;
  }

  .about-toggle-stack {
    display: grid;
    gap: 18px;
    height: auto;
    overflow: visible;
    mask-image: none;
  }

  .about-toggle-row {
    position: relative;
    left: auto;
    top: auto;
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.about-mission-section,
.about-ecosystem-section {
  border-bottom: 1px solid var(--line);
}

.about-mission-section .container,
.about-ecosystem-section .container {
  padding: var(--section-space) 0;
}

.about-mission-grid,
.about-ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.about-mission-copy h2,
.about-ecosystem-copy h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--text);
  font-size: clamp(2.1rem, 1.55rem + 2vw, 3.7rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.about-mission-body {
  display: grid;
  gap: 20px;
}

.about-mission-body p,
.about-ecosystem-copy p {
  margin: 0;
  max-width: 40rem;
  color: rgba(27, 36, 51, 0.74);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.12rem);
  line-height: 1.76;
  text-wrap: pretty;
}

.about-ecosystem-copy {
  position: sticky;
  top: calc(var(--site-header-height) + 28px);
}

.about-solution-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(27, 36, 51, 0.12);
}

.about-solution-list a {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  min-height: 70px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(27, 36, 51, 0.12);
  transition:
    color 160ms ease,
    padding-left 160ms ease;
}

.about-solution-list a:hover {
  color: var(--accent-hover);
  padding-left: 10px;
}

.about-solution-list span {
  color: var(--text);
  font-size: clamp(1.18rem, 1rem + 0.7vw, 1.62rem);
  font-weight: 800;
  line-height: 1.1;
}

.about-solution-list em {
  color: rgba(27, 36, 51, 0.62);
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.about-solution-list a:hover span,
.about-solution-list a:hover em {
  color: inherit;
}

@media (max-width: 1280px) {
  .home-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
    width: min(100%, 64rem);
  }

  .home-hero-title {
    font-size: clamp(2.65rem, 2.1rem + 2.2vw, 3.9rem);
  }

  .home-hero-subhead {
    font-size: var(--type-label);
  }

  .home-hero-menu-shell {
    width: min(100%, 23.5rem);
  }

  .home-ops-menu-grid {
    grid-template-columns: minmax(260px, 23.5rem) minmax(0, 1fr);
  }

  .home-ops-menu-shell {
    width: min(100%, 23.5rem);
  }

  .story-rail {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.92fr);
  }

  .about-hero-grid {
    width: min(100%, 64rem);
  }

  .about-hero-title {
    font-size: clamp(2.8rem, 2.2rem + 2.5vw, 4.35rem);
  }

  .about-toggle-row {
    width: min(100%, 34rem);
  }

}

@media (max-width: 980px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .section-header p {
    max-width: 42rem;
  }

  .home-ops-menu-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-ops-menu-content {
    padding-top: 22px;
  }

  .story-rail {
    grid-template-columns: 1fr;
  }

  .about-hero-grid,
  .about-mission-grid,
  .about-ecosystem-layout {
    grid-template-columns: 1fr;
  }

  .about-toggle-visual {
    min-height: 430px;
  }

  .about-toggle-row {
    width: 100%;
  }

  .about-toggle-row.is-active,
  .about-toggle-row.is-active.is-activated {
    transform: translate3d(0, -50%, 0) scale(1);
  }

  .about-ecosystem-copy {
    position: static;
  }

  .story-system-point {
    grid-template-columns: 1fr;
    gap: 8px;
  }

}

@media (max-width: 760px) {
  .home-hero-shell {
    min-height: auto;
    padding-bottom: 72px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 28px;
    background:
      radial-gradient(circle at 73% 30%, rgba(127, 90, 240, 0.1), transparent 24%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 20%),
      linear-gradient(180deg, #ffffff 0%, #ffffff 54%, #ffffff 100%);
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .home-hero-copy {
    max-width: min(100%, 24rem);
  }

  .home-hero-menu-card {
    justify-content: flex-start;
  }

  .home-hero-menu-shell {
    width: min(100%, 23.5rem);
  }

  .home-hero-title {
    font-size: clamp(2.35rem, 9.6vw, 3rem);
  }

  .home-hero-subhead span {
    white-space: normal;
  }

  .home-hero-subhead {
    font-size: var(--type-label);
    letter-spacing: 0.16em;
  }

  .demo-preview-section .container {
    padding-top: 24px;
  }

  .demo-preview-frame {
    min-height: 240px;
    border-radius: 22px;
  }

  .home-ops-menu-section {
    padding-top: 4px;
    padding-bottom: 18px;
  }

  .home-ops-menu-shell {
    width: min(100%, 23.5rem);
  }

  .home-ops-menu-content h2 {
    white-space: normal;
  }

  .home-ops-detail-card {
    min-height: 220px;
    padding: 20px 18px 18px;
    border-radius: 22px;
  }

  .story-intro-card,
  .story-system-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .story-intro-card h3,
  .story-system-card h3 {
    font-size: clamp(1.7rem, 1.45rem + 1.2vw, 2.35rem);
  }

  .about-hero-shell {
    padding: 48px 18px 66px;
  }

  .about-hero-title {
    max-width: 11ch;
    font-size: clamp(2.75rem, 2.2rem + 7vw, 4rem);
  }

  .about-hero-title span {
    white-space: normal;
  }

  .about-toggle-visual {
    min-height: 390px;
  }

  .about-toggle-stack {
    height: 330px;
  }

  .about-toggle-row {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 64px;
    padding: 0 16px 0 14px;
    border-radius: 20px;
  }

  .about-toggle-row.is-active {
    transform: translate3d(0, -50%, 0) scale(1);
  }

  .about-toggle-row.is-active.is-activated {
    transform: translate3d(0, -50%, 0) scale(1);
  }

  .about-toggle-row.is-prev {
    transform: translate3d(10px, calc(-50% - 80px), 0) scale(0.95);
  }

  .about-toggle-row.is-next {
    transform: translate3d(10px, calc(-50% + 80px), 0) scale(0.95);
  }

  .about-toggle-row.is-far-prev {
    transform: translate3d(20px, calc(-50% - 148px), 0) scale(0.9);
  }

  .about-toggle-row.is-far-next {
    transform: translate3d(20px, calc(-50% + 148px), 0) scale(0.9);
  }

  .about-toggle-row.is-hidden {
    transform: translate3d(0, calc(-50% + 214px), 0) scale(0.88);
  }

  .about-toggle-switch {
    width: 50px;
    height: 30px;
  }

  .about-toggle-switch::after {
    width: 26px;
    height: 26px;
  }

  .about-toggle-switch.is-on::after {
    transform: translateX(20px);
  }

  .about-mission-section .container,
  .about-ecosystem-section .container {
    padding: 56px 0;
  }

  .about-solution-list a {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
    padding: 18px 0;
  }
}

body.marketing-form-open {
  overflow: hidden;
}

body.marketing-form-open .site-cursor {
  opacity: 0;
  transition: none;
}

.marketing-form-modal {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-cursor-ready .marketing-form-modal,
.site-cursor-ready .marketing-form-modal * {
  cursor: auto;
}

.site-cursor-ready .marketing-form-backdrop,
.site-cursor-ready .marketing-form-close,
.site-cursor-ready .marketing-form-submit,
.site-cursor-ready .marketing-form-actions button {
  cursor: pointer;
}

.site-cursor-ready .marketing-form-field,
.site-cursor-ready .marketing-form-field input,
.site-cursor-ready .marketing-form-field textarea {
  cursor: text;
}

.marketing-form-modal[hidden] {
  display: none;
}

.marketing-form-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 36, 51, 0.24);
  backdrop-filter: blur(16px);
}

.marketing-form-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  max-height: min(88vh, 920px);
  overflow: auto;
  border: 1px solid rgba(27, 36, 51, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(68, 118, 217, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 250, 0.98));
  box-shadow: 0 36px 96px rgba(17, 24, 39, 0.1);
}

.marketing-form-shell {
  padding: clamp(28px, 4vw, 40px);
}

.marketing-form-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(27, 36, 51, 0.12);
  border-radius: 999px;
  background: rgba(27, 36, 51, 0.04);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.marketing-form-header {
  margin-bottom: 24px;
  max-width: 34rem;
}

.marketing-form-header.is-success {
  display: grid;
  gap: 12px;
  padding-right: 40px;
}

.marketing-form-eyebrow {
  margin: 0 0 10px;
  color: rgba(142, 178, 255, 0.84);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.marketing-form-header h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 1.7rem + 1vw, 2.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.marketing-form-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.marketing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.marketing-form-field {
  display: grid;
  gap: 8px;
}

.marketing-form-field:last-of-type {
  grid-column: 1 / -1;
}

.marketing-form-field span {
  color: rgba(27, 36, 51, 0.9);
  font-size: 0.86rem;
  font-weight: 600;
}

.marketing-form-field input,
.marketing-form-field textarea {
  width: 100%;
  border: 1px solid rgba(27, 36, 51, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.marketing-form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.marketing-form-field input:focus,
.marketing-form-field textarea:focus {
  border-color: rgba(68, 118, 217, 0.46);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 4px rgba(68, 118, 217, 0.12);
}

.marketing-form-field small {
  min-height: 1.1rem;
  color: #ffb0bf;
  font-size: 0.8rem;
}

.marketing-form-submit {
  width: fit-content;
  min-width: 180px;
  margin-top: 8px;
}

.marketing-form-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.marketing-form-notice {
  grid-column: 1 / -1;
  border: 1px solid rgba(27, 36, 51, 0.12);
  border-radius: 18px;
  background: rgba(27, 36, 51, 0.04);
  color: rgba(27, 36, 51, 0.88);
  padding: 14px 16px;
}

.marketing-form-notice.is-error {
  border-color: rgba(255, 145, 167, 0.28);
  background: rgba(255, 121, 206, 0.08);
  color: #ffd6df;
}

.marketing-form-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}

@media (max-width: 720px) {
  .marketing-form-modal {
    padding: 16px;
    align-items: end;
  }

  .marketing-form-dialog {
    width: 100%;
    border-radius: 24px;
  }

  .marketing-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-form-submit {
    width: 100%;
  }
}
