:root {
  --brand: #b5121b;
  --brand-bright: #d71920;
  --brand-dark: #7d0c16;
  --ink: #252525;
  --ink-soft: #494949;
  --muted: #6c6c6c;
  --line: #dedbd7;
  --paper: #fff;
  --wash: #f7f5f2;
  --wash-cool: #f1f4f5;
  --wash-warm: #f6f1ed;
  --wash-red: #fff1f1;
  --dark: #303236;
  --shell: 1076px;
  --header-expanded: 186px;
  --header-compact: 96px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-compact) + 20px);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.45);
  outline-offset: 3px;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 16px;
  padding: 8px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-150%);
}

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

/* Header: the desktop masthead compresses after the first scroll, matching the reference interaction. */
.site-header {
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-expanded);
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  transition: height 240ms ease, box-shadow 240ms ease;
}

.utility-bar {
  height: 36px;
  overflow: hidden;
  color: var(--paper);
  background: var(--brand);
  transition: height 240ms ease, opacity 180ms ease, transform 240ms ease;
}

.utility-inner {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.utility-inner p {
  margin: 0;
  opacity: 0.86;
}

.utility-inner nav {
  display: flex;
  gap: 28px;
}

.utility-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.masthead {
  height: 94px;
  background: var(--paper);
  transition: height 240ms ease;
}

.masthead-inner {
  display: flex;
  height: 100%;
  align-items: center;
}

.brand {
  width: 190px;
  flex: 0 0 auto;
  transition: width 240ms ease;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  white-space: nowrap;
}

.brand-lockup .brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-lockup span {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
}

.brand-line {
  margin: 0 0 0 30px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: opacity 160ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.header-demo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
}

.header-demo span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--paper);
  background: var(--brand);
  border-radius: 50%;
  transition: transform 180ms ease;
}

.header-demo:hover span {
  transform: translateX(4px);
}

.login-menu {
  position: relative;
}

.login-menu summary {
  padding: 10px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}

.login-menu summary::-webkit-details-marker {
  display: none;
}

.login-menu summary span {
  margin-left: 4px;
  color: var(--brand);
}

.login-popover {
  position: absolute;
  z-index: 10;
  top: calc(100% + 12px);
  right: -8px;
  width: 286px;
  padding: 8px;
  border-top: 4px solid var(--brand);
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.login-popover::before {
  position: absolute;
  top: -18px;
  right: 0;
  left: 0;
  height: 18px;
  content: "";
}

.login-popover a {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 10px;
}

.login-popover a + a {
  border-top: 1px solid #ececec;
}

.login-popover a:hover {
  background: #f6f6f6;
}

.login-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: var(--paper);
  background: var(--brand);
  border-radius: 50%;
  font-weight: 700;
}

.login-popover b,
.login-popover small {
  display: block;
}

.login-popover b {
  font-size: 14px;
}

.login-popover small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-band {
  height: 56px;
  background: var(--paper);
  transition: height 240ms ease, background-color 240ms ease;
}

.nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}

.nav-inner a {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  color: #323232;
  font-size: 14px;
  transition: color 180ms ease;
}

.nav-inner a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-inner a:hover,
.nav-inner a.active {
  color: var(--brand);
}

.nav-inner a:hover::after,
.nav-inner a.active::after {
  transform: scaleX(1);
}

.site-header.compact {
  height: var(--header-compact);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.site-header.compact .utility-bar {
  height: 0;
  opacity: 0;
  transform: translateY(-100%);
}

.site-header.compact .masthead {
  height: 54px;
}

.site-header.compact .brand {
  width: 144px;
}

.site-header.compact .brand-mark {
  width: 38px;
  height: 38px;
}

.site-header.compact .brand-lockup span {
  font-size: 23px;
}

.site-header.compact .brand-line {
  opacity: 0;
}

.site-header.compact .nav-band {
  height: 42px;
  color: var(--paper);
  background: var(--brand);
}

.site-header.compact .nav-inner a {
  color: var(--paper);
}

.site-header.compact .nav-inner a::after {
  height: 4px;
  background: var(--paper);
}

.site-header.compact .login-popover {
  top: calc(100% + 6px);
}

.mobile-topbar,
.mobile-quickbar,
.menu-toggle {
  display: none;
}

main {
  padding-top: var(--header-expanded);
}

section[id] {
  scroll-margin-top: calc(var(--header-compact) + 18px);
}

/* Shared actions */
.section-label,
.overline,
.card-number {
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.circle-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
}

.circle-action b {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--paper);
  background: var(--brand);
  border-radius: 50%;
  font-size: 18px;
  transition: transform 180ms ease;
}

