/* =========================================================================
   Poupar.me - landing page
   Folha unica da pagina publica. Nao depende do template antigo
   (main.css / responsive.css / LineIcons / owl / nivo) - so do Bootstrap 5
   e do Font Awesome.
   ========================================================================= */

:root {
    --brand: #4e73df;
    --brand-600: #4361cb;
    --brand-700: #3852ac;
    --brand-050: #eef2fd;
    --brand-100: #dce3fb;

    --navy: #1e2746;
    --navy-700: #2f3d66;

    --success: #1cae7d;
    --success-050: #e8f8f2;
    --warning: #e9a13b;
    --danger: #e02d3c;

    --ink-900: #10131a;
    --ink-800: #1f2733;
    --ink-700: #3c4655;
    --ink-500: #6b7686;
    --ink-400: #8b95a5;

    --surface: #ffffff;
    --surface-alt: #f6f7fb;
    --line: #e4e7ee;
    --line-strong: #d3d8e3;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 3px rgba(16, 19, 26, .07), 0 1px 2px rgba(16, 19, 26, .04);
    --shadow: 0 6px 22px rgba(16, 19, 26, .09);
    --shadow-lg: 0 18px 48px rgba(16, 19, 26, .16);

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* -------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-700);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink-900);
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.2;
    margin: 0 0 .5rem;
}

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

a { color: var(--brand-600); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--brand-700); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.container { max-width: 1180px; }

/* -------------------------------------------------------------------------
   Tipografia utilitaria
   ------------------------------------------------------------------------- */
.eyebrow {
    display: inline-block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: .75rem;
}

.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }

.section-head { max-width: 46rem; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
.section-head p { font-size: 1.05rem; color: var(--ink-500); margin: 0; }

.lead { font-size: 1.08rem; color: var(--ink-500); }

/* -------------------------------------------------------------------------
   Botoes
   ------------------------------------------------------------------------- */
.btn-jz {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: .8rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s var(--ease);
}
.btn-jz:active { transform: translateY(1px); }

.btn-jz-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-jz-primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.btn-jz-light { background: #fff; border-color: #fff; color: var(--brand-700); }
.btn-jz-light:hover { background: var(--brand-050); border-color: var(--brand-050); color: var(--brand-700); }

.btn-jz-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-jz-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.btn-jz-outline { background: #fff; border-color: var(--line-strong); color: var(--ink-700); }
.btn-jz-outline:hover { background: var(--surface-alt); border-color: var(--ink-400); color: var(--ink-900); }

.btn-jz-block { width: 100%; }
.btn-jz-lg { padding: .95rem 1.9rem; font-size: 1rem; }

/* -------------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------------- */
.jz-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 0;
    transition: background-color .25s var(--ease), box-shadow .25s var(--ease), padding .25s var(--ease);
}

.jz-nav.is-stuck {
    background: rgba(30, 39, 70, .94);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08), var(--shadow);
    padding: .6rem 0;
}

.jz-nav .navbar-brand img { height: 34px; }

.jz-nav .nav-link {
    color: rgba(255, 255, 255, .85);
    font-size: .93rem;
    font-weight: 500;
    padding: .5rem .9rem;
    border-radius: var(--radius-sm);
}
.jz-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .12); }

.jz-nav .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    padding: .35rem .6rem;
    border-radius: var(--radius-sm);
}
.jz-nav .navbar-toggler:focus { box-shadow: none; }

