/* Consertix 1.1 — cadastro simples, páginas por público, slides, verificação. */

/* ---------- Escolha do tipo de conta ---------- */
.cx-role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cx-role-opt { position: relative; cursor: pointer; margin: 0; }
.cx-role-opt input { position: absolute; opacity: 0; inset: 0; }
.cx-role-opt > span { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .9rem .8rem; border: 2px solid var(--cx-line); border-radius: 16px; background: #fff; transition: border-color .15s, background .15s; }
.cx-role-opt i { font-size: 1.6rem; color: var(--cx-primary-2); }
.cx-role-opt.pro i { color: var(--cx-accent); }
.cx-role-opt strong { font-size: 1rem; line-height: 1.2; color: var(--cx-ink); }
.cx-role-opt small { color: var(--cx-muted); font-size: .82rem; line-height: 1.25; }
.cx-role-opt input:checked + span { border-color: var(--cx-primary-2); background: var(--cx-primary-50); box-shadow: 0 0 0 3px rgba(14, 94, 111, .12); }
.cx-role-opt.pro input:checked + span { border-color: var(--cx-accent); background: var(--cx-accent-50); box-shadow: 0 0 0 3px rgba(22, 163, 74, .14); }
.cx-role-opt input:focus-visible + span { outline: 3px solid var(--cx-primary-2); outline-offset: 2px; }
.cx-cta-big { min-height: 58px; font-size: 1.15rem; font-weight: 800; border-radius: 16px; }
button[aria-busy="true"], .btn.is-busy { pointer-events: none; opacity: .8; }
.btn.is-busy::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: cxspin .7s linear infinite; margin-right: .5em; vertical-align: -.15em; }
@keyframes cxspin { to { transform: rotate(360deg); } }

/* ---------- Página de entrada ---------- */
.cx-home { padding: 2rem 0 2.5rem; background: linear-gradient(180deg, #fff 0%, var(--cx-bg) 100%); }
@media (min-width: 992px) { .cx-home { padding: 3.5rem 0 4rem; } }
.cx-path { display: flex; flex-direction: column; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; border: 2px solid var(--cx-line); color: var(--cx-ink); box-shadow: var(--cx-shadow); transition: transform .15s, border-color .15s, box-shadow .15s; }
.cx-path:hover, .cx-path:focus-visible { border-color: var(--cx-accent); color: var(--cx-ink); box-shadow: var(--cx-shadow-lg); }
.cx-path.pro:hover, .cx-path.pro:focus-visible { border-color: var(--cx-primary-2); }
.cx-path:active { transform: scale(.99); }
.cx-path-img { display: block; aspect-ratio: 1408 / 768; background: var(--cx-primary-50); }
.cx-path-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cx-path-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.2rem; flex: 1; }
.cx-path-body strong { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.cx-path-body > span:not(.btn):not(.cx-path-kicker) { color: var(--cx-muted); }
.cx-path-body .btn { margin-top: auto !important; }
.cx-path-kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--cx-accent-600); }
.cx-path.pro .cx-path-kicker { color: var(--cx-primary-2); }
.cx-home-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; font-size: .9rem; color: var(--cx-muted); }
.cx-home-trust i { color: var(--cx-accent); margin-right: .3rem; }