.circle-action:hover b {
  transform: translateX(4px);
}

.circle-action-light {
  color: var(--paper);
}

.circle-action-light b {
  color: var(--brand);
  background: var(--paper);
}

.line-action {
  display: flex;
  width: min(100%, 560px);
  align-items: center;
  gap: 16px;
  font-weight: 650;
}

.line-action i {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.72;
}

.line-action b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  font-size: 20px;
  transition: transform 180ms ease;
}

.line-action:hover b {
  transform: translateX(5px);
}

.line-action-light {
  color: var(--paper);
}

.line-action-light b {
  color: var(--brand);
}

/* Brand prototype watermarks */
.hero-intro,
.detail-copy,
.platform-copy,
.onboarding,
.contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-intro::before,
.detail-copy::before,
.platform-copy::before,
.onboarding::before,
.contact::before {
  position: absolute;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  pointer-events: none;
}

.hero-intro::before {
  top: -105px;
  left: max(0px, calc((100vw - var(--shell)) / 2 - 160px));
  width: 420px;
  height: 420px;
  background-image: url("./images/xmates-logo-a.png");
  filter: brightness(0) invert(1);
  opacity: 0.2;
}

.detail-copy::before {
  top: 50%;
  left: -200px;
  width: 1400px;
  height: 1400px;
  background-image: url("./images/xmates-chevron-watermark.png");
  opacity: 0.05;
  transform: translateY(-50%);
}

.detail-split.detail-reverse .detail-copy::before {
  right: -250px;
  left: auto;
  background-image: url("./images/xmates-logo-a.png");
  opacity: 0.055;
}

.platform-copy::before {
  top: 50%;
  right: -180px;
  width: 1300px;
  height: 1300px;
  background-image: url("./images/xmates-logo-a.png");
  filter: brightness(0) invert(1);
  opacity: 0.18;
  transform: translateY(-50%);
}

.onboarding::before {
  top: -500px;
  left: -260px;
  width: 1500px;
  height: 1500px;
  background-image: url("./images/xmates-chevron-watermark.png");
  opacity: 0.035;
}

.contact::before {
  bottom: -600px;
  left: -340px;
  width: 1900px;
  height: 1900px;
  background-image: url("./images/xmates-chevron-watermark.png");
  opacity: 0.035;
}

.hero-intro-inner,
.detail-copy-inner,
.platform-copy > div,
.onboarding > .shell,
.contact > .shell {
  position: relative;
  z-index: 1;
}
/* Hero */
.hero-intro {
  display: flex;
  min-height: 170px;
  align-items: center;
  color: var(--paper);
  background: var(--brand);
}

.hero-intro-inner {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(420px, 1.2fr);
  align-items: end;
  gap: 70px;
}

.hero-intro h1 {
  margin: 0;
  font-size: clamp(29px, 2.3vw, 36px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero-stage {
  position: relative;
  height: 620px;
  overflow: hidden;
  background: var(--wash-cool);
}

.hero-media,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.96) 27%, rgba(255, 255, 255, 0.72) 39%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 60%);
}

.hero-panel-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-panel {
  width: min(540px, 55%);
  color: var(--ink);
}

.hero-panel .overline {
  color: var(--brand);
}

.hero-panel .circle-action-light {
  color: var(--ink);
}

.hero-panel .circle-action-light b {
  color: var(--paper);
  background: var(--brand);
}

.hero-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(38px, 3.3vw, 52px);
  font-weight: 300;
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.hero-panel > p:not(.overline) {
  max-width: 500px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.7;
}

/* Story */
.story {
  padding: 76px 0;
  background: var(--wash);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
}