@media (max-width: 991.98px) {
    .jz-nav .navbar-collapse {
        background: var(--navy);
        border-radius: var(--radius);
        margin-top: .75rem;
        padding: .75rem;
        box-shadow: var(--shadow-lg);
    }
    .jz-nav .navbar-nav .btn-jz { margin-top: .5rem; }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 150px 0 110px;
    background: linear-gradient(135deg, var(--navy) 0%, #2c3a6b 45%, var(--brand) 100%);
    color: #fff;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 90px;
    background: var(--surface);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .45;
    pointer-events: none;
}
.hero-glow-1 { width: 480px; height: 480px; background: #5b7cff; top: -160px; left: -120px; }
.hero-glow-2 { width: 380px; height: 380px; background: #22d3ee; bottom: -140px; right: 10%; opacity: .28; }

.hero .container { position: relative; z-index: 2; }

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    margin-bottom: 1.25rem;
}

.hero .hero-sub {
    color: rgba(255, 255, 255, .85);
    font-size: 1.12rem;
    max-width: 34rem;
    margin-bottom: 1.75rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: .35rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-checks {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
}
.hero-checks li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .88);
    font-size: .92rem;
}
.hero-checks i { color: #6ee7b7; }

/* Cartao de login */
.login-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    max-width: 25rem;
    margin-left: auto;
}

.login-card h2 { font-size: 1.3rem; margin-bottom: .25rem; }
.login-card .login-sub { color: var(--ink-500); font-size: .9rem; margin-bottom: 1.5rem; }

.login-card label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: .35rem;
}

.login-card .form-control {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    font-size: .95rem;
    color: var(--ink-900);
    background: var(--surface);
    margin-bottom: 1rem;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.login-card .form-control::placeholder { color: var(--ink-400); }
.login-card .form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-100);
}

.login-card .login-links {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: .45rem;
    text-align: center;
    font-size: .88rem;
}

.codigo-2fa {
    text-align: center;
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: .55rem;
}

/* -------------------------------------------------------------------------
   Barra de numeros
   ------------------------------------------------------------------------- */
.stats-bar {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: -60px;
    position: relative;
    z-index: 3;
    padding: 2rem 1rem;
}

.stat { text-align: center; padding: .5rem; }
.stat .stat-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ink-900);
    letter-spacing: -.03em;
    line-height: 1.1;
}
.stat .stat-label { font-size: .85rem; color: var(--ink-500); }

/* -------------------------------------------------------------------------
   Cards de funcionalidade
   ------------------------------------------------------------------------- */
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }

@media (max-width: 991.98px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: var(--brand-100);
}

.feature-card .fc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-050);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1.02rem; margin-bottom: .4rem; }
.feature-card p { font-size: .92rem; color: var(--ink-500); margin: 0; }

.feature-card.is-new { border-color: var(--brand); }
.tag-novo {
    display: inline-block;
    background: var(--success-050);
    color: #147956;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    padding: .15rem .55rem;
    margin-left: .45rem;
    vertical-align: middle;
}

/* -------------------------------------------------------------------------
   Blocos alternados de modulo
   ------------------------------------------------------------------------- */
.module-row { align-items: center; }
.module-row + .module-row { margin-top: 88px; }

.module-row h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1rem; }

.module-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.module-list li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .4rem 0;
    font-size: .97rem;
}
.module-list i { color: var(--success); margin-top: .3rem; flex: 0 0 auto; }

.module-visual {
    background: linear-gradient(135deg, var(--brand-050), #fff);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.module-visual img { display: block; margin: 0 auto; }

/* Mini mockup de painel */
.mock {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    font-size: .82rem;
}
.mock-bar {
    background: var(--surface-alt);
    border-bottom: 1px solid var(--line);
    padding: .6rem .9rem;
    display: flex;
    gap: .35rem;
    align-items: center;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-body { padding: 1.1rem; display: grid; gap: .7rem; }

.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mock-kpi {
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 10px;
    padding: .6rem .7rem;
}
.mock-kpi.is-in { border-left-color: var(--success); }
.mock-kpi.is-out { border-left-color: var(--danger); }
.mock-kpi span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-400); font-weight: 700; }
.mock-kpi strong { font-size: .95rem; color: var(--ink-900); }

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem .1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-500);
}
.mock-row:last-child { border-bottom: 0; }
.mock-row b { color: var(--ink-900); font-weight: 600; }
.mock-in { color: var(--success); font-weight: 700; }
.mock-out { color: var(--danger); font-weight: 700; }

/* -------------------------------------------------------------------------
   Planos
   ------------------------------------------------------------------------- */
.plan-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
@media (max-width: 991.98px) { .plan-grid { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; } }

.plan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.plan:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.plan.is-featured {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-100), var(--shadow);
}

