:root {
  --page: #f7f8f5;
  --paper: #ffffff;
  --paper-soft: #eef2ed;
  --ink: #171b19;
  --muted: #606963;
  --line: #d7ded6;
  --line-strong: #aeb9b1;
  --green: #195f4d;
  --green-dark: #113f34;
  --teal: #1d7280;
  --wine: #7d2f3a;
  --amber: #a8661c;
  --charcoal: #242826;
  --shadow: 0 18px 48px rgba(23, 27, 25, 0.08);
  --radius: 8px;
  --container: 1440px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

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

a:hover {
  color: var(--green);
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: 58px;
  font-weight: 780;
  line-height: 1.02;
}

h2 {
  margin-bottom: 18px;
  font-size: 34px;
  font-weight: 740;
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 730;
  line-height: 1.28;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(215, 222, 214, 0.86);
  background: rgba(247, 248, 245, 0.96);
}

.top__inner,
.section,
.footer__inner {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.top__inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #fff;
  font-size: 15px;
  font-weight: 780;
}

.brand__text {
  overflow: hidden;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
}

.nav a:hover,
.nav a.is-active {
  background: var(--paper-soft);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  padding: 11px 16px;
  font-weight: 720;
  line-height: 1.2;
  box-shadow: 0 12px 24px rgba(25, 95, 77, 0.16);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn--light {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}

.btn--light:hover {
  border-color: var(--green);
  background: #eef7f2;
  color: var(--green);
}

.btn--small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 14px;
  box-shadow: none;
}

.hero {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  min-height: clamp(620px, calc(100vh - 118px), 760px);
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(16, 25, 22, 0.92) 0%, rgba(16, 25, 22, 0.72) 38%, rgba(16, 25, 22, 0.32) 68%, rgba(16, 25, 22, 0.12) 100%),
    linear-gradient(180deg, rgba(16, 25, 22, 0.2), rgba(16, 25, 22, 0.52)),
    url("../img/hero-automation.png") center right / cover no-repeat;
  color: #fff;
}

.hero__content {
  display: flex;
  width: min(calc(100% - 40px), var(--container));
  min-height: clamp(620px, calc(100vh - 118px), 760px);
  margin: 0 auto;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 54px 0 58px;
}

.hero__lead {
  max-width: 760px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.62;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.hero__facts div {
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.hero__facts dt {
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 780;
}

.hero__facts dd {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.section {
  max-width: var(--content);
  padding: 76px 0;
}

.section__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section__head--light h2,
.section__head--light p {
  color: #fff;
}

.intro__grid,
.cards,
.price__grid,
.direction-grid,
.coverage-grid,
.choice-grid,
.format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.intro__grid article,
.card,
.price__grid article,
.direction-grid article,
.coverage-grid article,
.choice-grid article,
.format-grid article,
.module-main {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 22px;
}

.intro__grid p,
.card p,
.price__grid p,
.direction-grid p,
.coverage-grid p,
.choice-grid p,
.format-grid p,
.module-section p,
.split p,
.outcome p,
.final p {
  color: var(--muted);
}

.band {
  background: #eef2ed;
}

.band .section {
  max-width: var(--container);
}

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

.card {
  min-height: 260px;
}

.card__number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
}

.directions .section__head p,
.coverage .section__head p,
.choice .section__head p {
  color: var(--muted);
}

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

.direction-grid article,
.coverage-grid article,
.choice-grid article,
.format-grid article {
  min-height: 230px;
}

.direction-grid article:nth-child(2n),
.coverage-grid article:nth-child(3n + 2),
.format-grid article:nth-child(3n + 1) {
  background: #fbfcfa;
}

.module-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.module-main {
  min-height: 330px;
}

.module-list {
  display: grid;
  gap: 10px;
}

.module-list div {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.module-list span,
.choice-grid span {
  color: var(--green);
  font-weight: 820;
}

.module-list b {
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

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

.choice-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  font-size: 13px;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.76fr);
  gap: 28px;
  align-items: start;
}

.system-panel {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.system-row {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-soft);
}

.system-row span {
  color: var(--ink);
  font-weight: 760;
}

.system-row b {
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.band--dark {
  background: var(--charcoal);
}

.band--dark .eyebrow {
  color: #9ed9c5;
}

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

.steps article {
  min-height: 250px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.steps span {
  display: inline-flex;
  margin-bottom: 16px;
  color: #9ed9c5;
  font-size: 13px;
  font-weight: 820;
}

.steps p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.outcome__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 18px;
  align-items: start;
}

.outcome__main {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.outcome__stats {
  display: grid;
  gap: 10px;
}

.outcome__stats div {
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.outcome__stats strong {
  display: block;
  margin-bottom: 6px;
  color: var(--wine);
  font-size: 28px;
  line-height: 1;
}

.outcome__stats span {
  color: var(--muted);
}

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

.questions {
  display: grid;
  gap: 10px;
}

details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 740;
  list-style: none;
}

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

summary::after {
  content: "+";
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
}

.footer p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.legal {
  width: min(calc(100% - 40px), 920px);
  margin: 0 auto;
  padding: 70px 0;
}

.legal article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal h1 {
  font-size: 42px;
}

.legal h2 {
  margin-top: 32px;
  font-size: 26px;
}

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

.legal ul {
  padding-left: 20px;
}

@media (max-width: 1180px) {
  .top__inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .split,
  .outcome__layout,
  .module-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    background-position: center center;
  }

  .choice-grid,
  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .top__inner,
  .section,
  .footer__inner {
    width: min(calc(100% - 24px), var(--container));
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .brand__text {
    max-width: 210px;
  }

  .top .btn {
    width: auto;
  }

  .hero {
    min-height: 0;
    background:
      linear-gradient(90deg, rgba(16, 25, 22, 0.94) 0%, rgba(16, 25, 22, 0.76) 58%, rgba(16, 25, 22, 0.42) 100%),
      linear-gradient(180deg, rgba(16, 25, 22, 0.18), rgba(16, 25, 22, 0.55)),
      url("../img/hero-automation.png") center center / cover no-repeat;
  }

  .hero__content {
    width: min(calc(100% - 24px), var(--container));
    min-height: clamp(600px, calc(100vh - 98px), 720px);
    padding: 36px 0 42px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__facts,
  .intro__grid,
  .cards,
  .direction-grid,
  .coverage-grid,
  .choice-grid,
  .format-grid,
  .price__grid,
  .steps,
  .final {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

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

  .module-list div {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .top__inner {
    gap: 12px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__text {
    max-width: 170px;
  }

  .nav a {
    padding: 8px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 13px;
  }

  .hero__content,
  .intro__grid article,
  .card,
  .price__grid article,
  .outcome__main,
  .legal article {
    padding: 20px;
  }

  .legal h1 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: 34px;
    line-height: 1.05;
  }

  .hero__content {
    min-height: clamp(500px, calc(100vh - 214px), 630px);
    padding: 28px 0 30px;
  }

  .hero__lead {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.48;
  }

  .hero__actions {
    margin-bottom: 18px;
  }

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

  .hero__facts div {
    min-height: 86px;
    padding: 10px 8px;
  }

  .hero__facts dt {
    margin-bottom: 4px;
    font-size: 15px;
  }

  .hero__facts dd {
    font-size: 11px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }
}
