@import url("./content-page.css");

.together-hero::before { content: "A DOIS"; }

.together-scene {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
  margin: 0;
  border: 3px solid #111;
  border-radius: 1.5rem;
  background: #d9b57f;
  box-shadow: 9px 9px 0 #111;
}

.together-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(17 17 17 / .04) 35%, rgb(17 17 17 / .52));
  pointer-events: none;
}

.together-scene__home { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }
.together-scene__cesar { position: absolute; z-index: 2; right: -1.2rem; bottom: -.3rem; width: min(58%, 17rem); max-height: 23.5rem; object-fit: contain; object-position: bottom; filter: drop-shadow(-5px 5px 0 rgb(17 17 17 / .58)); }
.together-scene .bora-speech { position: absolute; z-index: 3; top: .8rem; left: .7rem; width: min(17rem, 76%); padding: .8rem; font-size: .82rem; }
.together-scene figcaption { position: absolute; z-index: 4; right: .55rem; bottom: .55rem; left: .55rem; max-width: 62%; padding: .55rem .65rem; border: 2px solid #111; border-radius: .65rem; background: #fff; color: #111; font-size: .63rem; font-weight: 800; line-height: 1.35; }

.together-conversations { display: grid; gap: .8rem; }
.together-conversation { display: grid; grid-template-columns: auto 1fr; gap: .8rem; min-height: 9rem; align-items: start; padding: 1rem; border: 3px solid #111; border-radius: 1rem; background: #fff; box-shadow: 5px 5px 0 #111; }
.together-conversation:nth-child(3n + 2) { background: var(--bora-color-accent); }
.together-conversation:nth-child(3n) { background: #ffe3f2; }
.together-conversation__icon { display: grid; width: 2.8rem; aspect-ratio: 1; place-items: center; border: 2px solid #111; border-radius: .75rem; background: var(--bora-color-positive); font-size: 1.15rem; }
.together-conversation h3 { margin: .15rem 0 .4rem; font-size: 1.15rem; }
.together-conversation p { margin: 0; color: var(--bora-color-muted); font-size: .79rem; font-weight: 650; }

.together-equation { display: grid; gap: .75rem; }
.together-equation__item { min-height: 10rem; padding: 1.1rem; border: 3px solid #111; border-radius: 1rem; background: #fff; color: #111; box-shadow: 5px 5px 0 var(--equation-color, var(--bora-color-accent)); }
.together-equation__item:nth-child(2) { --equation-color: var(--bora-color-positive); }
.together-equation__item:nth-child(3) { --equation-color: var(--bora-color-secondary); }
.together-equation__item:nth-child(4) { --equation-color: var(--bora-color-primary); }
.together-equation__item span { display: grid; width: 2rem; aspect-ratio: 1; place-items: center; margin-bottom: 1.5rem; border: 2px solid #111; border-radius: .55rem; background: var(--equation-color); color: #111; font-weight: 950; }
.together-equation__item:nth-child(3) span, .together-equation__item:nth-child(4) span { color: #fff; }
.together-equation__item h3 { margin: 0 0 .5rem; text-transform: uppercase; }
.together-equation__item p { margin: 0; color: var(--bora-color-muted); font-size: .82rem; font-weight: 650; }
.together-equation__result { padding: 1rem; border: 3px solid #fff; border-radius: 1rem; background: var(--bora-color-positive); color: #111; font-weight: 850; }

.together-agreement { display: grid; gap: 1.1rem; overflow: hidden; padding: 1.15rem; border: 3px solid #111; border-radius: 1.5rem; background: var(--bora-color-accent); box-shadow: 9px 9px 0 #111; }
.together-agreement > * { min-width: 0; }
.together-agreement__copy { max-width: 64rem; }
.together-agreement__copy h2 { max-width: 14ch; margin: .8rem 0; text-transform: uppercase; overflow-wrap: anywhere; hyphens: auto; }
.together-agreement__copy p { max-width: 58rem; color: #3b382f; font-weight: 700; }
.together-agreement__list { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; counter-reset: agreements; }
.together-agreement__list li { position: relative; min-width: 0; counter-increment: agreements; padding: .85rem .85rem .85rem 3.3rem; border: 3px solid #111; border-radius: .85rem; background: #fff; font-size: .82rem; font-weight: 750; overflow-wrap: anywhere; }
.together-agreement__list li::before { content: counter(agreements); position: absolute; top: .66rem; left: .72rem; display: grid; width: 1.75rem; aspect-ratio: 1; place-items: center; border: 2px solid #111; border-radius: .5rem; background: var(--bora-color-secondary); color: #fff; font-weight: 950; }
.together-agreement__note { margin: .75rem 0 0; padding: .9rem; border: 3px dashed #111; border-radius: .85rem; background: var(--bora-color-positive); color: #111; font-size: .8rem; font-weight: 800; overflow-wrap: anywhere; }

.together-article { max-width: 58rem; }
.together-article h3 { max-width: 17ch; }
.together-article__points { display: grid; gap: .75rem; margin: 1rem 0; }
.together-article__point { padding: .9rem; border: 3px solid #111; border-radius: .85rem; background: var(--bora-color-background); }
.together-article__point strong { display: block; margin-bottom: .3rem; }
.together-article__point p { margin: 0; font-size: .79rem; }
.together-source { margin-top: 1rem; padding: .9rem; border: 3px solid #111; border-radius: .85rem; background: #eaf0ff; font-size: .78rem; font-weight: 750; }
.together-source strong { display: block; margin-bottom: .35rem; }

.together-guide { display: grid; overflow: hidden; border: 3px solid #111; border-radius: 1.5rem; background: var(--bora-color-primary); color: #fff; box-shadow: 9px 9px 0 #111; }
.together-guide__image { min-height: 20rem; background: #dce7ec; }
.together-guide__image img { width: 100%; height: 100%; min-height: 20rem; object-fit: contain; object-position: center bottom; }
.together-guide__copy { align-self: center; padding: 1.25rem; }
.together-guide__copy h2 { margin: .8rem 0; text-transform: uppercase; }
.together-guide__copy p { color: rgb(255 255 255 / .84); font-weight: 650; }

.together-final-grid { display: grid; gap: 1.25rem; align-items: center; text-align: left; }
.together-final-grid h2, .together-final-grid p { margin-right: 0; margin-left: 0; }
.together-final-grid .bora-actions { justify-content: flex-start; }
.together-final-visual { display: grid; min-height: 20rem; align-items: end; overflow: hidden; border: 3px solid #fff; border-radius: 1.25rem; background: var(--bora-color-secondary); }
.together-final-visual img { width: min(100%, 17rem); max-height: 22rem; margin: 0 auto; object-fit: contain; object-position: bottom; }

@media (min-width: 42rem) {
  .together-scene { min-height: 33rem; }
  .together-scene__cesar { width: min(51%, 21rem); max-height: 29rem; }
  .together-scene figcaption { max-width: 50%; }
  .together-conversations, .together-equation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .together-equation__result { grid-column: 1 / -1; }
  .together-agreement { padding: 1.6rem; }
  .together-agreement__copy h2 { max-width: none; }
  .together-agreement__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .together-article__points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .together-guide { grid-template-columns: minmax(17rem, .8fr) minmax(0, 1.2fr); }
  .together-guide__copy { padding: 2rem; }
  .together-final-grid { grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr); }
}

@media (min-width: 64rem) {
  .together-conversations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .together-equation { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .together-article__points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
