/* Arquivo: public/assets/css/app.css */
/* Versao: 1.2.0 */
/* Descricao: Estilos do site publico com linguagem visual SaaS moderna. */

:root {
    --site-bg: #f4f7fb;
    --site-surface: rgba(255, 255, 255, 0.82);
    --site-text: #10233c;
    --site-muted: #60708a;
    --site-primary: #0f766e;
    --site-primary-dark: #0b5b55;
    --site-secondary: #d97706;
    --site-accent: #0f4c81;
    --site-border: rgba(157, 174, 198, 0.24);
    --site-shadow: 0 24px 60px rgba(16, 35, 60, 0.12);
    --site-shadow-soft: 0 14px 34px rgba(16, 35, 60, 0.08);
    --site-radius-lg: 24px;
    --site-radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--site-text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 76, 129, 0.12), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

img {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-topbar {
    background: #0d2034;
    color: #f7fbfb;
    font-size: 0.92rem;
}

.site-topbar__inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-topbar a {
    color: #8ee4d7;
    font-weight: 700;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(248, 251, 255, 0.84);
    border-bottom: 1px solid rgba(157, 174, 198, 0.18);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.brand {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 18px;
    font-weight: 700;
    color: var(--site-muted);
}

.site-nav a:hover {
    color: var(--site-text);
}

.site-main {
    min-height: calc(100vh - 180px);
}

.section-compact {
    padding-top: 28px;
}

.hero {
    padding: 88px 0 52px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hero h1,
.section-head h1,
.section-head h2,
.detail-panel h1,
.detail-panel h2,
.panel-lite h2,
.panel-lite h3,
.card h3,
.timeline-card h3,
.cta-panel h2 {
    font-family: "Newsreader", serif;
    letter-spacing: -0.02em;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.06;
    margin: 0 0 16px;
}

.hero p,
.card p,
.timeline-card p,
.detail-list,
.field-help,
.search-summary,
.site-footer p,
.footer-list {
    color: var(--site-muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--site-accent);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero__actions,
.detail-actions,
.payment-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-form {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-form--page {
    margin: 0 0 20px;
}

.hero__card,
.card,
.detail-panel,
.panel-lite {
    background: var(--site-surface);
    border: 1px solid var(--site-border);
    border-radius: 28px;
    box-shadow: var(--site-shadow-soft);
    backdrop-filter: blur(16px);
}

.hero__card,
.card,
.detail-panel,
.panel-lite,
.timeline-card,
.summary-card,
.review-card,
.payment-modal,
.hint-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero__card:hover,
.card:hover,
.detail-panel:hover,
.panel-lite:hover,
.timeline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--site-shadow);
}

.hero__card {
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.hero__card::after {
    content: "";
    position: absolute;
    inset: auto -40px -40px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.16), transparent 70%);
}

.hero-kpis {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-kpi,
.summary-card,
.review-card,
.hint-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(157, 174, 198, 0.18);
}

.hero-kpi {
    min-width: 130px;
    padding: 14px 16px;
    border-radius: var(--site-radius-md);
    box-shadow: 0 10px 24px rgba(16, 35, 60, 0.08);
}

.hero-kpi strong {
    display: block;
    font-size: 1.05rem;
}

.hero-kpi span {
    color: var(--site-muted);
    font-size: 0.9rem;
}

.hero__card ul {
    margin: 16px 0 0;
    padding-left: 18px;
    color: var(--site-muted);
    line-height: 1.9;
}

.section {
    padding: 48px 0 62px;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28));
    border-top: 1px solid rgba(157, 174, 198, 0.12);
    border-bottom: 1px solid rgba(157, 174, 198, 0.12);
}

.section-head {
    margin-bottom: 24px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.timeline-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--site-border);
    border-radius: var(--site-radius-lg);
    box-shadow: var(--site-shadow-soft);
}

.timeline-card strong,
.stacked-step strong,
.hint-card strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--site-primary);
    font-size: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.catalog-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 252, 0.85));
    border: 1px solid var(--site-border);
    border-radius: 28px;
    box-shadow: var(--site-shadow-soft);
}

.catalog-hero--search {
    margin-bottom: 22px;
}

.catalog-hero__content {
    max-width: 62ch;
}

