:root {
  --ink: #171a1f;
  --muted: #65717c;
  --paper: #f6f2e8;
  --panel: #fffdf7;
  --soft: #eaf2ee;
  --soft-2: #f8ead8;
  --line: #d9e1de;
  --teal: #0f766e;
  --teal-dark: #0a4f4b;
  --green: #a7c957;
  --amber: #d48a25;
  --coral: #d45f45;
  --blue: #376fa8;
  --shadow: 0 22px 60px rgba(23, 26, 31, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  overflow: hidden;
}

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

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

p,
h1,
h2,
h3 {
  letter-spacing: 0;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  margin: 12px;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--radius);
  background: #fff;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(23, 26, 31, .1);
  background: rgba(255, 253, 247, .92);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1320px, calc(100% - 48px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 820;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.site-nav a,
.footer-nav a {
  padding: 9px 10px;
  border-radius: var(--radius);
  color: #3c4650;
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
}

.site-nav a:hover,
.footer-nav a:hover {
  background: var(--soft);
  color: var(--teal-dark);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  max-width: max-content;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.button-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(23, 26, 31, .18);
}

.button-dark:hover {
  background: #2a3037;
}

.button-light {
  border-color: rgba(23, 26, 31, .15);
  background: #fff;
  color: var(--ink);
}

.button-light:hover {
  border-color: rgba(15, 118, 110, .45);
  color: var(--teal-dark);
}

.hero {
  position: relative;
  display: grid;
  min-height: 560px;
  height: calc(100svh - 116px);
  max-height: 650px;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(23, 26, 31, .1);
  background: #13171a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 18, 22, .88) 0%, rgba(13, 18, 22, .62) 42%, rgba(13, 18, 22, .2) 100%),
    linear-gradient(180deg, rgba(13, 18, 22, .05), rgba(13, 18, 22, .78)),
    url("../img/hero-automation.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 34px;
  color: #fff;
}

.eyebrow,
.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
}

.hero-lead {
  max-width: 700px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 840px;
  margin-top: 22px;
}

.hero-facts div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .1);
}

.hero-facts strong {
  display: block;
  font-size: 23px;
  line-height: 1;
}

.hero-facts span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.anchor-strip {
  border-bottom: 1px solid var(--line);
  background: #fffdf7;
}

.anchor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0;
}

.anchor-grid a {
  min-height: 54px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #33404a;
  font-size: 14px;
  font-weight: 740;
}

.anchor-grid a:hover {
  border-color: rgba(15, 118, 110, .45);
  background: #f4fbf8;
}

.section {
  padding: 82px 0;
}

.band-white {
  background: #fffdf7;
}

.band-soft {
  background: var(--soft);
}

.band-dark {
  background: #171a1f;
  color: #fff;
}

.band-dark .section-head p,
.band-dark .integration-grid span {
  color: rgba(255, 255, 255, .68);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.lead {
  max-width: 640px;
  margin: 18px 0 24px;
}

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

.process-step,
.case-card,
.price-card,
.question-list article,
.feature-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.process-step {
  position: relative;
  min-height: 258px;
  padding: 20px;
}

.process-step span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 820;
}

h3 {
  margin: 16px 0 0;
  font-size: 21px;
  line-height: 1.15;
}

.process-step p,
.case-card p,
.price-card p,
.question-list p,
.feature-list p,
.stage-list p {
  color: var(--muted);
}

.process-step p,
.case-card p,
.feature-list p {
  margin: 10px 0 0;
  font-size: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 36px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article {
  min-height: 148px;
  padding: 20px;
}

.feature-list h3 {
  margin-top: 0;
}

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

.case-card {
  min-height: 226px;
  padding: 20px;
}

.case-card span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf5f1;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

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

.integration-grid div {
  min-height: 124px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
}

.integration-grid strong {
  display: block;
  font-size: 22px;
}

.integration-grid span {
  display: block;
  margin-top: 8px;
}

.stage-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
}

.stage-list li {
  min-height: 226px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: stage;
}

.stage-list li::before {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--amber);
  color: #fff;
  content: counter(stage);
  font-weight: 820;
}

.stage-list h3 {
  font-size: 19px;
}

.stage-list p {
  margin: 10px 0 0;
  font-size: 14px;
}

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

.price-card {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 22px;
}

.price-card.accent {
  border-color: rgba(15, 118, 110, .42);
  background: #f4fbf8;
}

.price-card h3 {
  margin-top: 0;
  font-size: 24px;
}

.price-card p {
  margin: 12px 0 22px;
}

.price-card .button {
  margin-top: auto;
}

.questions {
  border-top: 1px solid var(--line);
}

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

.question-list article {
  min-height: 212px;
  padding: 20px;
}

.question-list h3 {
  margin-top: 0;
  font-size: 18px;
}

.question-list p {
  margin: 10px 0 0;
  font-size: 14px;
}

.final-section {
  padding: 58px 0;
  background: var(--soft-2);
}

.final-inner {
  display: grid;
  grid-template-columns: minmax(0, 720px) auto;
  gap: 28px;
  align-items: center;
}

.final-inner p:not(.kicker) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 42px 0;
  background: #171a1f;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
}

.footer-brand .brand-mark {
  background: #fff;
  color: var(--ink);
}

.site-footer p {
  max-width: 620px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .68);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 520px;
}

.footer-nav a {
  color: rgba(255, 255, 255, .76);
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.legal-main {
  min-height: calc(100vh - 72px);
  padding: 76px 0;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 118, 110, .04) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

.legal-card {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf7;
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 58px);
}

.legal-card h2 {
  margin-top: 30px;
  font-size: 28px;
}

.legal-card p {
  color: var(--muted);
}

.legal-card p:first-of-type {
  color: #34404a;
  font-size: 18px;
}

.legal-card .button {
  margin-top: 4px;
}

@media (max-width: 1120px) {
  .header-inner {
    min-height: 68px;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fffdf7;
    box-shadow: var(--shadow);
  }

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

  .header-link {
    display: none;
  }

  .section-head,
  .two-column,
  .final-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .process-map,
  .stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid,
  .integration-grid,
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .container,
  .header-inner,
  .hero-content {
    width: min(100% - 30px, 1180px);
  }

  .hero {
    min-height: 580px;
    height: calc(100svh - 116px);
    max-height: none;
  }

  .hero-bg {
    background-position: 58% center;
  }

  .hero-content {
    padding: 64px 0 34px;
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 31px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-facts {
    display: none;
  }

  .anchor-grid,
  .process-map,
  .case-grid,
  .integration-grid,
  .stage-list,
  .price-grid,
  .question-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .button {
    white-space: normal;
    text-align: center;
  }
}
