/*
 * InfinityCharge — Landing (below-the-fold)
 * Carregado deferido via Optimizer::css()
 * Não bloqueia renderização da primeira dobra.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════════════════ */

section{padding:120px 0;position:relative}
.section-alt{background:var(--bg-secondary)}
.section-label{display:inline-flex;align-items:center;gap:8px;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.12em;color:var(--accent);margin-bottom:16px}
.section-label::before{content:'';width:20px;height:1px;background:var(--accent)}
.section-title{font-family:'Bricolage Grotesque',sans-serif;font-size:clamp(2rem,4vw,3rem);font-weight:800;line-height:1.15;letter-spacing:-.02em;margin-bottom:16px}
.section-desc{font-size:1.1rem;color:var(--text-secondary);max-width:560px;line-height:1.7}
.text-center{text-align:center}
.section-desc--center{margin:16px auto 0}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════════════════ */

.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:60px}
.feature-card{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:16px;padding:32px;transition:all .3s;position:relative;overflow:hidden;box-shadow:var(--card-shadow)}
.feature-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:var(--gradient-accent);transform:scaleX(0);transition:transform .4s}
.feature-card:hover{border-color:var(--border);background:var(--bg-card-hover);transform:translateY(-4px);box-shadow:0 12px 40px rgba(0,0,0,.15)}
.feature-card:hover::before{transform:scaleX(1)}
.feature-icon{width:48px;height:48px;background:#e3f4ec;color:var(--accent);border-radius:12px;display:flex;align-items:center;justify-content:center;margin-bottom:20px}
.feature-icon .icon{width:24px;height:24px}
.feature-card h3{font-size:1.1rem;font-weight:700;margin-bottom:10px}
.feature-card p{font-size:.92rem;color:var(--text-secondary);line-height:1.6}
.features-grid--four{grid-template-columns:repeat(4,1fr);gap:20px}
.features-grid--four .feature-card{padding:28px 24px}
/* Cartões das páginas de solução em duas colunas (08/11). */
.features-grid--two{list-style:none;grid-template-columns:repeat(2,1fr);max-width:1000px;margin-left:auto;margin-right:auto}

/* ═══════════════════════════════════════════════════════════════════════════
   STEPS (Como funciona)
   ═══════════════════════════════════════════════════════════════════════════ */

.steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:60px;position:relative}
.steps::before{content:'';position:absolute;top:40px;left:15%;right:15%;height:2px;background:linear-gradient(90deg,transparent,var(--border),var(--border),transparent)}
.step{text-align:center;position:relative}
.step-number{width:80px;height:80px;border-radius:50%;background:var(--bg-card);border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-family:'Bricolage Grotesque',sans-serif;font-size:1.8rem;font-weight:800;color:var(--accent);margin:0 auto 24px;position:relative;z-index:2;transition:all .3s}
.step:hover .step-number{border-color:var(--accent);box-shadow:0 0 30px var(--accent-glow)}
.step h3{font-size:1.15rem;font-weight:700;margin-bottom:10px}
.step p{font-size:.92rem;color:var(--text-secondary);line-height:1.6}
.steps--4{grid-template-columns:repeat(4,1fr);gap:28px}
.steps--4::before{left:10%;right:10%}
.steps--5{grid-template-columns:repeat(5,1fr);gap:24px}

/* ═══════════════════════════════════════════════════════════════════════════
   GATEWAYS
   ═══════════════════════════════════════════════════════════════════════════ */