/* ---------- Heróis por público ---------- */
.cx-hero-story { padding-top: 1.25rem; }
@media (min-width: 992px) { .cx-hero-story { padding-top: 3.5rem; } }
.cx-benefits { list-style: none; padding: 0; display: grid; gap: .45rem; }
.cx-benefits li { display: flex; gap: .55rem; align-items: flex-start; line-height: 1.35; }
.cx-benefits i { color: var(--cx-accent); margin-top: .12rem; }
.cx-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.cx-hero-cta .btn-xl { min-height: 56px; }
.cx-hero-login { font-size: 1rem; }
.cx-hero-login a { font-weight: 700; }
.cx-pill-accent { background: var(--cx-accent-50); color: var(--cx-accent-600); }
.cx-howto { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
@media (min-width: 768px) { .cx-howto { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.cx-howto li { display: flex; gap: .75rem; align-items: flex-start; }
.cx-howto li strong { display: block; line-height: 1.25; }
.cx-howto li span:not(.cx-step-num) { display: block; color: var(--cx-muted); font-size: .9rem; }
.cx-howto .cx-step-num { flex-shrink: 0; }
.cx-sticky-cta { position: sticky; bottom: 0; z-index: 20; display: flex; gap: .5rem; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--cx-line); backdrop-filter: blur(6px); }

/* ---------- Slideshow ---------- */
.cx-story { position: relative; }
.cx-story-viewport { position: relative; border-radius: 20px; overflow: hidden; background: #0f1e2e; box-shadow: var(--cx-shadow-lg); touch-action: pan-y; }
.cx-story-slide { margin: 0; display: none; }
.cx-story-slide.is-active { display: block; animation: cxfade .45s ease; }
@keyframes cxfade { from { opacity: .35; } to { opacity: 1; } }
.cx-story-frame { aspect-ratio: 1408 / 768; width: 100%; }
.cx-story-frame img { width: 100%; height: 100%; object-fit: contain; display: block; } /* imagem inteira: rostos e legendas nunca cortados */
.cx-story-note { background: #fff; color: var(--cx-ink); padding: .8rem 1rem; font-size: .98rem; line-height: 1.4; min-height: 4.4em; display: flex; gap: .6rem; align-items: flex-start; }
.cx-story-num { flex-shrink: 0; font-size: .75rem; font-weight: 800; color: var(--cx-muted); background: var(--cx-bg); border-radius: 999px; padding: .15rem .5rem; margin-top: .1rem; }
.cx-story-controls { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .6rem; }
.cx-story-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.cx-story-btn:hover { border-color: var(--cx-primary-2); }
.cx-story-dots { display: flex; gap: 0; margin: 0 .25rem; }
.cx-story-dot { width: 28px; height: 44px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.cx-story-dot span { width: 9px; height: 9px; border-radius: 999px; background: #c5cfd8; transition: width .2s, background .2s; }
.cx-story-dot.is-active span { width: 22px; background: var(--cx-accent); }
.cx-story-foot { font-size: .8rem; color: var(--cx-muted); text-align: center; margin: .4rem 0 0; }
@media (prefers-reduced-motion: reduce) { .cx-story-slide.is-active { animation: none; } .cx-story-dot span { transition: none; } }

/* ---------- Avisos ---------- */
.cx-banner { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; border-radius: 14px; margin-bottom: 1rem; background: var(--cx-primary-50); color: var(--cx-ink); font-size: .95rem; line-height: 1.35; }
.cx-banner > i { font-size: 1.35rem; flex-shrink: 0; }
.cx-banner.wait { background: var(--cx-warning-50); } .cx-banner.wait > i { color: var(--cx-warning); }
.cx-banner.bad { background: var(--cx-danger-50); } .cx-banner.bad > i { color: var(--cx-danger); }
.cx-banner.ok { background: var(--cx-accent-50); } .cx-banner.ok > i { color: var(--cx-accent); }
.cx-banner.info > i { color: var(--cx-primary-2); }
.cx-banner .btn { flex-shrink: 0; }
.cx-banner > div, .cx-banner > .flex-fill { flex: 1 1 0% !important; min-width: 0; }
@media (max-width: 575px) { .cx-banner { flex-wrap: wrap; } .cx-banner .btn { flex-basis: 100%; } }
.cx-nextstep { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 16px; background: #fff; border: 1px dashed var(--cx-accent); color: var(--cx-ink); }
.cx-nextstep:hover { color: var(--cx-ink); background: var(--cx-accent-50); }
.cx-nextstep-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--cx-accent-50); color: var(--cx-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.cx-nextstep small { display: block; color: var(--cx-muted); font-size: .78rem; }
.cx-nextstep strong { display: block; }
.cx-nextstep span span, .cx-nextstep .flex-fill > span { display: block; color: var(--cx-muted); font-size: .88rem; line-height: 1.3; }

/* ---------- Estados da verificação ---------- */
.cx-vsteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.cx-vsteps li { display: flex; gap: .8rem; position: relative; padding-bottom: 1rem; }
.cx-vsteps li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--cx-line); }
.cx-vsteps li.is-done:not(:last-child)::after { background: var(--cx-accent); }
.cx-vstep-dot { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--cx-line); color: #b3bec8; font-size: .9rem; z-index: 1; }
.cx-vsteps li.is-done .cx-vstep-dot { background: var(--cx-accent); border-color: var(--cx-accent); color: #fff; }
.cx-vsteps li.is-current .cx-vstep-dot { border-color: var(--cx-primary-2); color: var(--cx-primary-2); font-size: .6rem; }
.cx-vsteps li.is-bad .cx-vstep-dot { background: var(--cx-danger); border-color: var(--cx-danger); color: #fff; }
.cx-vsteps strong { display: block; line-height: 1.25; }
.cx-vsteps small { display: block; color: var(--cx-muted); }
.cx-vsteps li.is-todo strong { color: var(--cx-muted); font-weight: 600; }
.cx-vsteps li.is-bad small { color: var(--cx-danger); font-weight: 600; }

/* ---------- Envio com pré-visualização dentro da caixa ---------- */
.cx-upload-inline .cx-drop { position: relative; overflow: hidden; }
.cx-upload-inline.has-preview .cx-drop { min-height: 190px; padding: 0; background: #0f1e2e; border-style: solid; }
.cx-upload-inline .cx-inline-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cx-upload-inline.has-preview .cx-drop-icon, .cx-upload-inline.has-preview .cx-drop-text, .cx-upload-inline.has-preview .cx-drop-btn { display: none; }
.cx-upload-inline.has-preview .cx-file-list, .cx-upload-inline .cx-upload-count { display: none !important; }
.cx-inline-bar { display: none; gap: .5rem; margin-top: .5rem; }
.cx-upload-inline.has-preview .cx-inline-bar { display: flex; }
.cx-inline-bar .btn { flex: 1; }
.cx-inline-name { font-size: .85rem; color: var(--cx-muted); overflow-wrap: anywhere; margin-top: .35rem; }

/* ---------- Cartão de trabalho aberto ---------- */
.cx-jcard { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; height: 100%; }
.cx-jcard.is-urgent { border-left: 4px solid var(--cx-warning); }
.cx-jcard-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cx-jcard-cat { font-size: .8rem; font-weight: 700; color: var(--cx-primary-2); text-transform: uppercase; letter-spacing: .04em; }
.cx-jcard-title { font-size: 1.1rem; font-weight: 800; color: var(--cx-ink); line-height: 1.3; overflow-wrap: anywhere; }
.cx-jcard-title:hover { color: var(--cx-primary-2); }
.cx-jcard-facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; font-size: .9rem; color: var(--cx-muted); }
.cx-jcard-facts i { width: 1.2em; margin-right: .35rem; color: var(--cx-primary-2); }
.cx-jcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; padding-top: .35rem; }
.cx-jcard-actions .btn { min-height: 46px; white-space: normal; padding-left: .5rem; padding-right: .5rem; font-size: .95rem; line-height: 1.15; }
