/* Content sections: alternating feature rows, split diagram, steps, app band, contact, closing. */

/* Feature row: copy + visual, alternating sides */
.feature-row {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-copy {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
}

.feature-copy h3 {
  margin-top: var(--sp-2);
}

.feature-visual {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
}

.feature-visual .device:not(.device-tablet) {
  width: min(46%, 250px);
}

.feature-visual .device:not(.device-tablet):only-child {
  width: min(100%, 300px);
}

.feature-visual .device + .device {
  margin-top: var(--sp-7);
}

.chips-label {
  font-size: var(--fs-small);
  color: var(--text-2);
}

@media (max-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }
}

/* Keyboard split diagram */
.split-figure {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: clamp(var(--sp-4), 4vw, var(--sp-6));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.split-figure svg {
  width: 100%;
  height: auto;
}

.split-legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  font-size: var(--fs-small);
  color: var(--text-2);
}

.split-legend li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.swatch-left { background: var(--part-left); }
.swatch-right { background: linear-gradient(90deg, var(--part-r1), var(--part-r2), var(--part-r3)); }

/* Steps: a real sequence, so numbers are used */
.steps {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  counter-reset: step;
}

.steps li {
  display: grid;
  align-content: start;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 2px solid var(--border-strong);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  font-family: var(--font-mono);
  color: var(--accent-text);
  font-weight: 600;
}

.steps p {
  color: var(--text-2);
}

/* App band on the company page */
.app-band {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(var(--sp-5), 5vw, var(--sp-7));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.app-band-copy {
  display: grid;
  gap: var(--sp-4);
  justify-items: start;
}

.app-band .device {
  width: 230px;
}

@media (max-width: 760px) {
  .app-band {
    grid-template-columns: 1fr;
  }

  .app-band .device {
    justify-self: center;
  }
}

/* Contact + closing */
.contact-list {
  list-style: none;
  display: grid;
  gap: var(--sp-3);
}

.contact-list a {
  font-weight: 600;
}

.contact-empty {
  color: var(--text-2);
}

.closing {
  display: grid;
  gap: var(--sp-5);
  justify-items: center;
  text-align: center;
}

.closing .lead {
  margin-inline: auto;
}