.gateways-section{background:var(--bg-secondary)}
.gateways-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:48px}
.gateway-card{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:14px;padding:28px;text-align:center;transition:all .3s;box-shadow:var(--card-shadow)}
.gateway-card:hover{border-color:var(--accent);transform:translateY(-3px)}
.gateway-logo{font-size:2rem;margin-bottom:14px}
.gateway-name{font-weight:700;font-size:1rem;margin-bottom:6px}
.gateway-methods{font-size:.8rem;color:var(--text-muted)}
.gateway-badge{display:inline-block;margin-top:12px;padding:3px 10px;font-size:.7rem;font-weight:600;border-radius:100px;background:var(--accent-glow);color:var(--accent)}
.gateway-badge-soon{background:#fdf3e2;color:#92400e}
.gateway-icon{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:12px;background:#e3f4ec;color:var(--accent);margin-bottom:14px}
.gateway-icon .icon{width:22px;height:22px}
.gateway-card--soon .gateway-icon{background:#fdf3e2;color:#92400e}
.gateways-grid--two{list-style:none;grid-template-columns:repeat(2,minmax(0,280px));justify-content:center}
.gateway-card--soon{border-style:dashed;box-shadow:none;background:rgba(255,255,255,.5)}
.gateways-grid--three{list-style:none;padding:0;grid-template-columns:repeat(3,minmax(0,300px));justify-content:center}

/* ═══════════════════════════════════════════════════════════════════════════
   O TRABALHO DE TODO MÊS (a dor, 08/11)
   ═══════════════════════════════════════════════════════════════════════════ */

.chores-section{background:var(--bg-card);border-block:1px solid var(--border-subtle)}
.chores{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:56px;counter-reset:chore}
.chore{position:relative;border-radius:18px;padding:28px 24px 26px;background:#e3f4ec;counter-increment:chore}
.chore::after{content:counter(chore);position:absolute;top:18px;right:22px;font-family:'Bricolage Grotesque',sans-serif;font-size:2.4rem;font-weight:800;line-height:1;opacity:.14}
.chore__icon{display:inline-flex;width:52px;height:52px;align-items:center;justify-content:center;border-radius:14px;background:#fff;color:#047857;margin-bottom:18px;box-shadow:0 2px 8px rgba(16,24,20,.06)}
.chore__icon .icon{width:26px;height:26px}
.chore__title{font-size:1.15rem;font-weight:800;margin-bottom:8px;color:var(--text-primary)}
.chore__how{font-size:.93rem;line-height:1.6;color:var(--text-secondary)}
.chore--blue{background:#e7effb}.chore--blue .chore__icon{color:#1d4ed8}
.chore--violet{background:#efeafb}.chore--violet .chore__icon{color:#6d28d9}
.chore--amber{background:#fbf0dd}.chore--amber .chore__icon{color:#b45309}

/* ═══════════════════════════════════════════════════════════════════════════
   CARTÕES DE ASSUNTO (páginas de solução, L-178; 08/11)
   ═══════════════════════════════════════════════════════════════════════════ */

.solutions-section{background:linear-gradient(180deg,var(--bg-tertiary),var(--bg-primary))}
.topic-cards{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:48px}
.topic-card{display:flex;flex-direction:column;gap:10px;height:100%;padding:26px 24px;border-radius:16px;background:var(--bg-card);border:1px solid var(--border-subtle);box-shadow:var(--card-shadow);color:var(--text-primary);transition:transform .25s,border-color .25s,box-shadow .25s}
.topic-card:hover{color:var(--text-primary);border-color:var(--accent);transform:translateY(-3px);box-shadow:0 12px 32px rgba(16,24,20,.1)}
.topic-card:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.topic-card__icon{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border-radius:12px;background:#e3f4ec;color:var(--accent)}
.topic-card__icon .icon{width:22px;height:22px}
.topic-card__title{font-family:'Bricolage Grotesque',sans-serif;font-size:1.1rem;font-weight:700;line-height:1.3}
.topic-card__desc{font-size:.92rem;color:var(--text-secondary);line-height:1.55}
.topic-card__more{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-size:.9rem;font-weight:600;color:var(--accent)}
.topic-card__more .icon{width:1em;height:1em;transition:transform .2s}
.topic-card:hover .topic-card__more .icon{transform:translateX(3px)}
.topic-cards li:nth-child(6n+2) .topic-card__icon{background:#e7effb;color:#1d4ed8}
.topic-cards li:nth-child(6n+3) .topic-card__icon{background:#efeafb;color:#6d28d9}
.topic-cards li:nth-child(6n+4) .topic-card__icon{background:#fbf0dd;color:#b45309}
.topic-cards li:nth-child(6n+5) .topic-card__icon{background:#e0f2f1;color:#0f766e}
.topic-cards li:nth-child(6n) .topic-card__icon{background:#fce8ec;color:#be123c}
.topic-cards--compact .topic-card{flex-direction:row;align-items:center;gap:14px;padding:18px 20px}
.topic-cards--compact .topic-card__title{font-size:1rem}

/* ═══════════════════════════════════════════════════════════════════════════
   PREÇO: cartões (landing e /precos, 08/11)
   ═══════════════════════════════════════════════════════════════════════════ */

.price-cards{margin-top:40px}
.period-switch{display:flex;justify-content:center;gap:4px;width:max-content;max-width:100%;margin:0 auto 32px;padding:4px;border:1px solid var(--border);border-radius:999px;background:var(--bg-card)}
.period-switch__input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.period-switch__option{border-radius:999px;padding:8px 20px;color:var(--text-secondary);font-weight:600;cursor:pointer;user-select:none}
.period-switch__input:checked+.period-switch__option{background:var(--accent);color:#fff}
.period-switch__input:focus-visible+.period-switch__option{outline:2px solid var(--accent);outline-offset:2px}
.tiers{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;align-items:stretch}
.tier{position:relative;display:flex;flex-direction:column;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:18px;padding:30px 24px 24px;box-shadow:var(--card-shadow)}
.tier--popular{border:2px solid var(--accent);box-shadow:0 12px 36px rgba(4,120,87,.14)}
.tier__badge{position:absolute;top:-13px;left:50%;transform:translateX(-50%);padding:4px 14px;border-radius:999px;background:var(--accent);color:#fff;font-size:.78rem;font-weight:700;white-space:nowrap}
.tier__name{font-family:'Bricolage Grotesque',sans-serif;font-size:1.25rem;font-weight:800;color:var(--text-primary);margin-bottom:4px}
.tier__range{font-size:.92rem;font-weight:600;color:var(--accent)}
.tier__prices{list-style:none;margin:20px 0 24px;min-height:4.6em}
.tier__price{display:none;color:var(--text-primary)}
.tier__price[data-period="monthly"]{display:block}
.tier__period-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.tier__amount{font-family:'Bricolage Grotesque',sans-serif;font-size:2.6rem;font-weight:800;letter-spacing:-.02em;line-height:1.1}
.tier__period{font-size:.92rem;color:var(--text-muted)}
.tier__equivalent{display:inline-block;margin-top:8px;padding:3px 10px;border-radius:999px;background:#e3f4ec;color:#065f46;font-size:.8rem;font-weight:600}
.tier__only-monthly{margin:-12px 0 18px;font-size:.82rem;font-weight:600;color:var(--text-muted)}
.tier__prices--text{display:flex;align-items:flex-start;color:var(--text-primary)}
/* Sob consulta no lugar do preço (L-136): mesmo bloco das faixas, numa letra que cabe em uma linha. */
.tier__amount--text{font-size:clamp(1.7rem,2.3vw,2.1rem);white-space:nowrap}
.tier__cta .icon{width:1.25em;height:1.25em}
.tier__cta{margin-top:auto;justify-content:center;white-space:normal;text-align:center}
.price-cards:has(.period-switch__input[value="semiannual"]:checked) .tier__prices:not([data-only-monthly]) .tier__price[data-period="monthly"],
.price-cards[data-active-period="semiannual"] .tier__prices:not([data-only-monthly]) .tier__price[data-period="monthly"],
.price-cards:has(.period-switch__input[value="yearly"]:checked) .tier__prices:not([data-only-monthly]) .tier__price[data-period="monthly"],
.price-cards[data-active-period="yearly"] .tier__prices:not([data-only-monthly]) .tier__price[data-period="monthly"]{display:none}
.price-cards:has(.period-switch__input[value="semiannual"]:checked) .tier__price[data-period="semiannual"],
.price-cards[data-active-period="semiannual"] .tier__price[data-period="semiannual"],
.price-cards:has(.period-switch__input[value="yearly"]:checked) .tier__price[data-period="yearly"],
.price-cards[data-active-period="yearly"] .tier__price[data-period="yearly"]{display:block}
/* Sem chave (nenhum período comum a todas as faixas): cada faixa mostra todos os seus, com o rótulo. */
.price-cards--all-periods .tier__price{display:block;margin-bottom:12px}
.price-cards--all-periods .tier__period-label{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:block;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}
.price-cards--all-periods .tier__price:not([data-period="monthly"]) .tier__amount{font-size:1.6rem}
.price-section__more{text-align:center;margin-top:28px;font-weight:600}
.price-section__more a{display:inline-flex;align-items:center;gap:6px}

.dev-note{position:relative;margin-top:40px;font-size:.88rem;color:var(--text-muted)}
.dev-note a{text-decoration:underline;text-underline-offset:3px}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA FINAL
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-section{padding:120px 0;text-align:center;position:relative;overflow:hidden}
.cta-section::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at center,var(--accent-glow) 0%,transparent 70%)}
.cta-section .section-title,
.cta-section .section-desc,
.cta-actions{position:relative}
.cta-section .section-desc{margin:0 auto 40px}
.cta-actions{display:flex;justify-content:center;gap:16px}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer{padding:60px 0 40px;border-top:1px solid var(--border-subtle);background:var(--bg-secondary)}
.footer-grid{display:grid;grid-template-columns:1.6fr 1.3fr 1fr 1fr 1fr;gap:40px;margin-bottom:48px}
.footer-brand p{color:var(--text-muted);font-size:.88rem;line-height:1.6;margin-top:16px}
.footer-col h4,.footer-col__title{font-family:inherit;font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);margin-bottom:16px}
.footer-col a{display:block;color:var(--text-secondary);font-size:.88rem;margin-bottom:10px}
.footer-col a:hover{color:var(--text-primary)}
.footer-col .footer-link-button{display:block;background:none;border:0;padding:0;margin-bottom:10px;font:inherit;font-size:.88rem;color:var(--text-secondary);cursor:pointer;text-align:left}
.footer-col .footer-link-button:hover{color:var(--text-primary)}
.footer-col .footer-link-button[hidden]{display:none}
.footer-bottom a{color:var(--text-muted)}
.footer-bottom a:hover{color:var(--accent)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:32px;border-top:1px solid var(--border-subtle);font-size:.82rem;color:var(--text-muted)}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════════ */

.reveal{opacity:0;transform:translateY(30px);transition:all .7s cubic-bezier(.16,1,.3,1)}
.reveal.visible{opacity:1;transform:translateY(0)}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media(max-width:1024px){
    .features-grid,.features-grid--four{grid-template-columns:repeat(2,1fr)}
    .chores,.steps--4{grid-template-columns:repeat(2,1fr)}
    .steps--4::before,.steps--5::before{display:none}
    .topic-cards{grid-template-columns:repeat(2,1fr)}
    .gateways-grid{grid-template-columns:repeat(2,1fr)}
    .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
}

@media(max-width:768px){
    section{padding:80px 0}
    .nav{display:none;position:absolute;top:72px;left:0;right:0;background:var(--bg-card);border-bottom:1px solid var(--border-subtle);flex-direction:column;padding:24px;gap:16px;box-shadow:var(--card-shadow)}
    .nav.open{display:flex}
    .mobile-toggle{display:flex}
    .features-grid,.features-grid--four,.features-grid--two,.steps{grid-template-columns:1fr}
    .chores,.topic-cards{grid-template-columns:1fr}
    .tiers{grid-template-columns:1fr}
    .tier__prices{min-height:0}
    .gateways-grid{grid-template-columns:repeat(2,1fr)}
    .hero-actions{flex-direction:column;align-items:center}
    .hero-actions .btn,.cta-actions .btn{min-width:220px;justify-content:center}
    .steps::before{display:none}
    .footer-grid{grid-template-columns:1fr}
    .footer-bottom{flex-direction:column;gap:12px;text-align:center}
    .cta-actions{flex-direction:column;align-items:center}
}

@media(max-width:480px){
    .gateways-grid,.gateways-grid--two,.gateways-grid--three{grid-template-columns:1fr}
}
/* Página de erro pública: atalhos de ajuda (L-118). */
.error-help{margin-top:28px;font-size:.92rem;color:var(--text-muted)}

/* Dúvidas frequentes (L-118): /ajuda e /precos. <details> nativo. */
.faq-list{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.faq-item{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:14px;box-shadow:var(--card-shadow)}
.faq-item__question{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;font-weight:600;color:var(--text-primary)}
.faq-item__question::-webkit-details-marker{display:none}
.faq-item__question::after{content:'+';flex-shrink:0;font-size:1.3rem;line-height:1;color:var(--accent)}
.faq-item[open] .faq-item__question::after{content:'\2212'}
.faq-item__question:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:14px}
.faq-item__answer{padding:0 22px 20px;color:var(--text-secondary);line-height:1.65;font-size:.95rem}