.catalog-hero__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.metric-chip {
    min-width: 168px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(157, 174, 198, 0.18);
    border-radius: 20px;
    text-align: left;
}

.metric-chip strong {
    display: block;
    font-size: 1.8rem;
}

.metric-chip span {
    color: var(--site-muted);
}

.card {
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.category-card {
    min-height: 240px;
}

.card-document--premium {
    min-height: 100%;
}

.card-document {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-document__footer,
.card-document__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-actions-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tag,
.status-pill,
.btn,
.wizard-step span {
    border-radius: 999px;
}

.tag {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 12px;
    background: rgba(15, 118, 110, 0.1);
    color: var(--site-primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.tag-soft {
    background: rgba(15, 76, 129, 0.08);
    color: var(--site-accent);
}

.icon-orb {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 16px 28px rgba(16, 35, 60, 0.14);
}

.icon-orb svg {
    width: 24px;
    height: 24px;
}

.icon-orb--teal {
    background: linear-gradient(135deg, #0f766e, #16958b);
}

.icon-orb--amber {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(16, 35, 60, 0.08);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--site-primary);
    color: #fff;
}

.btn-secondary {
    border-color: var(--site-border);
    background: #fff;
}

.btn-block {
    width: 100%;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f766e 0%, #0f4c81 100%);
    color: #fff;
    box-shadow: 0 20px 45px rgba(15, 76, 129, 0.22);
}

.cta-panel .eyebrow {
    color: #d8f5ef;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--site-muted);
    font-size: 0.95rem;
}

.detail-grid,
.payment-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
}

.detail-panel {
    padding: 30px;
}

.detail-panel--spotlight {
    position: relative;
    overflow: hidden;
}

.detail-panel--spotlight::after {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.1), transparent 70%);
}

.document-head {
    display: grid;
    gap: 18px;
}

.document-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 24px;
}

.feature-strip__item {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(157, 174, 198, 0.16);
}

.feature-strip__item strong {
    display: block;
    margin-bottom: 6px;
}

.feature-strip__item span {
    color: var(--site-muted);
}

.detail-sidebar {
    display: grid;
    gap: 18px;
}

.panel-lite {
    padding: 22px;
}

.panel-lite--highlight {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 253, 0.92));
}

.detail-list {
    margin: 0;
    padding-left: 18px;
}

.detail-list--checks {
    list-style: none;
    padding-left: 0;
}

.detail-list--checks li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 14px;
}

.detail-list--checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f766e, #0f4c81);
}

.price-box {
    margin: 24px 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(15, 76, 129, 0.08));
    display: inline-grid;
    gap: 8px;
}

.price-box strong,
.review-card strong {
    font-size: 2rem;
}

.public-form-grid,
.summary-grid,
.payment-status-row,
.payment-hints,
.review-grid {
    display: grid;
    gap: 18px;
}

.public-form-grid,
.summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-status-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0;
}

.payment-hints {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.public-form-grid .form-field,
.form-field {
    display: grid;
    gap: 8px;
}

.form-field--full,
.form-actions {
    grid-column: 1 / -1;
}

.public-form-grid input,
.public-form-grid select,
.public-form-grid textarea,
.search-form input,
#pix_code {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(157, 174, 198, 0.26);
    padding: 14px 16px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.public-form-grid input:focus,
.public-form-grid select:focus,
.public-form-grid textarea:focus,
.search-form input:focus,
#pix_code:focus {
    outline: none;
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.public-col-25,
.public-col-33,
.public-col-50 {
    grid-column: span 1;
}

.public-col-66,
.public-col-75,
.public-col-100 {
    grid-column: span 2;
}

.field-error {
    color: #b42318;
    font-size: 0.92rem;
}

.choice-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.choice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--site-muted);
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--site-border);
    border-radius: 14px;
}

.choice-item input {
    width: auto;
}

.summary-card,
.review-card,
.hint-card {
    padding: 18px;
    border-radius: 18px;
}

.summary-card span,
.status-pill,
.review-list dt {
    color: var(--site-muted);
}

.summary-card--pulse strong,
.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.live-status i,
.mini-checklist span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #12b76a;
}

.live-status i {
    box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.4);
    animation: pulse 1.6s infinite;
}

