/*
  /sistemas: page CSS inside the visuals. The hero's pair (Audire window, Apurapp phone), the sector cards,
  the three phones and the Audire and Agire screens in the tabs tours.
  Linked after assets/site.css.
*/

/* the home page's collage scale puts the h1 under the h2 here: this page keeps the h1 the largest */
:root { --ly-scale: 1; }

/* ---------------------------------------------------------------- #apurapp: three phones on the lit ground */
.phones--3 { gap: var(--s-4); inset: 0 var(--s-5); align-items: center; }
.phones--3 .device { width: calc((100% - 2 * var(--s-4)) / 3 - 14px); max-width: 214px; padding: 7px; border-radius: 30px; }
.phones--3 .device > img { border-radius: 23px; }
@media (max-width: 639px) { .phones--3 { gap: var(--s-3); inset: var(--s-5) var(--s-4) auto; justify-content: center; } .phones--3 .device { width: calc(50% - var(--s-2) - 12px); max-width: none; padding: 6px; border-radius: 24px; } .phones--3 .device:nth-child(3) { display: none; } .phones--3 .device > img { border-radius: 18px; } }

@media (min-width: 1024px) { #apurapp .wrap > .grid { flex: 1 1 0; min-height: 0; } #apurapp .frame { --ratio: 0px; } }
@media (min-width: 640px) and (max-width: 1023px) { #apurapp .frame { --ratio: 70%; } }
/* a phone: the heading and the line, then the phones, then the capabilities and the link, so the picture shows on the section's first screen */
@media (max-width: 639px) {
  #apurapp .wrap > .grid { display: flex; flex-direction: column; gap: var(--s-6); }
  #apurapp .stack-col { display: contents; }
  #apurapp h2 { order: 1; } #apurapp .t-lead { order: 2; } #apurapp .frame { order: 3; } #apurapp .points { order: 4; } #apurapp .link { order: 5; }
}

@media (max-width: 1023px) { .points > li { max-width: none; } }

/* a phone: the split hero's h1 keeps three lines at its 48-character stress length (layout-v4.md, hero-lines) */
@media (max-width: 639px) { .hero--split h1 { font-size: 32px; } }


/* #setores: four sector cards, an icon over the name */
.setores .card { gap: var(--s-2); }
.setor__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: var(--s-3);
              background: #e3eefb; color: #0b4f9c; }
.setor__ico svg { width: 22px; height: 22px; }
/* #audire and #agire: a tabs tour (sections-library, tabs-tour). The tabs are buttons; a click shows
   that tab's two lines and its screen together (system.js). The panels keep one height and the frame
   one size, so nothing jumps; the screen sits on the lit ground, cut by the frame's right and bottom. */
.tour { align-items: start; }
.tour__quote { margin: 0; max-width: 46ch; }
.tour .tabs { margin-top: var(--s-2); }
.tour__panels { min-height: calc(3 * 1.55em); max-width: 46ch; }
.tour__panels p { margin: 0; }
.tour__frame { --ratio: 88%; background: var(--ground-bg); border-color: transparent; padding: 0; }
.tour__frame > .tour__stage { position: absolute; inset: 0; max-width: none; }
.tour__shot { position: absolute; margin: 0; left: clamp(20px, 3.4vw, 48px); top: clamp(20px, 3.4vw, 48px); width: calc(100% - clamp(20px, 3.4vw, 48px) + 12%); }
.tour__shot[hidden] { display: none; }
.tour__shot > img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 0 0 1px rgb(6 43 69 / .08), 0 24px 60px -28px rgb(6 43 69 / .45); }
/* the second tour mirrors the first: the frame left, the text right */
@media (min-width: 1024px) { .tour--mirror > .tour__frame { grid-column: 1 / span 6; grid-row: 1; } .tour--mirror > .tour__text { grid-column: 8 / span 5; grid-row: 1; } }
/* a phone: the sectors take two whole screens; the Bridge quote stays on the larger screens */
@media (max-width: 639px) { #setores { --hm: 2; } .tour__quote { display: none; } .tour__panels { min-height: calc(4 * 1.55em); } .tour__shot { width: 165%; } }