.story h2,
.plain-heading h2,
.platform-copy h2,
.contact-copy h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.story-copy {
  padding-top: 28px;
  font-size: 18px;
  line-height: 1.75;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

/* Product overview */
.products {
  padding: 100px 0 112px;
}

.plain-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

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

.product-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.product-card {
  min-width: 0;
}

.product-card-image {
  display: block;
  aspect-ratio: 1.28;
  margin-bottom: 28px;
  overflow: hidden;
  background: #ddd;
}

.product-card-image picture,
.product-card-image img {
  width: 100%;
  height: 100%;
}

.product-card-image img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.product-card-image:hover img {
  transform: scale(1.035);
}

.product-card .card-number {
  margin-bottom: 10px;
}

.product-card h3 {
  min-height: 64px;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.45;
}

.product-card > p:not(.card-number) {
  min-height: 75px;
  margin-bottom: 20px;
  color: var(--ink-soft);
}

/* Full-width product splits */
.product-detail {
  background: var(--paper);
}

.detail-split {
  display: grid;
  min-height: 650px;
  grid-template-columns: 1fr 1fr;
}

.detail-copy {
  display: flex;
  align-items: center;
  color: var(--ink);
  background: var(--wash-red);
}

.detail-copy-inner {
  width: min(538px, calc(100% - 72px));
  margin-left: max(36px, calc((100vw - var(--shell)) / 2));
  padding: 64px 0;
}

.detail-copy .overline {
  color: var(--brand);
}

.detail-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(38px, 3.2vw, 50px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.detail-lead {
  max-width: 500px;
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.65;
}

.detail-copy ul {
  max-width: 510px;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.detail-copy li {
  display: grid;
  gap: 2px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.detail-copy li b {
  font-size: 15px;
}

.detail-copy li span {
  color: var(--muted);
  font-size: 13px;
}

.detail-copy .circle-action-light {
  color: var(--ink);
}

.detail-copy .circle-action-light b {
  color: var(--paper);
  background: var(--brand);
}

.detail-image {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #ddd;
}

.detail-image picture,
.detail-image img {
  width: 100%;
  height: 100%;
}

.detail-image img {
  object-fit: cover;
}

.detail-reverse .detail-copy {
  order: 2;
}

.detail-reverse .detail-image {
  order: 1;
}

.detail-reverse .detail-copy-inner {
  margin-right: max(36px, calc((100vw - var(--shell)) / 2));
  margin-left: 56px;
}

.detail-charcoal .detail-copy {
  background: var(--wash-cool);
}

.detail-burgundy .detail-copy {
  background: var(--wash-warm);
}

.detail-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 44px 0;
}

.detail-result p {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-right: 50px;
}

.detail-result p + p {
  padding-right: 0;
  padding-left: 50px;
  border-left: 1px solid var(--line);
}

.detail-result span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.detail-result b {
  font-size: 18px;
  font-weight: 500;
}

.effect-note {
  margin-top: -16px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 12px;
}

/* Platform */
.platform {
  padding-top: 40px;
}

.platform-split {
  display: grid;
  min-height: 570px;
  grid-template-columns: 1fr 1fr;
}

.platform-split figure {
  min-width: 0;
  margin: 0;
}

.platform-split picture,
.platform-split img {
  width: 100%;
  height: 100%;
}

.platform-split img {
  object-fit: cover;
}

.platform-copy {
  display: flex;
  align-items: center;
  color: var(--paper);
  background: var(--brand-bright);
}

.platform-copy > div {
  width: min(538px, calc(100% - 72px));
  margin-right: max(36px, calc((100vw - var(--shell)) / 2));
  margin-left: 56px;
}

.platform-copy .overline {
  color: #ffd2d4;
}

.platform-copy > div > p:not(.overline) {
  margin-bottom: 28px;
  font-size: 18px;
  line-height: 1.7;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 82px 0 100px;
}

.capability-grid article {
  min-width: 0;
  padding: 0 26px;
  border-left: 1px solid var(--line);
}

.capability-grid article:first-child {
  padding-left: 0;
  border-left: 0;
}

.capability-grid article:last-child {
  padding-right: 0;
}

.capability-grid span {
  display: block;
  margin-bottom: 34px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
}

.capability-grid h3 {
  min-height: 58px;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.capability-grid p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

/* Onboarding */
.onboarding {
  padding: 92px 0 105px;
  background: var(--wash);
}

.plain-heading-row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
}

.plain-heading-row h2 {
  margin-bottom: 0;
}

.steps {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid #bebebc;
  border-bottom: 1px solid #bebebc;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
}

.steps li {
  min-width: 0;
  min-height: 220px;
  padding: 28px 22px 26px;
  border-left: 1px solid #bebebc;
}

.steps li:first-child {
  border-left: 0;
}

.steps span {
  display: block;
  margin-bottom: 50px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
}

.steps b {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Contact */
.contact {
  padding: 104px 0;
  color: var(--ink);
  background: var(--wash-cool);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 76px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-compact) + 36px);
}

.contact-copy .overline {
  color: var(--brand);
}

.contact-copy > p:not(.overline) {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.contact-copy ul {
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.contact-copy li {
  padding: 13px 0 13px 23px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--brand), var(--brand)) 0 22px / 8px 2px no-repeat;
  font-size: 14px;
}

.form-card {
  padding: 42px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(49, 45, 42, 0.08);
}

.form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.form-heading span {
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.form-heading h3 {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 400;
}

.form-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-heading p b,
.form-card legend b,
.form-card label > span > b {
  color: var(--brand);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.form-grid label,
.contact-window label {
  display: grid;
  gap: 8px;
}

.form-grid label > span,
.contact-window legend,
.module-options legend {
  font-size: 13px;
  font-weight: 650;
}

.form-card input,
.form-card select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid #bdbdbd;
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  outline: 0;
}

.form-card input:focus,
.form-card select:focus {
  border-color: var(--brand);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.form-card input[aria-invalid="true"],
.form-card select[aria-invalid="true"] {
  border-color: var(--brand-bright);
  background: #fff6f6;
}

.contact-window,
.module-options {
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.contact-window {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.contact-window legend,
.module-options legend {
  margin-bottom: 10px;
}

.module-options {
  display: grid;
  gap: 8px;
}

.module-options legend small {
  margin-left: 6px;
  color: var(--muted);
  font-weight: 400;
}

.module-options label {
  position: relative;
  cursor: pointer;
}

.module-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.module-options label > span {
  display: grid;
  min-height: 50px;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid #d0d0d0;
  grid-template-columns: 38px 1fr;
}

.module-options label > span i {
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
}

.module-options label > span b {
  font-size: 13px;
  font-weight: 600;
}

.module-options input:checked + span {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff4f4;
  box-shadow: inset 4px 0 0 var(--brand);
}

.module-options input:focus-visible + span {
  outline: 3px solid rgba(215, 25, 32, 0.35);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 8px;
  color: var(--brand-bright);
  font-size: 13px;
  font-weight: 650;
}

.form-status.success {
  color: #167444;
}

.submit-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border: 0;
  color: var(--paper);
  background: var(--brand);
  cursor: pointer;
  font-weight: 700;
  transition: background-color 180ms ease;
}

.submit-button b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--brand);
  background: var(--paper);
  border-radius: 50%;
  font-size: 18px;
}

.submit-button:hover {
  background: var(--brand-dark);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-note,
.noscript-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

/* Footer and persistent calls to action */
.site-footer {
  padding: 64px 0 24px;
  color: var(--paper);
  background: var(--brand);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 54px;
}

.footer-brand .brand-lockup {
  color: var(--paper);
}

.footer-brand .brand-mark {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.footer-brand .brand-lockup span {
  font-size: 26px;
}

.footer-brand p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer-main nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-main nav b {
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.footer-main nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.footer-main nav a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 12px;
}

.footer-bottom p {
  margin: 0;
}

.floating-demo {
  position: fixed;
  z-index: 150;
  top: 50%;
  right: 0;
  display: flex;
  width: 58px;
  min-height: 126px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--paper);
  background: var(--brand-dark);
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.floating-demo b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--brand-dark);
  background: var(--paper);
  border-radius: 50%;
  font-size: 17px;
}

.back-top {
  position: fixed;
  z-index: 149;
  right: 18px;
  bottom: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  z-index: 400;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 48px));
  padding: 13px 18px;
  color: var(--paper);
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.menu-backdrop,
.mobile-menu {
  display: none;
}

.menu-backdrop[hidden] {
  display: none !important;
}

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

@media (max-width: 1199px) {
  :root {
    --shell: 920px;
  }

  .brand-line {
    display: none;
  }

  .hero-intro-inner {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
  }

  .detail-copy-inner {
    width: calc(100% - 64px);
    margin-left: 40px;
  }

  .detail-reverse .detail-copy-inner,
  .platform-copy > div {
    width: calc(100% - 64px);
    margin-right: 24px;
    margin-left: 40px;
  }

  .contact-grid {
    gap: 46px;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-expanded: 148px;
    --header-compact: 148px;
  }

  html {
    scroll-padding-top: 166px;
  }

  section[id] {
    scroll-margin-top: 166px;
  }

  .shell {
    width: min(100% - 40px, 760px);
  }

  .site-header,
  .site-header.compact {
    height: 148px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  }

  .utility-bar,
  .nav-band {
    display: none;
  }

  .mobile-topbar,
  .mobile-quickbar {
    display: flex;
  }

  .mobile-topbar {
    height: 40px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 0 20px;
    color: var(--paper);
    background: var(--brand);
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .mobile-quickbar {
    height: 40px;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: var(--wash-cool);
    font-size: 13px;
    font-weight: 650;
  }

  .masthead,
  .site-header.compact .masthead {
    height: 68px;
  }

  .masthead-inner {
    width: 100%;
    padding: 0 12px;
  }

  .brand,
  .site-header.compact .brand {
    width: 152px;
  }

  .brand .brand-mark,
  .site-header.compact .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand.brand-lockup span,
  .site-header.compact .brand-lockup span {
    font-size: 25px;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 38px;
    height: 38px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: currentColor;
  }

  .menu-toggle-light {
    color: var(--paper);
  }

  .menu-toggle-brand {
    margin-left: auto;
    color: var(--brand);
  }

  main {
    padding-top: 148px;
  }

  .menu-backdrop {
    position: fixed;
    z-index: 240;
    inset: 0;
    display: block;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 220ms ease;
  }

  .menu-backdrop.visible {
    opacity: 1;
  }

  .mobile-menu {
    position: fixed;
    z-index: 250;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: min(430px, 100%);
    flex-direction: column;
    overflow-y: auto;
    color: var(--paper);
    background: var(--brand);
    transform: translateX(100%);
    transition: transform 240ms ease;
  }

  .mobile-menu.open {
    transform: translateX(0);
  }

  .mobile-menu-head {
    display: flex;
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--paper);
  }

  .mobile-menu-head .brand-mark {
    width: 44px;
    height: 44px;
  }

  .mobile-menu-head .brand-lockup span {
    font-size: 27px;
  }

  .menu-close {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    place-items: center;
    color: var(--brand);
    background: transparent;
    cursor: pointer;
    font-size: 34px;
    font-weight: 300;
  }

  .mobile-menu > nav {
    display: grid;
  }

  .mobile-menu > nav a {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  }

  .mobile-menu > nav a b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    color: var(--brand);
    background: var(--paper);
    border-radius: 50%;
  }

  .mobile-login {
    display: grid;
    gap: 12px;
    padding: 26px 22px;
    color: rgba(255, 255, 255, 0.82);
    background: var(--brand-dark);
  }

  .mobile-login p {
    margin: 0 0 4px;
    color: var(--paper);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.08em;
  }

  .mobile-login a {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
  }

  .button-light {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    color: var(--brand);
    background: var(--paper);
    font-weight: 700;
  }

  .mobile-menu-cta {
    margin: 22px;
    padding: 0 18px;
  }

  .hero-intro-inner {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 26px;
  }

  .hero-intro {
    min-height: 210px;
  }

  .hero-intro h1 {
    font-size: 32px;
  }

  .hero-stage {
    height: 560px;
  }

  .hero-panel {
    width: min(520px, 70%);
  }

  .hero-panel h2 {
    font-size: 42px;
  }

  .story-grid {
    gap: 42px;
  }

  .product-cards {
    gap: 22px;
  }

  .product-card h3 {
    min-height: 78px;
    font-size: 19px;
  }

  .detail-split,
  .platform-split {
    min-height: 580px;
  }

  .detail-copy h2 {
    font-size: 38px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 54px;
  }

  .capability-grid article:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

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

  .steps li:nth-child(4) {
    border-left: 0;
  }

  .steps li:nth-child(n + 4) {
    border-top: 1px solid #bebebc;
  }

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

  .contact-copy {
    position: static;
  }
}

@media (max-width: 767px) {
  .shell {
    width: calc(100% - 24px);
  }

  .hero-intro {
    min-height: 230px;
    padding: 30px 0;
  }

  .hero-intro-inner {
    gap: 24px;
  }

  .hero-intro h1 {
    max-width: 350px;
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.22;
  }

  .hero-intro::before {
    top: -70px;
    left: -85px;
    width: 340px;
    height: 340px;
  }

  .detail-copy::before {
    left: -135px;
    width: 920px;
    height: 920px;
  }

  .detail-split.detail-reverse .detail-copy::before {
    right: -160px;
    left: auto;
  }

  .platform-copy::before {
    right: -120px;
    width: 820px;
    height: 820px;
  }

  .onboarding::before {
    top: -310px;
    left: -180px;
    width: 1000px;
    height: 1000px;
  }

  .contact::before {
    bottom: -360px;
    left: -250px;
    width: 1100px;
    height: 1100px;
  }

  .line-action {
    font-size: 14px;
  }

  .hero-stage {
    display: flex;
    height: auto;
    flex-direction: column;
    overflow: visible;
    background: var(--wash-cool);
  }

  .hero-media {
    order: 3;
    height: 410px;
  }

  .hero-media img {
    object-position: center center;
  }

  .hero-shade {
    display: none;
  }

  .hero-panel-wrap {
    position: static;
    order: 2;
    width: 100%;
    padding: 36px 12px 40px;
    background: var(--wash-cool);
  }

  .hero-panel {
    width: 100%;
  }

  .hero-panel h2 {
    margin-bottom: 16px;
    font-size: 31px;
    line-height: 1.18;
  }

  .hero-panel > p:not(.overline) {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.65;
  }

  .story {
    padding: 54px 0;
  }

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

  .story h2,
  .plain-heading h2,
  .platform-copy h2,
  .contact-copy h2 {
    font-size: 34px;
  }

  .story-copy {
    padding-top: 0;
    font-size: 16px;
  }

  .products {
    padding: 62px 0 74px;
  }

  .plain-heading {
    margin-bottom: 34px;
  }

  .product-cards {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .product-card-image {
    aspect-ratio: 1.38;
    margin-bottom: 22px;
  }

  .product-card h3,
  .product-card > p:not(.card-number) {
    min-height: 0;
  }

  .detail-split,
  .platform-split {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .detail-copy,
  .detail-reverse .detail-copy {
    order: 1;
  }

  .detail-image,
  .detail-reverse .detail-image {
    order: 2;
    height: 410px;
  }

  .detail-copy-inner,
  .detail-reverse .detail-copy-inner {
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 54px 0 58px;
  }

  .detail-copy h2 {
    font-size: 36px;
  }

  .detail-lead {
    font-size: 16px;
  }

  .detail-result {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .detail-result p,
  .detail-result p + p {
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-result b {
    font-size: 16px;
  }

  .effect-note {
    margin-top: 14px;
    margin-bottom: 34px;
  }

  .platform {
    padding-top: 20px;
  }

  .platform-split figure {
    order: 2;
    height: 410px;
  }

  .platform-copy {
    order: 1;
  }

  .platform-copy > div {
    width: calc(100% - 24px);
    margin: 0 auto;
    padding: 54px 0 60px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 50px 0 70px;
  }

  .capability-grid article,
  .capability-grid article:first-child,
  .capability-grid article:nth-child(3) {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .capability-grid article:last-child {
    border-bottom: 1px solid var(--line);
  }

  .capability-grid span {
    margin-bottom: 16px;
  }

  .capability-grid h3 {
    min-height: 0;
  }

  .onboarding {
    padding: 62px 0 70px;
  }

  .plain-heading-row {
    display: grid;
    gap: 24px;
  }

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

  .steps li,
  .steps li:nth-child(4),
  .steps li:nth-child(n + 4) {
    display: grid;
    min-height: 0;
    align-items: start;
    gap: 5px 16px;
    padding: 22px 0;
    border-top: 1px solid #bebebc;
    border-left: 0;
    grid-template-columns: 40px 1fr;
  }

  .steps li:first-child {
    border-top: 0;
  }

  .steps span {
    grid-row: 1 / span 2;
    margin: 2px 0 0;
  }

  .steps b {
    margin: 0;
  }

  .contact {
    padding: 62px 0;
  }

  .contact-grid {
    gap: 42px;
  }

  .form-card {
    padding: 26px 18px;
  }

  .form-heading h3 {
    font-size: 26px;
  }

  .form-heading p {
    display: none;
  }

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

  .footer-main {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom {
    align-items: flex-start;
    gap: 18px;
  }

  .floating-demo {
    top: 50%;
    right: 10px;
    bottom: auto;
    width: 54px;
    min-height: 54px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  .floating-demo span {
    font-size: 10px;
    line-height: 1.15;
  }

  .floating-demo b {
    display: none;
  }

  .back-top {
    right: 15px;
    bottom: 16px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
}

@media (max-width: 390px) {
  .mobile-topbar span {
    max-width: 230px;
  }

  .mobile-quickbar {
    gap: 20px;
  }

  .hero-intro h1 {
    font-size: 29px;
  }

  .hero-media,
  .detail-image,
  .platform-split figure {
    height: 360px;
  }

  .contact-window {
    grid-template-columns: 1fr;
  }

  .contact-window > span {
    display: none;
  }
}

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

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