.plan-flag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .9rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.plan h3 {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ink-500);
    margin-bottom: .75rem;
}

.plan-price { display: flex; align-items: baseline; gap: .25rem; margin-bottom: .35rem; }
.plan-price .cifra { font-size: 1.1rem; font-weight: 600; color: var(--ink-500); }
.plan-price .valor { font-size: 2.6rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.04em; line-height: 1; }
.plan-price .periodo { font-size: .9rem; color: var(--ink-500); }

.plan-para { font-size: .88rem; color: var(--ink-500); margin-bottom: 1.25rem; }

.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1 1 auto; }
.plan ul li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    padding: .42rem 0;
    font-size: .92rem;
    color: var(--ink-700);
}
.plan ul li i { color: var(--success); margin-top: .28rem; flex: 0 0 auto; font-size: .8rem; }
.plan ul li.is-off { color: var(--ink-400); }
.plan ul li.is-off i { color: var(--line-strong); }

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 1.05rem 1.25rem;
    font-weight: 600;
    color: var(--ink-900);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: .75rem;
    color: var(--ink-400);
    transition: transform .2s var(--ease);
    flex: 0 0 auto;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 1.25rem 1.15rem; color: var(--ink-500); font-size: .95rem; }

/* -------------------------------------------------------------------------
   CTA final
   ------------------------------------------------------------------------- */
.cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--brand) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    padding: 3.5rem 2rem;
    text-align: center;
}
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta p { color: rgba(255, 255, 255, .85); max-width: 38rem; margin: 0 auto 1.75rem; }
.cta-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   Contato
   ------------------------------------------------------------------------- */
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.contact-card label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--ink-700);
    margin-bottom: .35rem;
}

.contact-card .form-control {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    font-size: .95rem;
    color: var(--ink-900);
    background: var(--surface);
    margin-bottom: 1rem;
    font-family: inherit;
}
.contact-card .form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-100);
}

.captcha-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.captcha-row img { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-alt); }
.captcha-row .form-control { max-width: 9rem; margin-bottom: 0; text-transform: uppercase; }

.contact-side { display: grid; gap: 1rem; }
.contact-item {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem;
}
.contact-item .ci-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--brand-050);
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.contact-item strong { display: block; color: var(--ink-900); font-size: .95rem; }
.contact-item span { font-size: .9rem; color: var(--ink-500); }

.alert-jz {
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: .9rem;
    margin-bottom: 1rem;
}
.alert-jz-erro { background: #fdecee; border: 1px solid #f7c7cc; color: #b21f2c; }
.alert-jz-info { background: var(--brand-050); border: 1px solid var(--brand-100); color: var(--brand-700); }

/* -------------------------------------------------------------------------
   Rodape
   ------------------------------------------------------------------------- */
.jz-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
    padding: 56px 0 28px;
    font-size: .92rem;
}
.jz-footer h4 {
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.jz-footer a { color: rgba(255, 255, 255, .7); }
.jz-footer a:hover { color: #fff; }
.jz-footer ul { list-style: none; padding: 0; margin: 0; }
.jz-footer ul li { padding: .25rem 0; }
.jz-footer img { height: 32px; margin-bottom: 1rem; }

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: .86rem;
}

.zap-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1040;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: var(--shadow-lg);
    transition: transform .15s var(--ease);
}
.zap-float:hover { color: #fff; transform: scale(1.06); }

/* -------------------------------------------------------------------------
   Responsivo
   ------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    .hero { padding: 120px 0 90px; text-align: center; }
    .hero .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-checks { justify-content: center; }
    .login-card { margin: 2.5rem auto 0; }
    .stats-bar { margin-top: 2rem; }
    .module-row + .module-row { margin-top: 56px; }
    .module-visual { margin-bottom: 1.5rem; }
}

@media (max-width: 767.98px) {
    .section { padding: 64px 0; }
    .hero { padding: 110px 0 70px; }
    .hero::after { height: 40px; }
    .login-card { padding: 1.5rem; }
    .cta { padding: 2.5rem 1.25rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .mock-kpis { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
