/* =====================================================================
   CARTEIRA INVEST — LANDING (layout inspirado no CryptoEmprestimo)
   Verde sólido da marca · sem degradê
   ===================================================================== */

:root {
    --ink: #161a26;
    --ink-2: #1f2433;
    --ink-line: #2f3545;
    --bg: #ececed;
    --card: #ffffff;
    --text: #161a26;
    --muted: #8b93a7;
    --muted-2: #4a5160;
    --line: #e3e5ea;
    --line-soft: #f0f1f4;
    --green: #2C71CE;        /* azul do logo antigo (CARTEIRA) */
    --green-bright: #1AA2B2; /* teal do logo antigo (INVEST) */
    --green-soft: #e6eefb;   /* azul claro para fundos de ícone */
    --ok: #2C71CE;
    --warn: #f3a52e;
    --danger: #e23b3b;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body.lp {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Space Grotesk', 'Manrope', sans-serif; line-height: 1.2; margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }

.brand-mark { width: 50px; height: 50px; display: inline-block; flex: none; border-radius: 10px; }

/* ===== Top nav ===== */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(22,26,38,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 0.95rem; letter-spacing: .08em; text-decoration: none; }
.brand-logo { height: 70px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.08; }
.brand-name { text-transform: uppercase; }
.brand-name .c1 { color: #2C71CE; }
.brand-name .c2 { color: #1AA2B2; }
.brand-tagline { color: #ffffff; font-size: .6rem; font-weight: 500; letter-spacing: .01em; opacity: 1; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: #b8bdcc; text-decoration: none; font-weight: 600; font-size: .92rem; }
.nav-links a:not(.btn):hover { color: #fff; }

.btn {
    display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
    border-radius: 11px; padding: 8px 8px; font-family: 'Manrope', sans-serif; font-weight: 700;
    font-size: .95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent;
    transition: transform .05s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #1AA2B2; color: black; }
.btn-primary:hover { background: #0b95a5; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline-light { background: transparent; color: #fff; border-color: var(--ink-line); }
.btn-outline-light:hover { border-color: #6b7488; }
.btn-lg { padding: 8px 26px; font-size: 1.02rem; }

@media (max-width: 855px) { .nav-links a:not(.btn) { display: none; } }

/* Celular: aproxima o logo do canto esquerdo */
@media (max-width: 600px) {
    .topbar .wrap { padding-left: 7px; padding-right: 7px; }
}

/* ===== Hero ===== */
.hero { background: var(--ink); color: #fff; padding: 74px 0 86px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem; background: rgba(26,162,178,.14);
    border: 1px solid rgba(26,162,178,.4); color: var(--green-bright); border-radius: 999px;
    padding: 6px 14px; font-size: .82rem; font-weight: 700; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.35rem); font-weight: 700; letter-spacing: -.02em; max-width: 18ch; }
.hero h1 .accent { color: #5a8ccf; }
.hero h1 .accent-2 { color: white; }
.hero p.lead { color: #c7ccd8; font-size: clamp(1.02rem, 2.2vw, 1.22rem); max-width: 54ch; margin: 20px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { color: var(--muted); font-size: .84rem; margin-top: 20px; display: flex; align-items: center; gap: .5rem; }
.hero-note i { color: var(--green-bright); }

.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 10px; padding: 9px 14px; font-size: .86rem; font-weight: 600; color: #d4d8e2; }
.chip i { color: var(--green-bright); }
.chip b { color: #fff; }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-tag { color: var(--green); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; letter-spacing: -.02em; max-width: 22ch; }
.section-sub { color: var(--muted-2); font-size: 1.05rem; max-width: 62ch; margin-top: 14px; }

.alt { background: var(--card); }

/* ===== Cards ===== */
.grid { display: grid; gap: 18px; margin-top: 40px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.alt .feature { background: var(--bg); border-color: var(--line); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: 1.3rem; margin-bottom: 16px; }
.feature h3 { font-size: 1.16rem; margin-bottom: 8px; }
.feature p { color: var(--muted-2); font-size: .96rem; margin: 0; }

/* ===== Passos ===== */
.steps { counter-reset: step; display: grid; gap: 16px; margin-top: 44px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; }
.step::before {
    counter-increment: step; content: counter(step);
    width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.25rem;
    background: var(--green); color: #fff;
}
.step h3 { font-size: 1.18rem; margin-bottom: 6px; }
.step p { color: var(--muted-2); margin: 0; font-size: .98rem; }
.step p .tk { font-weight: 700; color: var(--ink); }

/* ===== Segurança ===== */
.safe { background: var(--ink); color: #fff; }
.safe .section-tag { color: var(--green-bright); }
.safe .section-title { color: #fff; }
.safe .section-sub { color: #c7ccd8; }
.safe-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 860px) { .safe-grid { grid-template-columns: 1fr; } }
.safe-item { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 16px; padding: 24px; }
.safe-item .ico { color: var(--green-bright); font-size: 1.5rem; margin-bottom: 12px; }
.safe-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: #fff; }
.safe-item p { color: #b8bdcc; font-size: .95rem; margin: 0; }

/* ===== Planos ===== */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 18px; margin-top: 44px; justify-content: center; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; }
.plan.featured { border: 1.5px solid #0b95a5; box-shadow: 0 14px 40px rgba(44,113,206,.12); }
.plan .badge-pop { position: absolute; top: -12px; left: 32px; background: #0b95a5; color: #fff; font-weight: 700; font-size: .74rem; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; margin-bottom: 4px; }
.plan .plan-desc { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.plan .price { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; letter-spacing: -.02em; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 20px 0; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted-2); font-size: .95rem; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.plan li i { color: GREEN; margin-top: 2px; }
.plan li.lim { color: #b45309; }
.plan li.lim i { color: #d97706; }
.plan .btn { width: 100%; }

/* ===== App ===== */
.app-band {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "text visual"
        "cta  visual";
    column-gap: 48px;
    row-gap: 26px;
    align-items: center;
    margin-top: 12px;
}
.app-text { grid-area: text; align-self: end; display: flex; flex-direction: column; }
.app-cta { grid-area: cta; align-self: start; }
.app-visual { grid-area: visual; }
@media (max-width: 860px) {
    .app-band {
        grid-template-columns: 1fr;
        grid-template-areas: "text" "visual" "cta";
        row-gap: 28px;
        justify-items: center;
    }
    .app-text { align-self: auto; }
    .app-cta { align-self: auto; }
}
.app-band .ico-badge { width: 54px; height: 54px; border-radius: 14px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; }
.btn-store { display: inline-flex; align-items: center; gap: .8rem; background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 24px; text-decoration: none; transition: background .15s; }
.btn-store:hover { background: var(--ink-2); }
.btn-store i { font-size: 1.9rem; }
.btn-store .s { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .04em; color: #b8bdcc; line-height: 1; }
.btn-store .b { display: block; font-size: 1.08rem; font-weight: 700; line-height: 1.4; }
.app-phone { max-height: 520px; width: auto; }

/* ===== Glossário ===== */
.glossary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; margin-top: 40px; }
@media (max-width: 860px) { .glossary { grid-template-columns: 1fr; } }
.term { border-bottom: 1px solid var(--line); padding: 18px 0; }
.term dt { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.term dt i { color: var(--green); }
.term dd { margin: 6px 0 0; color: var(--muted-2); font-size: .96rem; }

/* ===== FAQ ===== */
.faq { margin-top: 40px; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
details[open] { border-color: var(--green); }
summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "\F282"; font-family: "bootstrap-icons"; color: var(--muted); font-weight: 400; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(180deg); }
details p { color: var(--muted-2); margin: 0 0 20px; font-size: .98rem; }

/* ===== CTA final ===== */
.cta-final { background: var(--ink-2); }
.cta-card { background: var(--ink); border: 1px solid var(--ink-line); border-radius: 24px; padding: 56px 44px; text-align: center; }
.cta-card h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; max-width: 24ch; margin: 0 auto; }
.cta-card p { color: #c7ccd8; font-size: 1.08rem; margin: 18px auto 0; max-width: 52ch; }
.cta-card .hero-cta { justify-content: center; }

/* ===== Footer ===== */
footer { background: var(--ink); color: #b8bdcc; padding: 54px 0 40px; border-top: 1px solid var(--ink-line); }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.foot-brand { max-width: 34ch; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { color: var(--muted); font-size: .92rem; margin: 0; }
.foot-col .foot-title { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { color: #b8bdcc; text-decoration: none; font-size: .92rem; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.foot-links a i { color: var(--green-bright); }
.foot-links a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid var(--ink-line); margin-top: 40px; padding-top: 24px; color: var(--muted); font-size: .84rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
