.product-home {
  --maxw: 1280px;
  --page-gutter: clamp(20px, 4vw, 40px);
  --section-gap: clamp(48px, 7vw, 96px);
}

.product-home .wrap { padding-inline: var(--page-gutter); }
.product-home :focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.product-home main > section[id] { scroll-margin-top: 24px; }

.skip-link {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: var(--page-gutter);
  padding: 8px 12px;
  transform: translateY(calc(-100% - 16px));
  color: var(--on-brand);
  background: var(--brand);
}

.skip-link:focus { transform: none; }

.home-header { padding-block: 12px; }
.home-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 24px;
}

.home-header .logo { justify-self: start; }
.home-header nav { margin: 0; gap: 8px clamp(16px, 3vw, 34px); }
.home-header nav a,
.home-header__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.home-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  white-space: nowrap;
}

.home-language {
  padding-inline: 4px;
  color: var(--fg-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.home-language:hover { color: var(--brand); }

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.home-link span { color: var(--brand); }
.home-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(44px, 6vw, 88px);
}

.home-intro h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 66px);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.09;
  text-wrap: balance;
}

.home-intro h1 span { display: block; color: var(--brand); }
.home-intro__copy p {
  max-width: 39ch;
  margin: 24px 0 0;
  color: var(--fg-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
}

.home-intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 28px;
}

.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 10px 17px;
  border-radius: 7px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.home-button:hover { filter: brightness(1.06); }

.product-flow {
  --flow-cream: #fff4e5;
  --flow-text-muted: #e8c4b6;
  --flow-rule: #79515a;
  --flow-connector: #e5a17e;
  margin: 0;
  padding: clamp(16px, 2.2vw, 28px);
  border: 1px solid var(--flow-rule);
  border-radius: 14px;
  background: #3c1924;
  color: var(--flow-cream);
}

.product-flow figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--flow-rule);
  font-size: 15px;
  font-weight: 650;
}

.product-flow figcaption img { display: block; }
.product-flow__diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 420px);
  margin: clamp(22px, 2.6vw, 36px) auto clamp(12px, 1.5vw, 20px);
  text-align: center;
}

.flow-node {
  width: min(100%, 232px);
  padding: 10px 12px;
  border: 1px solid var(--flow-rule);
  border-radius: 7px;
  background: #512734;
}

.flow-node strong,
.flow-core strong {
  display: block;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 700;
  line-height: 1.28;
}

.flow-node span,
.flow-core span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
}

.flow-node span { color: var(--flow-text-muted); }
.flow-node--target { position: relative; }
.flow-node--target::before {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--flow-connector);
  border-bottom: 1px solid var(--flow-connector);
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.flow-branch {
  position: relative;
  width: 50%;
  height: 30px;
}

.flow-branch::before,
.flow-branch::after {
  position: absolute;
  content: "";
}

.flow-branch::before {
  top: 0;
  left: 50%;
  height: 50%;
  border-left: 1px solid var(--flow-connector);
  transform: translateX(-50%);
}

.flow-branch::after {
  inset: 50% 0 0;
  border: solid var(--flow-connector);
  border-width: 1px 1px 0;
  border-radius: 4px 4px 0 0;
}

.flow-branch--merge { transform: scaleY(-1); }
.flow-core {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  width: 100%;
  border-radius: 7px;
  background: var(--flow-cream);
  color: #361820;
}

.flow-core > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px 8px;
}

.flow-core > div + div { border-left: 1px solid #e2c5b3; }
.flow-core span { color: #6c4b48; }

.home-integrations {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) 3fr;
  align-items: center;
  gap: 10px 32px;
  padding: 18px 0;
  border-block: 1px solid var(--border);
}

.home-integrations h2 {
  margin: 0;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 650;
}

.home-integrations ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-integrations li { font-size: clamp(17px, 2vw, 24px); font-weight: 650; letter-spacing: -.025em; }

.home-features { padding-block: var(--section-gap); }
.home-features h2,
.home-data h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.home-features__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 84px);
  margin-top: 26px;
}

.home-feature {
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

.home-feature h3 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.home-feature dl { margin: 0; }
.home-feature dt { font-weight: 650; }
.home-feature dt:not(:first-child) { margin-top: 12px; }
.home-feature dd,
.home-feature p {
  max-width: 52ch;
  margin: 3px 0 0;
  color: var(--fg-muted);
}

.home-data {
  display: grid;
  grid-template-columns: minmax(205px, .65fr) minmax(0, 1fr);
  align-items: start;
  gap: 12px 32px;
  margin-bottom: var(--section-gap);
  padding: clamp(20px, 4vw, 40px);
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
}

.home-data h2 { font-size: clamp(23px, 3vw, 31px); }
.home-data p { margin: 0; color: var(--fg-muted); }
.home-data .home-link { margin-top: 3px; }
.home-footer .wrap { column-gap: 24px; row-gap: 10px; }

@media (max-width: 860px) {
  .home-header .wrap { grid-template-columns: 1fr auto; }
  .home-header nav { grid-column: 1 / -1; grid-row: 2; }
  .home-intro { grid-template-columns: minmax(0, 1fr); }
  .home-intro h1 { font-size: clamp(38px, 7vw, 60px); }
  .home-intro__copy p { margin-top: 16px; }
  .home-intro__actions { margin-top: 18px; }
}

@media (max-width: 570px) {
  .home-header .wrap { column-gap: 12px; }
  .home-header nav { column-gap: 18px; }
  .home-header__actions { gap: 10px; }
  .home-header__actions .home-link { display: none; }
  .home-intro h1 { font-size: clamp(34px, 9vw, 48px); }
  .home-integrations { grid-template-columns: minmax(0, 1fr); }
  .home-integrations ul { justify-content: flex-start; gap: 4px 18px; }
  .home-features__grid,
  .home-data { grid-template-columns: minmax(0, 1fr); }
  .home-feature { padding-block: 18px; }
  .home-footer .spacer { display: none; }
}
