/*
  /seguranca: page CSS that sits inside the visuals. The hero collage pieces (the exposure list, the change log,
  the report cards), the lists inside frames, the six area cards and the three steps of what the reader receives.
  Linked after assets/site.css; the exposure list itself (.xp) and the chips live there.
*/

/* ---------------------------------------------------------------- hero: the dealt triptych, three sets of pieces in % of the collage */
/* the h1 stays above the h2 in size on this page (the home page's collage scale would put it under) */
:root { --ly-scale: 1; }
/* the dealt large button is the page's primary at its normal size: one button look across the page */
.hero--triptych .hero__cta .btn { height: var(--btn-h); padding-inline: var(--s-5); font-size: var(--t-body); }
.ly-collage { container-type: size; }
.ly-collage .xp, .ly-collage .sg { background: #fff; color: #10212f; }
.ly-collage .xp::after { display: none; }
.xp--hero { box-shadow: 0 1px 2px rgb(6 43 69 / .1), 0 22px 48px -22px rgb(6 43 69 / .4); }
.xp--hero .xp__row { padding-block: clamp(7px, 2.4cqh, 18px); }
.xp--hero .xp__bar { height: clamp(36px, 6.6cqh, 48px); }
.xp--log .xp__row, .xp--base .xp__row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 140px; }
@container (max-width: 520px) { .xp--log .xp__row, .xp--base .xp__row { grid-template-columns: minmax(0, 1fr) auto; } }
.xp--log .xp__th, .xp--base .xp__th { padding-block: 10px; }
.xp--log .xp__row > span:first-child, .xp--base .xp__row > span:first-child { font-size: 14px; }

