/* Fechajob: page CSS for the marketing pages, loaded after the kit (public/assets).
   Only what the kit leaves to the page: what sits inside a visual (the app frame and the proposal in it),
   the logo's size, one --p-h per card group, a few tablet/phone height rules, and the kit's English
   UI words (credits) in Portuguese. Never a second button, card, grid or type scale. */

/* the logo: the name at the nav's 20px size; the square mark in the dark footer */
.nav__logo svg { height: 32px; width: auto; }
.footer__logo { width: auto; height: 36px; }

/* the close's name across the .wrap: its glyphs drawn whole (the kit's line box clips the cap tops) */
.close__word { overflow: visible; line-height: 1; }

/* under 360px the nav's button joins the menu sheet, so the name and the menu button fit the bar */
@media (max-width: 359px) {
  .nav:not(.is-open) .nav__actions { display: none; }
  .nav:not(.is-open) .nav__toggle { margin-left: auto; }
}
@media (max-width: 639px) { .nav__logo svg { height: 24px; } }

/* ---------------------------------------------------------------- app-frame (sections-library.md, app-frame) */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* the open item: the proposal as the client sees it at its own link (live HTML, kit tokens) */
.pp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; padding: 0; font-size: 13px; line-height: 20px; color: var(--u-ink); }
.pp__bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--u-line); }
.pp__url { flex: 1 1 auto; min-width: 0; padding: 4px 10px; border-radius: 8px; background: var(--u-fill); color: var(--u-muted); font-family: var(--font-mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp__state { flex: none; }
.pp__swap { display: inline-grid; }
.pp__swap > span { grid-area: 1 / 1; }
.pp__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; padding: 24px 28px 0; }
.pp__main, .pp__pay { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; min-width: 0; }
.pp__label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--u-muted); font-size: 12px; line-height: 16px; }
.pp__label img { width: 14px; height: 14px; }
.pp__title { margin: 0; font: 500 24px/30px var(--font-display); letter-spacing: -0.02em; }
.pp__from { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; color: var(--u-text-2); }
.pp__items { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--u-line); }
.pp__items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--u-line); }
.pp__items b, .pp__total b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp__total { display: flex; justify-content: space-between; margin: 4px 0 0; font-size: 15px; }
.pp__total b { font-size: 20px; }
.pp__terms { margin: 0; color: var(--u-muted); }
.pp__accept { position: relative; overflow: visible; display: inline-grid; place-items: center; height: 40px; margin-top: 8px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.pp__accept > span:not(.pp__cursor) { grid-area: 1 / 1; }
.pp__amount { margin: 0; font: 500 24px/30px var(--font-display); font-variant-numeric: tabular-nums; }
.pp__qr { width: 132px; padding: 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--u-line-2); }
.pp__qr svg { display: block; width: 100%; height: auto; }
.pp__code { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 8px; background: var(--u-fill); }
.pp__code > span:first-child { flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-size: 12px; color: var(--u-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp__badge { margin: 20px 28px 0; padding-top: 12px; border-top: 1px solid var(--u-line); color: var(--u-muted); font-size: 12px; }
.pp__cursor { position: absolute; left: 68%; top: 52%; width: 18px; height: 18px; pointer-events: none; opacity: 0; }
.pp__cursor svg { width: 18px; height: 18px; fill: var(--u-ink); stroke: #fff; stroke-width: 1; }
/* the loop (data-m-loop on the pane, one cycle of --m-cycle; the finished picture, accepted, at --m-still 0.6):
   the pointer comes to the button and presses it; the button and the status chip turn to accepted */
.pp__a2, .pp__s2 { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .app__pane--open[data-m-loop] .pp__cursor { animation: pp-cursor var(--m-cycle) linear infinite; }
  .app__pane--open[data-m-loop] .pp__a1, .app__pane--open[data-m-loop] .pp__s1 { animation: pp-before var(--m-cycle) step-end infinite; }
  .app__pane--open[data-m-loop] .pp__a2, .app__pane--open[data-m-loop] .pp__s2 { animation: pp-after var(--m-cycle) step-end infinite; }
  .app__pane--open[data-m-loop] .pp__accept { animation: pp-press var(--m-cycle) linear infinite; }
}
@media (prefers-reduced-motion: reduce) { .pp__a1, .pp__s1 { opacity: 0; } .pp__a2, .pp__s2 { opacity: 1; } }
@media (max-width: 639px) { .pp__a1, .pp__s1 { opacity: 0; } .pp__a2, .pp__s2 { opacity: 1; } }
@keyframes pp-before { 0% { opacity: 1; } 42% { opacity: 0; } 100% { opacity: 0; } }
@keyframes pp-after { 0% { opacity: 0; } 42% { opacity: 1; } 100% { opacity: 1; } }
@keyframes pp-press { 0%, 38% { transform: none; } 40% { transform: scale(0.96); } 44%, 100% { transform: none; } }
@keyframes pp-cursor {
  0% { opacity: 0; transform: translate(96px, 64px); }
  8% { opacity: 1; transform: translate(96px, 64px); }
  36% { opacity: 1; transform: translate(0, 0); animation-timing-function: ease-out; }
  40% { transform: scale(0.9); }
  44% { transform: none; }
  86% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
}
@media (max-width: 1279px) { .pp__body { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px; } }
@media (max-width: 639px) {
  .pp__body { grid-template-columns: minmax(0, 1fr); padding: 20px 16px 0; }
  .pp__bar { padding: 0 12px; }
  .pp__bar .ui-dots { display: none; }
  .pp__badge { margin-inline: 16px; }
}

/* the WhatsApp mark in the chat's head, on its own light tile */
.pp-wa { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- card groups */
#como-funciona .panel { --p-h: 336px; }
@media (max-width: 639px) { #como-funciona .panel { --p-h: 220px; } }

/* the statement (liquid-type): the Pix mark beside its label */
.pix__label { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--ink); }
.pix__label img { width: 20px; height: 20px; }

/* #para-quem: the photograph beside the words at 4:3, then the trades' row */
.quem__photo { --ratio: 75%; }
.quem__trades { margin-top: var(--s-8); }

/* #perguntas: the photograph under the head on the left column, 4:3 */
.faq__photo { --ratio: 75%; margin-top: var(--s-3); }

/* the plans: the button sits where the kit's plan button sits */
.plan > .btn { margin-top: var(--s-5); width: 100%; }

/* ---------------------------------------------------------------- /precos */
/* comparison-table (sections-library.md): rows on the grid, 48px, each closed by a 1px rule; the header row
   holds each plan's name, price and button */
.cmp__head { align-items: end; padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.cmp__plan { display: grid; gap: var(--s-2); }
.cmp__plan .plan__price { margin-top: 0; }
.cmp__plan .btn { margin-top: var(--s-3); justify-self: start; }
.cmp__row { align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
.cmp__feat { color: var(--ink); }
.cmp__yes svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.cmp__no { color: var(--muted); }
@media (max-width: 639px) {
  .cmp__head, .cmp__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--s-3); }
  .cmp__head > *, .cmp__row > * { grid-column: auto; }
  .cmp__plan .btn { display: none; }
  .cmp__plan .plan__price { font-size: 24px; }
  .cmp__plan .plan__price small { display: none; }
  .cmp__row { font-size: var(--t-small); padding-block: var(--s-2); }
}

/* the pinned chapters' drawn windows: one card each on the lit ground */
.sig { width: min(100%, 380px); padding: 20px; display: grid; gap: 8px; font-size: 13px; line-height: 20px; color: var(--u-ink); }
.sig .pp__accept { width: 100%; }
.sig--pay { justify-items: start; }
.sig--pay .pp__code { width: 100%; }
.sig--note { padding: 0; background: none; }

/* a phone: the hero's photograph shows whole (its float card would cover it), #para-quem fits its screen */
@media (max-width: 639px) {
  .hero--split .ly-float { display: none; }
  .quem__photo { --ratio: 56.25%; }
  .quem__trades { margin-top: var(--s-6); }
}

/* the legal row's first part: the brand and year, Privacy, Terms, on one baseline, wrapping on the left line */
.footer__legal-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }

/* a phone: the open proposal keeps its point (the items, the total, the accept button) inside the frame */
@media (max-width: 639px) {
  .pp__from, .pp__terms, .pp__pay, .pp__badge { display: none; }
}

/* #planos: on a desktop the head and the Grátis card stand in the wrap's grid (display: contents); on a phone
   (.g2m) they are the first screen and the Pro card the second */
.plans__a, .plans__b { display: contents; }
.plans__more--phone { display: none; }
@media (max-width: 639px) {
  .plans__a, .plans__b { display: grid; gap: var(--s-5); align-content: start; grid-column: 1 / -1; }
  .plans__a .plans__more { display: none; }
  .plans__more--phone { display: grid; }
  .plans .plan__for { min-height: 0; }
  .faq__photo { --ratio: 150%; } /* 2:3: a seção de 2 telas fecha sem sobra antes do rodapé */
}

/* /precos #sinal: the pinned chapters at rest on a phone stand as the section's two screens */
@media (max-width: 639px) { main > #sinal[data-moment]:not(.is-live) { min-height: 200lvh; } }
/* the live pinned stage starts its h2 on the page's top line (--padt), like every other section */
main #sinal[data-moment].is-live > .mo-pc__grid { align-content: start; padding-top: var(--padt); }
@media (max-width: 639px) { #sinal .mo-pc__visual.mo-pc__visual--lit { aspect-ratio: 1 / 1; } }

/* the tablet (layout-v4.md section 2): the stacked steps and plans take two screens there */
@media (min-width: 640px) and (max-width: 1279px) { #como-funciona { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { #planos { --h: 2; } }
