/* ============================================
   Recorrência Ativa - Identidade visual
   ============================================ */

:root {
    --ra-primary: #047857;
    --ra-primary-light: #059669;
    --ra-primary-dark: #065f46;
    --ra-accent: #10b981;
    --ra-bg: #f8fafc;
    --ra-bg-alt: #f1f5f9;
    --ra-text: #0f172a;
    --ra-text-muted: #64748b;
    --ra-border: #e2e8f0;
    --ra-white: #ffffff;
    --ra-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --ra-shadow-lg: 0 10px 40px rgba(4, 120, 87, 0.12);
    --ra-radius: 12px;
    --ra-radius-lg: 20px;
    --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}
.btn-cta {
    background: var(--ra-white);
    color: var(--ra-primary);
    border: 1px solid var(--ra-primary-dark);
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
}
.btn-cta:hover {
    background: var(--ra-accent);
    color: var(--ra-white);
    border: 1px solid var(--ra-primary-dark);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ra-text);
    background: var(--ra-bg);
    -webkit-font-smoothing: antialiased;
}

/* ---- Navbar ---- */
.ra-navbar {
    background: var(--ra-primary-dark) !important;
    padding: 0.75rem 0;
    box-shadow: var(--ra-shadow);
}

.ra-navbar .navbar-brand {
    color: var(--ra-white) !important;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ra-navbar .navbar-brand img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

.ra-navbar .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
}

.ra-navbar .nav-link:hover {
    color: var(--ra-white) !important;
    background: rgba(255,255,255,0.1);
}

.ra-navbar .btn-nav-cta {
    background: var(--ra-white);
    color: var(--ra-primary-dark);
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    border: none;
}

.ra-navbar .btn-nav-cta:hover {
    background: var(--ra-bg);
    color: var(--ra-primary-dark);
}

/* ---- Hero ---- */
.ra-hero {
    padding: 6rem 0 5rem;
    background: linear-gradient(180deg, var(--ra-primary-dark) 0%, #0a4d3c 100%);
    color: var(--ra-white);
    position: relative;
    overflow: hidden;
}

.ra-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E");
    pointer-events: none;
}

.ra-hero .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: var(--ra-white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.ra-hero h1 {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.ra-hero .hero-lead {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 520px;
    margin-bottom: 2rem;
}

.ra-hero .btn-hero-primary {
    background: var(--ra-white);
    color: var(--ra-primary-dark);
    font-weight: 700;
    padding: 0.9rem 1.75rem;
    border-radius: 10px;
    border: none;
    box-shadow: var(--ra-shadow-lg);
}

.ra-hero .btn-hero-primary:hover {
    background: var(--ra-bg);
    color: var(--ra-primary-dark);
    transform: translateY(-1px);
}

.ra-hero .btn-hero-secondary {
    background: transparent;
    color: var(--ra-white);
    font-weight: 600;
    padding: 0.9rem 1.75rem;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.5);
}

.ra-hero .btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--ra-white);
    border-color: rgba(255,255,255,0.8);
}

/* Hero mockup (painel fictício) */
.ra-hero-mockup {
    background: var(--ra-white);
    border-radius: var(--ra-radius-lg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    padding: 1.25rem;
    color: var(--ra-text);
}

.ra-hero-mockup .mockup-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ra-hero-mockup .mockup-row:last-child {
    margin-bottom: 0;
}

.ra-hero-mockup .mockup-card {
    flex: 1;
    background: var(--ra-bg-alt);
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ra-primary-dark);
    border: 1px solid var(--ra-border);
}

.ra-hero-mockup .mockup-card i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    opacity: 0.9;
}

/* ---- Seções genéricas ---- */
.ra-section {
    padding: 4.5rem 0;
}

.ra-section-alt {
    background: var(--ra-bg-alt);
}

.ra-section-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--ra-text);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.ra-section-subtitle {
    font-size: 1.1rem;
    color: var(--ra-text-muted);
    max-width: 560px;
    margin: 0 auto 3rem;
}

