/* =============================================================================
   ContaPlan - Landing page
   Paleta: paz (azul calmaria) + prosperidade (verde esmeralda) + sucesso (dourado)
   Stack: CSS puro, variaveis, sem dependencias externas alem de Inter (Google Fonts)
   ========================================================================== */

/* ---------------------------------------------------------------------------
   1. Variaveis de tema
--------------------------------------------------------------------------- */
:root {
    /* Marca - paz e prosperidade */
    --brand-emerald: #0D9F6E;
    --brand-emerald-soft: #D1FAE5;
    --brand-emerald-hover: #0B8B60;
    --brand-deep: #064E3B;
    --brand-trust: #1E5F8E;
    --brand-trust-soft: #DBEAFE;
    --brand-gold: #F0B429;
    --brand-gold-soft: #FEF3C7;
    --brand-gold-hover: #D89A1F;

    /* Backgrounds e texto */
    --bg-warm: #FAFAF7;
    --bg-soft: #F4F5F2;
    --bg-card: #FFFFFF;
    --bg-night: #0F1B14;

    /* Tipografia */
    --color-text: #1F2937;
    --color-text-soft: #4B5563;
    --color-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-divider: #F3F4F6;

    /* Estados */
    --color-success: #059669;
    --color-danger: #DC2626;

    /* Spacing fluido */
    --section-y: clamp(64px, 8vw, 128px);
    --container-x: clamp(20px, 4vw, 32px);
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Sombras (suaves, nao agressivas) */
    --shadow-sm: 0 1px 2px rgba(15, 27, 20, 0.04), 0 1px 3px rgba(15, 27, 20, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(15, 27, 20, 0.06), 0 2px 4px -2px rgba(15, 27, 20, 0.04);
    --shadow-lg: 0 12px 24px -8px rgba(15, 27, 20, 0.10), 0 4px 8px -4px rgba(15, 27, 20, 0.06);
    --shadow-xl: 0 24px 48px -12px rgba(15, 27, 20, 0.18);
    --shadow-emerald: 0 12px 32px -8px rgba(13, 159, 110, 0.35);

    /* Transicoes */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition: 220ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);
}

[data-theme="dark"] {
    --bg-warm: #0F1B14;
    --bg-soft: #131F18;
    --bg-card: #1A2620;
    --color-text: #F3F4F6;
    --color-text-soft: #D1D5DB;
    --color-muted: #9CA3AF;
    --color-border: #2A3A30;
    --color-divider: #1F2D24;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.5);
}

/* ---------------------------------------------------------------------------
   2. Reset e base
--------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--bg-warm);
    overflow-x: hidden;
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-emerald);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-emerald-hover);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.2;
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------------------------------------------------------------------------
   3. Layout primitives
--------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-x);
    padding-right: var(--container-x);
}

.section {
    padding-top: var(--section-y);
    padding-bottom: var(--section-y);
}

.section-header {
    text-align: center;
    max-width: var(--container-narrow);
    margin: 0 auto clamp(40px, 6vw, 64px);
}

.section-header__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    background: var(--brand-emerald-soft);
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

[data-theme="dark"] .section-header__eyebrow {
    background: rgba(13, 159, 110, 0.15);
    color: var(--brand-emerald);
}

.section-header__title {
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
}

.section-header__subtitle {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--color-text-soft);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------------------
   4. Botoes
--------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 17px;
}

.btn--xl {
    padding: 20px 44px;
    font-size: 18px;
}

.btn--primary {
    background: var(--brand-emerald);
    color: #fff;
    box-shadow: var(--shadow-emerald);
}

.btn--primary:hover {
    background: var(--brand-emerald-hover);
    color: #fff;
    box-shadow: 0 16px 40px -10px rgba(13, 159, 110, 0.45);
}

.btn--gold {
    background: var(--brand-gold);
    color: var(--brand-deep);
}

.btn--gold:hover {
    background: var(--brand-gold-hover);
    color: var(--brand-deep);
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--brand-emerald);
    color: var(--brand-emerald);
}

.btn--white {
    background: #fff;
    color: var(--brand-deep);
}

.btn--white:hover {
    background: var(--bg-warm);
    color: var(--brand-deep);
}

.btn .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

/* ---------------------------------------------------------------------------
   5. Topbar urgencia (sticky)
--------------------------------------------------------------------------- */
.topbar {
    background: var(--brand-deep);
    color: #ECFDF5;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar__msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.topbar__msg .icon {
    width: 16px;
    height: 16px;
    color: var(--brand-gold);
}

