/*
 * RP-API-2026 — Home publica (vendas)
 * Autor: rpDev
 */

:root {
    --primary:        #7c3aed;
    --primary-dark:   #6d28d9;
    --pink:           #ec4899;
    --gradient:       linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --gradient-bright:linear-gradient(135deg, #8b5cf6 0%, #f472b6 100%);
    --bg:             #fbfbff;
    --bg-soft:        #f4f4fb;
    --text:           #1f2937;
    --text-muted:     #6b7280;
    --border:         #e5e7eb;
}

* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
}

/* HEADER */
.hd {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.hd-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
}
.hd-icon {
    width: 36px; height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: grid; place-items: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(124,58,237,.30);
}
.hd-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}
.hd-nav a:hover { color: var(--primary); }

.btn-primary-rp {
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(124,58,237,.30);
    transition: transform .1s, box-shadow .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-primary-rp:hover { background: var(--gradient-bright); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(124,58,237,.40); }

.btn-soft-rp {
    background: rgba(124,58,237,.08);
    color: var(--primary);
    border: 1.5px solid rgba(124,58,237,.2);
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-soft-rp:hover { background: rgba(124,58,237,.15); color: var(--primary-dark); }

.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* HERO */
.hero {
    background:
        radial-gradient(ellipse at 30% 20%, rgba(236,72,153,.13), transparent 55%),
        radial-gradient(ellipse at 70% 80%, rgba(124,58,237,.13), transparent 55%),
        var(--bg);
    padding: 80px 16px 70px;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124,58,237,.08);
    color: var(--primary);
    border: 1px solid rgba(124,58,237,.22);
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .82rem;
    margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -.02em;
}
.grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 30px;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}
.hero-mini {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    font-size: .9rem;
    color: var(--text-muted);
}
.hero-mini i { color: var(--primary); margin-right: 4px; }

/* BLOCO */
.bloco { padding: 80px 16px; }
.bloco-bg { background: var(--bg-soft); }
.bloco-titulo {
    text-align: center;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    margin: 0 0 8px;
}
.bloco-titulo.text-start { text-align: left; }
.bloco-sub {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 18px;
}

/* STEP CARDS */
.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(15,23,42,.04);
    height: 100%;
}
.step-num {
    width: 42px; height: 42px;
    background: var(--gradient);
    color: #fff;
    border-radius: 12px;
    display: grid; place-items: center;
    font-weight: 800;
    margin-bottom: 14px;
    font-size: 1.1rem;
    box-shadow: 0 6px 16px rgba(124,58,237,.30);
}
.step-card h5 { font-weight: 700; margin: 0 0 6px; }
.step-card p { color: var(--text-muted); margin: 0; font-size: .94rem; }

/* PLANOS */
.plano {
    background: #fff;
    border-radius: 18px;
    padding: 30px 28px 26px;
    border: 2px solid var(--border);
    box-shadow: 0 4px 14px rgba(15,23,42,.04);
    position: relative;
    transition: transform .15s, box-shadow .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.plano:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15,23,42,.08); }
.plano.destaque { border-color: var(--primary); }
.plano.destaque::before {
    content: 'MAIS POPULAR';
    position: absolute;
    top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: .7rem;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .08em;
}
.plano-nome { font-size: 1.15rem; font-weight: 700; }
.plano-preco { font-size: 2.5rem; font-weight: 800; margin: 10px 0 4px; line-height: 1; }
.plano-preco small { font-size: .95rem; color: var(--text-muted); font-weight: 500; }
.plano-anual { color: var(--text-muted); font-size: .86rem; margin-bottom: 16px; }
.plano-feats { list-style: none; padding: 0; margin: 16px 0 22px; flex-grow: 1; }
.plano-feats li {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-muted);
    font-size: .92rem;
    padding: 5px 0;
}
.plano-feats i { color: #10b981; }
.plano-feats li.off { opacity: .55; text-decoration: line-through; }
.plano-feats li.off i { color: var(--text-muted); }
.plano-cta {
    display: block;
    text-align: center;
    background: var(--gradient);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(124,58,237,.25);
    transition: transform .1s;
}
.plano-cta:hover { background: var(--gradient-bright); color: #fff; transform: translateY(-1px); }

/* CODE BLOCK */
.codeblock {
    background: #0f1117;
    color: #e5e7eb;
    border-radius: 14px;
    padding: 22px 24px;
    overflow-x: auto;
    box-shadow: 0 12px 30px rgba(15,23,42,.20);
    font-family: 'Fira Code', monospace;
    font-size: .9rem;
}
.codeblock pre { margin: 0; }
.codeblock .cm { color: #6b7280; }
.codeblock .cs { color: #f472b6; }

/* SPINNER */
.spinner-rp-l {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: rpSpin .7s linear infinite;
    display: inline-block;
}
@keyframes rpSpin { to { transform: rotate(360deg); } }

/* FOOTER */
.footer {
    background: var(--bg-soft);
    padding: 24px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .9rem;
}
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--primary); }

/* utility */
code { background: rgba(124,58,237,.08); color: var(--primary); padding: 2px 6px; border-radius: 4px; font-family: 'Fira Code', monospace; font-size: .9em; }

/* MODAL TRIAL */
.rp-modal-bg {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px;
    overflow-y: auto;
    animation: rpFadeIn .15s ease-out;
}
@keyframes rpFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rp-modal {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    animation: rpSlideDn .25s ease-out;
}
@keyframes rpSlideDn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.rp-modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rp-modal-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.rp-modal-close {
    background: transparent;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}
.rp-modal-close:hover { color: var(--text); }
.rp-modal-body { padding: 18px 22px 22px; }
.rp-modal .lbl {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.rp-modal .inp {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: .95rem;
    color: var(--text);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.rp-modal .inp:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.rp-alert {
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: .85rem;
}
.spinner-rp-mini {
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rpSpin .7s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}
.text-muted-rp { color: var(--text-muted); }
.text-muted-rp a { color: var(--primary); }
