.features-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.features-hero::before {
  position: absolute;
  right: 12%;
  bottom: -120px;
  left: 12%;
  height: 260px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  content: '';
  opacity: 0.55;
  pointer-events: none;
}

.features-hero .wrap {
  position: relative;
  z-index: 1;
}

.features-hero h1 {
  max-width: 900px;
  margin-top: 20px;
}

.features-hero .lead {
  max-width: 880px;
}

.features-facts {
  margin-top: 26px;
}

.features-premise {
  max-width: 860px;
  margin-top: 22px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.features-premise strong {
  color: var(--color-text);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 52px;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.section-band .section-kicker {
  color: var(--color-on-band);
  opacity: 0.7;
}

.mode-table {
  display: block;
  max-width: 100%;
  margin-bottom: 64px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.mode-table table {
  min-width: 860px;
}

.mode-table th:first-child,
.mode-table td:first-child {
  font-weight: 750;
}

.mode-table code {
  white-space: nowrap;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--color-border);
}

.feature-row:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.feature-row-reverse .feature-copy {
  grid-column: 2;
  grid-row: 1;
}

.feature-row-reverse .feature-material {
  grid-column: 1;
  grid-row: 1;
}

.feature-copy p {
  color: var(--color-muted);
}

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

.feature-copy strong {
  color: var(--color-text);
}

.feature-material {
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.material-label {
  display: block;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: compact-step;
}

.compact-steps li {
  position: relative;
  min-height: 48px;
  padding: 12px 0 12px 42px;
  border-top: 1px solid var(--color-border);
  counter-increment: compact-step;
}

.compact-steps li::before {
  position: absolute;
  top: 12px;
  left: 0;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  content: counter(compact-step);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 750;
}

.syntax-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.syntax-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid var(--color-border);
}

.syntax-list code {
  min-width: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  background: transparent;
  color: var(--color-text);
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.strategy-list {
  display: grid;
}

.strategy-list > div {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-top: 1px solid var(--color-border);
}

.strategy-list .rule-state {
  margin-top: 8px;
}

.strategy-list p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.strategy-list strong {
  font-family: var(--font-mono);
}

.strategy-list span {
  color: var(--color-muted);
  font-size: 14px;
}

.mode-callout {
  margin-top: 30px;
}

.interface-map {
  margin: 0;
}

.interface-map > div {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-top: 1px solid var(--color-border);
}

.interface-map dt {
  overflow-wrap: anywhere;
  font-family: var(--font-mono);
  font-weight: 750;
}

.interface-map dd {
  margin: 0;
  color: var(--color-muted);
}

.check-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--color-border);
}

.check-list li::before {
  position: absolute;
  top: 21px;
  left: 3px;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: '';
}

.settings-stack {
  border-top: 1px solid var(--color-border);
}

.setting-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.5fr);
  gap: clamp(30px, 7vw, 96px);
  padding-top: 54px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--color-border);
}

.setting-title {
  align-self: start;
}

.setting-index {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.setting-title h3 {
  margin-bottom: 0;
}

.setting-body p {
  color: var(--color-muted);
}

.setting-body p:last-child {
  margin-bottom: 0;
}

.setting-body strong {
  color: var(--color-text);
}

.workflow-heading {
  max-width: 820px;
  margin-bottom: 48px;
}

.workflow-heading .muted {
  font-size: 18px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-muted);
  border-left: 1px solid var(--color-muted);
  list-style: none;
}

.workflow-grid li {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
}

.workflow-grid h3 {
  margin-bottom: 10px;
  color: var(--color-on-band);
  font-size: 20px;
}

.workflow-grid p {
  margin-bottom: 0;
  color: var(--color-on-band);
  opacity: 0.72;
}

.workflow-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--color-on-band);
  font-size: 12px;
  font-weight: 750;
  opacity: 0.56;
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .feature-row-reverse .feature-copy,
  .feature-row-reverse .feature-material {
    grid-column: 1;
  }

  .feature-row-reverse .feature-copy {
    grid-row: 1;
  }

  .feature-row-reverse .feature-material {
    grid-row: 2;
  }

  .feature-material {
    max-width: 680px;
    justify-self: stretch;
  }

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

@media (max-width: 700px) {
  .section-heading {
    margin-bottom: 38px;
  }

  .feature-row {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .setting-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 42px;
    padding-bottom: 42px;
  }

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

  .workflow-number {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .interface-map > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .feature-material {
    padding: 22px;
  }

  .syntax-list li {
    align-items: flex-start;
  }
}