.topbar__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-gold);
    color: var(--brand-deep);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.topbar__cta .icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.4;
}

.topbar__cta:hover {
    background: var(--brand-gold-hover);
    color: var(--brand-deep);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 180, 41, 0.4);
}

/* ---------------------------------------------------------------------------
   6. Header navegacao
--------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .site-header {
    background: rgba(15, 27, 20, 0.85);
}

.site-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: var(--color-text);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-trust) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: var(--shadow-emerald);
}

.brand__img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
}

.site-footer .brand__img {
    height: 36px;
}

.brand__img--dark { display: none; }
[data-theme="dark"] .brand__img--light { display: none; }
[data-theme="dark"] .brand__img--dark { display: block; }

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__link {
    color: var(--color-text-soft);
    font-weight: 500;
    font-size: 15px;
    transition: color var(--transition-fast);
}

.nav__link:hover {
    color: var(--brand-emerald);
}

.nav__cta {
    margin-left: 8px;
}

.nav__theme {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--color-text-soft);
    background: var(--bg-soft);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav__theme .icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.nav__theme:hover {
    background: var(--brand-emerald);
    color: #fff;
    border-color: var(--brand-emerald);
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .nav {
        gap: 12px;
    }
    .nav__link {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   7. Hero
--------------------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: clamp(56px, 8vw, 96px);
    padding-bottom: clamp(72px, 10vw, 128px);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 60% at 80% 0%, rgba(240, 180, 41, 0.12) 0%, transparent 60%),
        radial-gradient(60% 60% at 0% 0%, rgba(13, 159, 110, 0.10) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

@media (max-width: 960px) {
    .hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--brand-emerald-soft);
    color: var(--brand-deep);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    margin-bottom: 24px;
}

.hero__badge .icon {
    width: 14px;
    height: 14px;
}

[data-theme="dark"] .hero__badge {
    background: rgba(13, 159, 110, 0.15);
    color: var(--brand-emerald);
}

.hero__title {
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero__title .gradient-text {
    background: linear-gradient(120deg, var(--brand-emerald) 0%, var(--brand-trust) 50%, var(--brand-emerald) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
}

.hero__title .danger-text {
    color: var(--color-danger);
}

[data-theme="dark"] .hero__title .danger-text {
    color: #F87171;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero__subtitle {
    font-size: clamp(17px, 1.8vw, 20px);
    color: var(--color-text-soft);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 580px;
}

@media (max-width: 960px) {
    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

.hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

@media (max-width: 960px) {
    .hero__ctas {
        justify-content: center;
    }
}

.hero__proof {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
}

.hero__proof-avatars {
    display: flex;
}

.hero__proof-avatars span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-card);
    background: linear-gradient(135deg, var(--brand-emerald), var(--brand-trust));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    margin-left: -10px;
}

.hero__proof-avatars span:first-child {
    margin-left: 0;
}

.hero__proof-avatars span:nth-child(2) {
    background: linear-gradient(135deg, var(--brand-gold), #C97A0F);
}

.hero__proof-avatars span:nth-child(3) {
    background: linear-gradient(135deg, var(--brand-trust), var(--brand-deep));
}

.hero__proof-text {
    font-size: 14px;
    color: var(--color-text-soft);
}

.hero__proof-text strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Hero visual / mockup */
.hero__visual {
    position: relative;
}