.wizard-shell {
    position: relative;
    overflow: hidden;
}

.wizard-progress {
    margin: 28px 0 24px;
    display: grid;
    gap: 18px;
}

.wizard-progress__bar {
    width: 100%;
    height: 10px;
    background: rgba(157, 174, 198, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.wizard-progress__fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0f766e, #0f4c81);
    transition: width 0.35s ease;
}

.wizard-progress__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(157, 174, 198, 0.16);
    color: var(--site-muted);
}

.wizard-step span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(157, 174, 198, 0.16);
    font-weight: 800;
}

.wizard-step.is-active {
    color: var(--site-text);
    border-color: rgba(15, 118, 110, 0.18);
    background: rgba(255, 255, 255, 0.9);
}

.wizard-step.is-active span {
    background: linear-gradient(135deg, #0f766e, #0f4c81);
    color: #fff;
}

.js .wizard-panel {
    display: none;
}

.js .wizard-panel.is-active {
    display: block;
    animation: fadeSlide 0.35s ease;
}

.wizard-panel__head {
    margin-bottom: 22px;
}

.review-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.review-list div {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(157, 174, 198, 0.16);
}

.review-list dd {
    margin: 0;
    font-weight: 700;
}

.mini-checklist,
.stacked-steps {
    display: grid;
    gap: 12px;
}

.mini-checklist div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mini-checklist span {
    box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.08);
}

.stacked-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
}

.payment-modal {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 253, 0.96));
}

.payment-modal__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 360px;
    border-radius: 24px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(15, 118, 110, 0.12), transparent 48%), #f6fbff;
}

.payment-modal__glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 76, 129, 0.18), transparent 70%);
}

.payment-modal__content {
    display: grid;
    gap: 18px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(157, 174, 198, 0.18);
}

.status-pill--primary {
    background: rgba(15, 118, 110, 0.1);
    color: var(--site-primary);
}

.pix-box {
    display: flex;
    justify-content: center;
}

.pix-image {
    width: min(280px, 100%);
    background: #fff;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid var(--site-border);
    box-shadow: 0 18px 40px rgba(16, 35, 60, 0.1);
}

.qr-placeholder {
    display: grid;
    justify-items: center;
    gap: 16px;
    color: var(--site-muted);
}

.spinner {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(15, 118, 110, 0.16);
    border-top-color: var(--site-primary);
    animation: rotate 0.9s linear infinite;
}

.spinner-lg {
    width: 58px;
    height: 58px;
    border-width: 4px;
}

.search-form--track {
    max-width: 760px;
}

.search-summary--panel {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(157, 174, 198, 0.16);
    border-radius: 999px;
}

.empty-card,
.unit-card {
    gap: 14px;
}

.empty-card {
    display: grid;
    justify-items: start;
}

.thumb-placeholder {
    min-height: 180px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(15, 76, 129, 0.12));
    border: 1px dashed rgba(157, 174, 198, 0.28);
}

.alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.alert-success {
    background: #e6f7ed;
    border-color: #b9e4ca;
}

.alert-error {
    background: #fdecec;
    border-color: #f0c6c6;
}

.site-footer {
    margin-top: 48px;
    padding: 48px 0;
    background: #0d2034;
    color: #e8f3f2;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 24px;
}

.site-footer h2,
.site-footer h3 {
    margin-top: 0;
}

.footer-list {
    margin: 0;
    padding-left: 18px;
    line-height: 1.9;
}

@media (max-width: 900px) {
    .timeline-grid,
    .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-grid,
    .payment-shell,
    .public-form-grid,
    .summary-grid,
    .review-grid,
    .payment-status-row,
    .payment-modal,
    .payment-hints,
    .feature-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .hero__grid,
    .timeline-grid,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .catalog-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .catalog-hero__meta {
        width: 100%;
        align-items: stretch;
    }

    .site-header__inner {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 14px 0;
    }

    .site-topbar__inner {
        flex-direction: column;
        justify-content: center;
        padding: 10px 0;
    }

    .search-form,
    .card-document__footer,
    .card-document__meta,
    .detail-actions,
    .hero-kpis {
        flex-direction: column;
        align-items: stretch;
    }

    .wizard-progress__steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.45);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(18, 183, 106, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(18, 183, 106, 0);
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
