/* --- RESET E VARIÁVEIS --- */
:root {
    --primary-green: #00b894;     /* Verde principal */
    --dark-green: #006266;        /* Verde escuro (botão ou fundo) */
    --light-green: #daf7dc;       /* Fundo claro */
    --cta-orange: #e67e22;        /* Botão de ação */
    --cta-hover: #d35400;
    --dark-bg: #131917;           /* Fundo escuro/preto */
    --text-main: #2d3436;
    --text-light: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-main);
}

h1, h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.margin-t-16 { margin-top: 1.6rem; }

/* --- COMPONENTES DE BOTÃO --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-orange {
    background-color: var(--cta-orange);
}
.btn-orange:hover {
    background-color: var(--cta-hover);
}

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

.btn-oferta {
  margin-top: 1.6rem;
}

/* --- MEDIA QUERY (MÁGICA RESPONSIVA) --- */
@media (max-width: 768px) {
    .banner-container {
        flex-direction: column; /* Empilha tudo verticalmente */
        text-align: center;
        gap: 15px;
    }

    .banner-text-group {
        flex-direction: column; /* Empilha texto e código */
        width: 100%;
        gap: 10px;
    }
}

/* --- HERO SECTION --- */
.hero {
  color: white;
  padding: 120px 0 60px;
  background: 
    url('../img/bg-person-man.png') center bottom no-repeat,
    url('../img/bg-calc-hero.png') right bottom no-repeat,
    url('../img/bg-ele-hero.png') left bottom no-repeat,
    url('../img/bg-for-hero.png') right top no-repeat,
    rgba(8, 158, 122, 1);
}

.hero-content {
  height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transform: rotate(-2deg); /* Efeito visual da imagem original */
}

/* --- PROBLEM SECTION --- */
.problem {
    padding: 60px 0;
    text-align: center;
    background: 
      url('../img/bg-question.png') right bottom no-repeat,
      url('../img/bg-person-question.png') left top no-repeat,
      var(--light-green);
}

.problem-box {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* --- SOLUTION / VIDEO SECTION --- */
.solution {
    background-color: var(--dark-bg);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.video-wrapper {
    margin: 30px auto;
    max-width: 800px;
    position: relative;
    padding-bottom: 56.25%; /* Aspect ratio 16:9 */
    height: 0;
    overflow: hidden;
    border: 4px solid var(--primary-green);
    border-radius: 10px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.benefits-list {
    list-style: none;
    text-align: left;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.benefits-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
}

.benefits-list li img {
  width: 40px;
}

.benefits-list li span {
  color: var(--primary-green);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.4rem;
  position: absolute;
  left: -50px;
}

/* --- AUTHOR SECTION --- */
.author {
    padding: 80px 0;
    background: white;
}

.author-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}

.author-img img {
    border-radius: 10px;
    box-shadow: 15px 15px 0px var(--light-green);
}

.app-showcase {
    background: #f9f9f9;
    padding: 20px;
    border-left: 5px solid var(--primary-green);
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.app-showcase img {
    max-width: 100px;
}

/* --- TESTIMONIALS --- */
.testimonials {
    padding: 60px 0;
    background-color: #fdfdfd;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testi-card {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.testi-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    object-fit: cover;
    border: 3px solid var(--primary-green);
}

.testi-card h4 {
    color: var(--dark-bg);
    margin-bottom: 10px;
}

.testi-card p {
    font-style: italic;
    font-size: 0.9rem;
}

/* --- OFFER SECTION --- */
.offer {
    background-color: var(--light-green);
    padding: 80px 0;
    text-align: center;
}

.price-box {
    background: white;
    max-width: 600px;
    margin: 30px auto;
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--primary-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.2rem;
}

.new-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-green);
    margin: 10px 0;
}

.btn-large {
    font-size: 1.2rem;
    width: 100%;
    margin: 20px 0;
}

/* --- GUARANTEE --- */
.guarantee {
    text-align: center;
    padding: 60px 0;
}

.guarantee h3 {
    color: var(--dark-green);
}

/* --- FOOTER / FAQ --- */
.faq-footer {
    background-color: #111;
    color: #ccc;
    padding: 60px 0 20px 0;
}

.faq-footer h2 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.faq-item details {
    background: #222;
    margin-bottom: 10px;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
}

.faq-item summary {
    font-weight: bold;
    color: white;
    list-style: none; /* Remove default triangle */
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+'; 
    float: right;
    font-weight: bold;
}
.faq-item details[open] summary::after {
    content: '-';
}

.faq-item p {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #444;
}

.footer-copy {
    text-align: center;
    margin-top: 50px;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* --- ESTILOS DO CONTADOR REGRESSIVO --- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    font-family: var(--font-main);
}

.time-box {
    background-color: #ffeaa7; /* Fundo clarinho para destaque */
    border: 2px solid var(--cta-orange);
    color: var(--cta-orange);
    padding: 10px;
    border-radius: 8px;
    min-width: 70px;
    text-align: center;
}

.time-box span {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.time-box small {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #555;
}

/* --- EXIT INTENT MODAL --- */
.modal-overlay {
    display: none; /* Começa invisível */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro transparente */
    z-index: 10000; /* Acima de tudo */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Classe para mostrar o modal */
.modal-overlay.is-visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    border-top: 10px solid var(--cta-orange);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
}

.modal-offer {
    background: #fff3cd;
    padding: 15px;
    border: 2px dashed var(--cta-orange);
    margin: 20px 0;
    border-radius: 8px;
}

.modal-offer .coupon {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--dark-green);
    display: block;
    margin-top: 5px;
}

.modal-sub {
    font-size: 0.8rem;
    color: #777;
    margin-top: 15px;
}

/* --- ESTILOS DA ANIMAÇÃO (SCROLL REVEAL) --- */
/* Estado inicial: invisível e levemente deslocado para baixo */
.js-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Estado final: visível e na posição original */
.js-scroll.scrolled {
    opacity: 1;
    transform: translateY(0);
}

/* Dica: Para itens em grid, podemos colocar um pequeno delay */
.js-scroll:nth-child(2) { transition-delay: 0.1s; }
.js-scroll:nth-child(3) { transition-delay: 0.2s; }

/* --- TRUNCAMENTO DE TEXTO (LER MAIS) --- */

.testi-text {
    /* Limita a 12 linhas */
    display: -webkit-box;
    -webkit-line-clamp: 12; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* Estética */
    text-align: left;
    margin-bottom: 10px;
    line-height: 1.5; /* Importante para o cálculo das linhas funcionar bem */
}

/* Classe que remove o limite */
.testi-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

/* Botão "Mostrar mais" */
.btn-read-more {
    background: transparent;
    border: none;
    color: var(--cta-orange);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px 0;
    margin-top: 5px;
    
    /* Oculto por padrão, o JS vai mostrar se necessário */
    display: none; 
}

.btn-read-more:hover {
    color: var(--cta-hover);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .balckfriday-bg {
        background-position: 0% 45%;
        background-size: cover;
    }

    .hero-content, 
    .author-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-image, .author-img {
        margin-top: 20px;
    }
    
    .app-showcase {
        flex-direction: column;
    }

    .problem { background-image: none; }
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 5px; /* Diminui o espaço entre as caixas */
    }
    .time-box {
        min-width: 55px; /* Diminui a largura mínima */
        padding: 5px;
    }
    .time-box span {
        font-size: 1.2rem; /* Diminui um pouco a fonte do número */
    }
    .time-box small {
        font-size: 0.6rem;
    }
}