.hero__mockup {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    animation: floatY 6s ease-in-out infinite;
    aspect-ratio: 16 / 11;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero__mockup-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-trust) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 40px;
}

.hero__mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hero__mockup-glow {
    position: absolute;
    inset: -20% -20% auto auto;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(240, 180, 41, 0.4) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

/* ---------------------------------------------------------------------------
   8. Faixa de confianca
--------------------------------------------------------------------------- */
.trust-bar {
    background: var(--bg-soft);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
}

.trust-bar__list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-soft);
    font-size: 14px;
    font-weight: 500;
}

.trust-bar__item .icon {
    width: 18px;
    height: 18px;
    color: var(--brand-emerald);
}

/* ---------------------------------------------------------------------------
   9. Pilares (4 cards)
--------------------------------------------------------------------------- */
.pilares__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 960px) {
    .pilares__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .pilares__grid {
        grid-template-columns: 1fr;
    }
}

.pilar {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pilar:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 159, 110, 0.3);
}

.pilar__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.pilar__icon .icon {
    width: 26px;
    height: 26px;
    stroke-width: 2;
}

.pilar--emerald .pilar__icon { background: var(--brand-emerald-soft); color: var(--brand-deep); }
.pilar--trust .pilar__icon   { background: var(--brand-trust-soft);   color: var(--brand-trust); }
.pilar--gold .pilar__icon    { background: var(--brand-gold-soft);    color: #92580A; }
.pilar--deep .pilar__icon    { background: rgba(6, 78, 59, 0.10);     color: var(--brand-deep); }

[data-theme="dark"] .pilar--emerald .pilar__icon { background: rgba(13, 159, 110, 0.15); color: var(--brand-emerald); }
[data-theme="dark"] .pilar--trust .pilar__icon   { background: rgba(30, 95, 142, 0.15); color: #93C5FD; }
[data-theme="dark"] .pilar--gold .pilar__icon    { background: rgba(240, 180, 41, 0.15); color: var(--brand-gold); }
[data-theme="dark"] .pilar--deep .pilar__icon    { background: rgba(13, 159, 110, 0.10); color: var(--brand-emerald); }

.pilar__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pilar__badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--brand-gold-soft);
    color: #92580A;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
}

.pilar__desc {
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   10. CTA intermediaria
--------------------------------------------------------------------------- */
.cta-mid {
    text-align: center;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 56px);
}

.cta-mid__title {
    font-size: clamp(22px, 2.5vw, 30px);
    margin-bottom: 8px;
}

.cta-mid__subtitle {
    color: var(--color-text-soft);
    margin-bottom: 24px;
}

/* ---------------------------------------------------------------------------
   11. Trilhas (tabs)
--------------------------------------------------------------------------- */
.trilhas__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.trilhas__tab {
    padding: 12px 22px;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-soft);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.trilhas__tab:hover {
    border-color: var(--brand-emerald);
    color: var(--brand-emerald);
}

.trilhas__tab .icon {
    width: 18px;
    height: 18px;
}

.trilhas__tab.is-active {
    background: var(--brand-deep);
    border-color: var(--brand-deep);
    color: #fff;
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .trilhas__tab.is-active {
    background: var(--brand-emerald);
    border-color: var(--brand-emerald);
}

.trilhas__panels {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.trilha {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow-md);
    animation: fadeSlide 380ms var(--ease-out);
}

.trilha.is-active {
    display: block;
}

@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.trilha__header {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.trilha__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--brand-emerald-soft);
    color: var(--brand-deep);
}