.ly-collage .sg { display: grid; align-content: start; gap: 10px; padding: 16px 18px; font: 400 13px/1.4 var(--font-text); }
.sg__title { font: 500 14px/1.3 var(--font-text); color: #062b45; }
.sg__line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; color: #33495c; }
.sg__k { min-width: 44px; color: #566b7e; }
.sg__pair { display: flex; align-items: baseline; gap: 8px; color: #33495c; }
.sg__pair b { font: 500 28px/1 var(--font-display); letter-spacing: -0.02em; color: #062b45; font-variant-numeric: tabular-nums; }
.sg__step { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; color: #33495c; }
.sg__step i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e3eefb; color: #0b4f9c; font: 500 12px/1 var(--font-text); font-style: normal; }

/* the second row of every set reaches the 96% mark, so the pause disc sits on a piece (layout-v4.md, the triptych) */
.ly-collage .sg--base { bottom: 4%; }

@media (max-width: 639px) {
  .xp--hero .xp__row { padding-block: 9px; }
  .xp--hero .xp__row:nth-child(n+4) { display: none; }
  .ly-collage .sg { padding: 12px 14px; gap: 6px; }
  .sg__step:nth-of-type(n+3) { display: none; }
  .sg--num .sg__pair:last-child { display: none; }
  .sg__line:nth-of-type(n+3) { display: none; }
}

/* ---------------------------------------------------------------- #revisamos and #como: the frame around a list */
.frame--xp { padding: clamp(var(--s-4), 3vw, var(--s-7)); }
.frame--xp > .xp { width: 100%; }
.frame--xp > .xp::after { display: none; }


/* ---------------------------------------------------------------- #revisamos: the owner's questions as rows, one finding drawn as the risk matrix */
.areas { width: 100%; }
.areas > li { padding-block: var(--s-3); }
.areas .rows__name { grid-column: 1; }
.xp--matrix .xp__row { grid-template-columns: 130px minmax(0, 1fr); padding-block: 15px; align-items: start; }
.xp--matrix .xp__row > span:first-child { font-size: 14px; color: #566b7e; font-weight: 400; }
.xp--matrix .xp__row > span:nth-child(2) { font-size: 14px; color: #10212f; }
.xp--matrix .xp__row .chip { justify-self: start; }
.xp--matrix .xp__bar { height: 56px; }
.xp--matrix .xp__bar .chip { margin-left: auto; }
@container (max-width: 520px) { .xp--matrix .xp__row { grid-template-columns: 100px minmax(0, 1fr); } .xp--matrix .xp__row > span:nth-child(2) { grid-row: auto; padding-left: 0; } .xp--matrix .xp__bar > span:not(.chip) { display: none; } }

/* ---------------------------------------------------------------- the two split sections: the frame runs to the section's foot */
@media (min-width: 1024px) {
  :is(#revisamos, #como) .wrap > .grid { flex: 1 1 0; min-height: 0; }
  :is(#revisamos, #como) .frame { --ratio: 0px; }
}

/* the end-of-work card in the FAQ column: a list of its own on the page ground */
.xp--end { margin-top: var(--s-4); box-shadow: 0 0 0 1px var(--line-strong, var(--line)); width: 100%; }
.xp--end::after { display: none; }
.xp--end .xp__row { grid-template-columns: minmax(0, 1fr) auto; }
.xp--end .xp__bar .chip { margin-left: auto; }
@container (max-width: 520px) { .xp__bar > span:not(.chip) { display: none; } }

/* ---------------------------------------------------------------- lists inside frames take the room the frame gives them */
.xp--base .xp__row { padding-block: 22px; font-size: 14px; }
.xp--base .xp__row > span:first-child { font-size: 15px; }
.xp--base .xp__th { padding-block: 12px; }
.xp--base .xp__bar { height: 56px; }
.xp--end .xp__row { padding-block: 20px; }
.xp--end .xp__row > span:nth-child(2) { grid-row: auto; padding-left: 0; }
.xp--end .xp__bar { height: 56px; }
#perguntas .faq > .faq__item { padding-block: var(--s-6); }

/* #como: the deliverables in the lit frame */
#como .frame { background: var(--ground-bg); }
@media (min-width: 640px) and (max-width: 1023px) { #como .frame { --ratio: 0px; } }

/* ---------------------------------------------------------------- tablet: the text and the list sit side by side, so each section stays one screen */
@media (min-width: 640px) and (max-width: 1023px) {
  :is(#revisamos, #como) .wrap > .grid > :first-child { grid-column: 1 / span 6; }
  :is(#revisamos, #como) .wrap > .grid > :last-child { grid-column: 7 / span 6; }
  #revisamos .frame, #como .frame { margin-top: 0; }
  #revisamos .frame { --ratio: 0px; }
  #perguntas .wrap > .grid { display: flex; flex-direction: column; gap: var(--s-5); }
  #perguntas .stack-col { display: contents; }
  #perguntas h2 { order: 1; } #perguntas .t-lead { order: 2; } #perguntas .faq { order: 3; } #perguntas .xp--end { order: 4; margin-top: var(--s-3); }
  #perguntas .faq > .faq__item { padding-block: var(--s-4); }
}
@media (max-width: 1023px) {
  .points > li { max-width: none; }
  .ly-collage__set > .ly-piece[style*="width: 54%"] { width: 44% !important; }
  .ly-collage__set > .ly-piece[style*="width: 34%"] { width: 48% !important; left: auto !important; right: 4% !important; }
}

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

/* #contratar: the two ways to hire, each with its list */
#contratar .xp--end .xp__row { padding-block: 24px; }
@media (min-width: 640px) { #contratar .card > p { min-height: 4.4em; } }
.contratar__cta { margin-top: var(--s-6); }
@media (min-width: 640px) and (max-width: 1023px) {
  #contratar .xp--end .xp__row { padding-block: 34px; }
}

/* a phone: the first set keeps the list and one note, full width, so no piece covers another's words */
@media (max-width: 639px) {
  .ly-collage__set > .ly-piece.sg--num { display: none; }
  .ly-collage__set > .ly-piece[style*="width: 54%"] { width: 92% !important; }
}

/* #por-que: each figure carries its source under it */
.facts3 .src { display: block; margin-top: var(--s-2); font-size: var(--t-small); line-height: 1.4; color: var(--muted); }

/* a laptop screen under 900px tall: the section grows with its list (site.css), so the split's grid keeps its own height */
@media (min-width: 1280px) and (max-height: 899px) {
  :is(#revisamos, #como) .wrap > .grid { flex: 1 0 auto; }
}
