/* Origem, formerly Company (Figma 2330:2 / 2342:954). */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding-top: 62px;
  perspective: 1400px;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 44px 42px 0;
}

.principle:nth-child(even) {
  padding-left: 44px;
  border-left: 1px solid var(--primary);
}

/* Row two sits under the 1px rule that crosses both columns. */
.principle:nth-child(n + 3) {
  padding-top: 42px;
  padding-bottom: 0;
  border-top: 1px solid var(--primary);
}

.principle__index {
  color: var(--secondary);
}

.principle__text {
  color: var(--neutrals-light);
}

/* While the page scrolls, the principle at the middle of the screen is
   lit and the others rest in the darker neutrals; without motion all
   stay lit. */
.principle h3,
.principle__text {
  transition: color var(--button-duration) var(--button-ease);
}

.principles.has-steps .principle:not(.is-current) h3 {
  color: var(--neutrals-light);
}

.principles.has-steps .principle:not(.is-current) .principle__text {
  color: var(--primary);
}

.vocabulary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 52px;
  perspective: 1100px;
}

.vocabulary__card {
  padding: 34px;
}

.vocabulary__text {
  padding-top: 14px;
  color: var(--primary);
}

/* Terms open in place: "+" / "−" in Secondary, as the accordions. The
   grid keeps the three cards aligned at the top while one is open. */
.vocabulary {
  align-items: start;
}

.term__summary {
  position: relative;
  display: flex;
  flex-direction: column;
  list-style: none;
  cursor: pointer;
}

.term__summary::-webkit-details-marker {
  display: none;
}

.term__summary::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 0;
  color: var(--secondary);
}

.term[open] .term__summary::after {
  content: "−";
}

.term__more {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--neutrals-light);
  color: var(--neutrals-dark);
}

/* Timeline: three stages on one 1px line, each a 6px node like the status
   dot; what already exists has the Secondary node. */
.history {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 52px;
}

.history__stage {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--neutrals-light);
}

.history__stage::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.history__stage--now::before {
  background: var(--secondary);
}

.history__title {
  color: var(--primary);
}

.history__stage--now .history__title {
  color: var(--secondary);
}

.history__items {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  color: var(--neutrals-dark);
}

.history__kind {
  color: var(--primary);
}

/* "Para onde ir": no top padding, as drawn. */
.where-next {
  position: relative;
  padding-bottom: var(--section-space);
}

.where-next__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.where-next__card {
  padding: 40px;
  border-radius: 8px;
  background: var(--neutrals-light);
}

.where-next__title {
  padding-top: 18px;
}

.where-next__text {
  padding-top: 14px;
  color: var(--primary);
}

.where-next__link {
  padding-top: 28px;
}

@media (max-width: 900px) {
  .principles,
  .vocabulary,
  .history,
  .where-next__grid {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle:nth-child(even),
  .principle:nth-child(n + 3) {
    padding: 34px 0;
    border-left: 0;
    border-top: 1px solid var(--primary);
  }

  .principle:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  .vocabulary__card,
  .where-next__card {
    padding: 26px;
  }
}

/* Modelos ---------------------------------------------------------------- */

.models__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 52px;
}

.model {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 26px;
}

.model__meta {
  display: flex;
  justify-content: space-between;
  color: var(--primary);
}

.model__default {
  color: var(--secondary);
}

.model__text {
  color: var(--primary);
}

.models__reserved {
  padding-top: var(--margin-default);
}

.models__names {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  padding-top: 18px;
  color: var(--primary);
}

.models__note {
  padding-top: 14px;
  color: var(--primary);
}

@media (max-width: 1100px) {
  .models__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .models__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