.trilha--gold .trilha__icon  { background: var(--brand-gold-soft); color: #92580A; }
.trilha--trust .trilha__icon { background: var(--brand-trust-soft); color: var(--brand-trust); }
.trilha--deep .trilha__icon  { background: rgba(6, 78, 59, 0.10); color: var(--brand-deep); }

/* Trilhas como etapas de saude financeira: vermelho -> laranja -> amarelo -> verde */
.trilha--stage-1 { border-top: 4px solid #dc2626; }
.trilha--stage-2 { border-top: 4px solid #ea580c; }
.trilha--stage-3 { border-top: 4px solid #eab308; }
.trilha--stage-4 { border-top: 4px solid #16a34a; }

.trilha--stage-1 .trilha__icon { background: rgba(220, 38, 38, 0.12);  color: #b91c1c; }
.trilha--stage-2 .trilha__icon { background: rgba(234, 88, 12, 0.12);  color: #c2410c; }
.trilha--stage-3 .trilha__icon { background: rgba(234, 179, 8, 0.15);  color: #a16207; }
.trilha--stage-4 .trilha__icon { background: rgba(22, 163, 74, 0.12);  color: #15803d; }

[data-theme="dark"] .trilha--stage-1 .trilha__icon { background: rgba(220, 38, 38, 0.22);  color: #fca5a5; }
[data-theme="dark"] .trilha--stage-2 .trilha__icon { background: rgba(234, 88, 12, 0.22);  color: #fdba74; }
[data-theme="dark"] .trilha--stage-3 .trilha__icon { background: rgba(234, 179, 8, 0.22);  color: #fde047; }
[data-theme="dark"] .trilha--stage-4 .trilha__icon { background: rgba(22, 163, 74, 0.22);  color: #86efac; }

/* Tab ativa pega a cor da trilha correspondente */
.trilhas__tab.is-active[data-target="saindo-divida"]   { background: #dc2626; border-color: #dc2626; }
.trilhas__tab.is-active[data-target="fazendo-sobrar"]  { background: #ea580c; border-color: #ea580c; }
.trilhas__tab.is-active[data-target="reserva"]         { background: #eab308; border-color: #eab308; color: #422006; }
.trilhas__tab.is-active[data-target="patrimonio"]      { background: #16a34a; border-color: #16a34a; }

[data-theme="dark"] .trilhas__tab.is-active[data-target="reserva"] { color: #422006; }

[data-theme="dark"] .trilha__icon { background: rgba(13, 159, 110, 0.15); color: var(--brand-emerald); }

.trilha__icon .icon {
    width: 28px;
    height: 28px;
}

.trilha__title {
    font-size: 24px;
    margin-bottom: 6px;
}

.trilha__desc {
    color: var(--color-text-soft);
    font-size: 16px;
}

.trilha__aulas {
    display: grid;
    gap: 12px;
}

.trilha__aula {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--color-divider);
}

.trilha__aula .icon {
    width: 20px;
    height: 20px;
    color: var(--brand-emerald);
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   12. Mostrar funcionando (features grid)
--------------------------------------------------------------------------- */
.mostrar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .mostrar__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .mostrar__grid {
        grid-template-columns: 1fr;
    }
}

.feature {
    padding: 24px;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.feature:hover {
    background: var(--bg-soft);
}

.feature__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-emerald-soft);
    color: var(--brand-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

[data-theme="dark"] .feature__icon {
    background: rgba(13, 159, 110, 0.15);
    color: var(--brand-emerald);
}

.feature__icon .icon {
    width: 22px;
    height: 22px;
}

.feature__title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature__desc {
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   13. Para quem e / nao e
--------------------------------------------------------------------------- */
.para-quem__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

@media (max-width: 720px) {
    .para-quem__grid {
        grid-template-columns: 1fr;
    }
}

.para-quem__col {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--bg-card);
}

.para-quem__col--sim {
    border-color: rgba(13, 159, 110, 0.4);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(13, 159, 110, 0.04) 100%);
}

.para-quem__col--nao {
    background: var(--bg-soft);
}

.para-quem__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    margin-bottom: 20px;
}

.para-quem__title .icon {
    width: 24px;
    height: 24px;
}

.para-quem__col--sim .para-quem__title .icon { color: var(--brand-emerald); }
.para-quem__col--nao .para-quem__title .icon { color: var(--color-muted); }

.para-quem__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--color-text-soft);
}

.para-quem__list li .icon {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.para-quem__col--sim .para-quem__list li .icon { color: var(--brand-emerald); }
.para-quem__col--nao .para-quem__list li .icon { color: #dc2626; }

/* ---------------------------------------------------------------------------
   14. Bloco de preco — dois cards lado a lado (mensal e anual)
--------------------------------------------------------------------------- */
.preco__planos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
    align-items: stretch;
}
@media (max-width: 500px) {
    .preco__planos { grid-template-columns: 1fr; max-width: 520px; }
}

.preco__card {
    background: var(--bg-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3.5vw, 40px);
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
}

.preco__card--destaque {
    border-color: var(--brand-emerald);
    box-shadow: var(--shadow-xl);
}

.preco__destaque {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gold);
    color: var(--brand-deep);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.preco__plano {
    color: var(--brand-emerald);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.preco__valor {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}

.preco__valor-cifra {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text-soft);
}

.preco__valor-num {
    font-size: clamp(48px, 7vw, 64px);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.04em;
    line-height: 1;
}

.preco__valor-mes {
    font-size: 16px;
    color: var(--color-text-soft);
}

.preco__parcela {
    color: var(--color-text-soft);
    font-size: 14px;
    margin-bottom: 4px;
}

.preco__detalhe {
    color: var(--brand-emerald);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.preco__lista {
    text-align: left;
    margin-bottom: 28px;
}

.preco__lista li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--color-text);
}

.preco__lista li .icon {
    width: 20px;
    height: 20px;
    color: var(--brand-emerald);
    margin-top: 1px;
    flex-shrink: 0;
}

.preco__cta {
    width: 100%;
    margin-top: auto;
    margin-bottom: 14px;
}

.preco__micro {
    color: var(--color-muted);
    font-size: 13px;
    margin-bottom: 12px;
}

.preco__garantia {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--brand-emerald-soft);
    color: var(--brand-deep);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
}

.preco__garantia .icon {
    width: 16px;
    height: 16px;
}

[data-theme="dark"] .preco__garantia {
    background: rgba(13, 159, 110, 0.15);
    color: var(--brand-emerald);
}

/* ---------------------------------------------------------------------------
   15. Depoimentos
--------------------------------------------------------------------------- */
.depoimentos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .depoimentos__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

.depoimento {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.depoimento:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.depoimento__stars {
    display: inline-flex;
    gap: 2px;
    color: var(--brand-gold);
    margin-bottom: 12px;
}

.depoimento__stars .icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.depoimento__destaque {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-emerald);
    margin-bottom: 8px;
    line-height: 1.3;
}

.depoimento__texto {
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
    flex-grow: 1;
}

.depoimento__autor {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--color-divider);
    padding-top: 16px;
}

.depoimento__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-emerald), var(--brand-trust));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.depoimento__nome {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text);
}

.depoimento__loc {
    color: var(--color-muted);
    font-size: 13px;
}

/* ---------------------------------------------------------------------------
   16. FAQ
--------------------------------------------------------------------------- */
.faq__lista {
    max-width: 760px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq__btn {
    width: 100%;
    text-align: left;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.faq__btn:hover {
    color: var(--brand-emerald);
}

.faq__plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--brand-emerald);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition), background var(--transition-fast);
}

.faq__plus .icon {
    width: 18px;
    height: 18px;
}

.faq__item.is-open .faq__plus {
    transform: rotate(45deg);
    background: var(--brand-emerald);
    color: #fff;
}

.faq__resposta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 380ms var(--ease-out);
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.faq__resposta-inner {
    padding: 0 0 22px;
    max-width: 640px;
}

/* ---------------------------------------------------------------------------
   17. CTA final
--------------------------------------------------------------------------- */
.cta-final {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-trust) 100%);
    color: #fff;
    text-align: center;
    padding: clamp(56px, 8vw, 96px) var(--container-x);
    border-radius: var(--radius-lg);
    margin: 0 var(--container-x) clamp(64px, 8vw, 96px);
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.cta-final::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(240, 180, 41, 0.18) 0%, transparent 50%);
    animation: rotateBg 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cta-final__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.cta-final__title {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.cta-final__subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(16px, 1.6vw, 18px);
    margin-bottom: 32px;
    line-height: 1.5;
}

.cta-final__micro {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 18px;
}

/* ---------------------------------------------------------------------------
   18. Footer
--------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-soft);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
    color: var(--color-text-soft);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

@media (max-width: 800px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}

.site-footer__about p {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 360px;
}

.site-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.site-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    color: var(--color-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.site-footer__social a:hover {
    background: var(--brand-emerald);
    border-color: var(--brand-emerald);
    color: #fff;
}

.site-footer__social a .icon {
    width: 18px;
    height: 18px;
}

.site-footer__col h4 {
    color: var(--color-text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.site-footer__col li {
    padding: 6px 0;
}

.site-footer__col a {
    color: var(--color-text-soft);
    font-size: 14px;
    transition: color var(--transition-fast);
}

.site-footer__col a:hover {
    color: var(--brand-emerald);
}

.site-footer__copy {
    border-top: 1px solid var(--color-border);
    padding-top: 24px;
    text-align: center;
    color: var(--color-muted);
    font-size: 13px;
}

/* ---------------------------------------------------------------------------
   19. Animacao on-scroll (Intersection Observer)
--------------------------------------------------------------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate-delay="1"].is-visible { transition-delay: 80ms; }
[data-animate-delay="2"].is-visible { transition-delay: 160ms; }
[data-animate-delay="3"].is-visible { transition-delay: 240ms; }
[data-animate-delay="4"].is-visible { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------------------------------------------------------------------------
   20. Pages legais (privacidade / termos)
--------------------------------------------------------------------------- */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(40px, 6vw, 80px) var(--container-x);
}

.legal-page h1 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}

.legal-page > p:first-of-type {
    color: var(--color-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 22px;
    margin: 36px 0 12px;
}

.legal-page h3 {
    font-size: 17px;
    margin: 24px 0 8px;
}

.legal-page p, .legal-page li {
    color: var(--color-text-soft);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.legal-page ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 16px;
}

.legal-page ul li {
    margin-bottom: 6px;
}

/* ---------------------------------------------------------------------------
   21. Utilitarios
--------------------------------------------------------------------------- */
.icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.scroll-anchor {
    scroll-margin-top: 96px;
}

/* ---------------------------------------------------------------------------
   22. Botoes flutuantes (WhatsApp + voltar ao topo)
--------------------------------------------------------------------------- */
.float-btn {
    position: fixed;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    z-index: 999;
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease, background 220ms ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.float-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.float-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.float-btn .icon {
    width: 26px;
    height: 26px;
}

/* WhatsApp - cor oficial #25D366 */
.float-btn--whatsapp {
    bottom: 96px;
    background: #25D366;
    animation: whatsPulse 2.4s ease-out infinite;
}

.float-btn--whatsapp:hover {
    background: #1ebe57;
    animation: none;
}

@keyframes whatsPulse {
    0%   { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.55); }
    70%  { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Voltar ao topo - aparece so apos rolar */
.float-btn--top {
    bottom: 24px;
    background: var(--brand-emerald);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}

.float-btn--top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.float-btn--top:hover {
    background: var(--brand-deep);
}

/* Mobile: encolher um pouco e ajustar margem */
@media (max-width: 600px) {
    .float-btn {
        right: 16px;
        width: 50px;
        height: 50px;
    }
    .float-btn .icon { width: 22px; height: 22px; }
    .float-btn--whatsapp { bottom: 80px; }
    .float-btn--top      { bottom: 16px; }
}

/* Reduz movimento se usuario preferir */
@media (prefers-reduced-motion: reduce) {
    .float-btn--whatsapp { animation: none; }
    .float-btn { transition: opacity 200ms ease; }
}