/* ---- Como funciona (steps) ---- */
.ra-steps {
    counter-reset: step;
}

.ra-step {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 2rem;
}

.ra-step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--ra-primary);
    color: var(--ra-white);
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-step h4 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.ra-step p {
    color: var(--ra-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ---- Cards de funcionalidade ---- */
.ra-feature-card {
    background: var(--ra-white);
    border-radius: var(--ra-radius-lg);
    padding: 2rem;
    height: 100%;
    border: 1px solid var(--ra-border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ra-feature-card:hover {
    box-shadow: var(--ra-shadow-lg);
    transform: translateY(-4px);
}

.ra-feature-card .ra-feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(4, 120, 87, 0.1);
    color: var(--ra-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.ra-feature-card h4 {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.ra-feature-card p {
    color: var(--ra-text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ---- Planos ---- */
.ra-pricing-card {
    background: var(--ra-white);
    border-radius: var(--ra-radius-lg);
    padding: 2.25rem;
    height: 100%;
    border: 2px solid var(--ra-border);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ra-pricing-card:hover {
    border-color: var(--ra-primary-light);
    box-shadow: var(--ra-shadow-lg);
}

.ra-pricing-card.ra-pricing-featured {
    border-color: var(--ra-primary);
    box-shadow: 0 0 0 1px var(--ra-primary), var(--ra-shadow-lg);
}

.ra-pricing-card .ra-price {
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--ra-primary-dark);
    margin: 0.5rem 0 0.25rem;
}

.ra-pricing-card .ra-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ra-text-muted);
}

.ra-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.ra-pricing-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
}

.ra-pricing-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    background: var(--ra-primary);
    border-radius: 50%;
}

.ra-pricing-card .btn-primary {
    background: var(--ra-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    width: 100%;
}

.ra-pricing-card .btn-primary:hover {
    background: var(--ra-primary-dark);
}

/* ---- FAQ ---- */
.ra-accordion .accordion-item {
    background: var(--ra-white);
    border: 1px solid var(--ra-border);
    border-radius: var(--ra-radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.ra-accordion .accordion-button {
    font-weight: 600;
    background: var(--ra-white) !important;
    color: var(--ra-text);
    box-shadow: none !important;
}

.ra-accordion .accordion-button:not(.collapsed) {
    color: var(--ra-primary);
    border-bottom: 1px solid var(--ra-border);
}

.ra-accordion .accordion-body {
    color: var(--ra-text-muted);
    padding-top: 0;
}

/* ---- CTA final ---- */
.ra-cta-strip {
    background: var(--ra-primary-dark);
    color: var(--ra-white);
    padding: 4rem 0;
    text-align: center;
}

.ra-cta-strip h2 {
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.ra-cta-strip p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.ra-cta-strip .btn {
    background: var(--ra-white);
    color: var(--ra-primary-dark);
    font-weight: 700;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    border: none;
}

.ra-cta-strip .btn:hover {
    background: var(--ra-bg);
    color: var(--ra-primary-dark);
}

/* ---- Footer ---- */
.ra-footer {
    background: #0a3d2e;
    color: var(--ra-white);
    padding: 4rem 0 2rem;
}

.ra-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.ra-footer a:hover {
    color: var(--ra-white);
}

.ra-footer .footer-brand {
    color: var(--ra-white);
    font-weight: 700;
}

.ra-footer .footer-brand img {
    height: 36px;
    margin-bottom: 1rem;
    opacity: 0.95;
    filter: brightness(0) invert(1);
}

.ra-footer h6 {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--ra-white);
}

.ra-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ra-footer ul li {
    margin-bottom: 0.5rem;
}

.ra-footer .footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Utilitários */
.ra-text-primary { color: var(--ra-primary) !important; }
.ra-bg-primary { background: var(--ra-primary) !important; }
