/* RESET E BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, Helvetica, sans-serif;
}

body {
    background: linear-gradient(180deg, #f4f4f5, #e5e7eb);
    color: #111827;
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #991b1b, #b91c1c);
    color: #fff;
    padding: 40px 15px;
    text-align: center;
}

header h1 {
    font-size: 30px;
    font-weight: 700;
}

header p {
    margin-top: 10px;
    font-size: 15px;
    opacity: 0.95;
}

/* CONTAINER */
.container {
    max-width: 980px;
    margin: auto;
    padding: 25px 15px;
}

/* CARD PRINCIPAL */
.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.card h2 {
    margin-bottom: 10px;
    color: #991b1b;
    font-size: 22px;
}

.descricao {
    font-size: 14px;
    color: #374151;
    margin-bottom: 15px;
}

/* FORM */
label {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 15px;
    transition: all 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185,28,28,0.15);
}

.help {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* INFO DESPESAS */
.info {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #065f46;
}

/* BOTÃO */
button {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 25px rgba(185,28,28,0.3);
}

/* RESULTADO */
.resultado {
    margin-top: 25px;
    background: linear-gradient(180deg, #020617, #111827);
    color: #f9fafb;
    padding: 25px;
    border-radius: 14px;
    line-height: 1.7;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.resultado h3 {
    margin-bottom: 14px;
    color: #facc15;
    font-size: 18px;
}

.resultado p {
    font-size: 15px;
}

.resultado hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.15);
    margin: 14px 0;
}

/* ALERTAS DE MARKUP */
.alerta {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

/* Markup saudável */
.alerta.seguro {
    background: linear-gradient(135deg, #064e3b, #065f46);
    color: #ecfdf5;
    border-left: 6px solid #10b981;
}

/* Atenção */
.alerta.alerta {
    background: linear-gradient(135deg, #78350f, #92400e);
    color: #fffbeb;
    border-left: 6px solid #f59e0b;
}

/* Perigo */
.alerta.perigo {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: #fee2e2;
    border-left: 6px solid #ef4444;
}

/* SEO TEXT */
.seo-text {
    margin-top: 50px;
    font-size: 15px;
    line-height: 1.9;
    color: #1f2937;
}

.seo-text h2 {
    margin-bottom: 10px;
    color: #111827;
}

/* FOOTER */
footer {
    text-align: center;
    font-size: 13px;
    padding: 25px 10px;
    color: #4b5563;
}




/* ===============================
   BLOCOS DE ANÚNCIO (ADS)
   =============================== */

.ads-slot {
  width: 100%;
  margin: 30px 0;
  padding: 20px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  color: #6b7280;
  font-size: 14px;
}

/* 🔥 Anúncio do topo */
.ads-top {
  max-width: 1200px;
  margin: 20px auto;
  min-height: 100px;
}

/* 🔥 Anúncio entre formulário e resultado */
.ads-middle {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px dashed #c7d2fe;
  min-height: 120px;
}

/* 🔥 Anúncio dentro do conteúdo SEO */
.ads-text {
  background: #ffffff;
  border: 1px dashed #e5e7eb;
  margin: 35px 0;
  min-height: 100px;
}

/* Texto placeholder (opcional, só para dev/teste) */
.ads-slot::before {
  content: "Espaço reservado para anúncio";
  font-size: 13px;
  color: #9ca3af;
}


/* ===============================
   GRID COM ANÚNCIOS LATERAIS
   =============================== */

.layout-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 960px) 1fr;
  gap: 20px;
  max-width: 1400px;
  margin: auto;
  padding: 0 10px;
}

/* LATERAIS */
.ads-side {
  position: sticky;
  top: 20px;
  min-height: 600px;
}

/* Ajustes visuais laterais */
.ads-left,
.ads-right {
  background: #f9fafb;
}

/* Central mantém seu layout atual */
.container {
  width: 100%;
}

/* ===============================
   CARRINHO FLUTUANTE - PLANILHAS
   =============================== */

.cart-float {
  position: fixed;
  right: 20px;
  bottom: 30%;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 10px;

  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  text-decoration: none;

  padding: 14px 16px;
  border-radius: 50px;

  font-size: 14px;
  font-weight: bold;

  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ícone */
.cart-float span {
  line-height: 1.1;
  text-align: left;
}

/* Hover */
.cart-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

/* Mobile: menor e mais discreto */
@media (max-width: 768px) {
  .cart-float {
    right: 15px;
    bottom: 20px;
    padding: 12px 14px;
    font-size: 13px;
  }

  .cart-float span {
    display: none; /* só o ícone no mobile */
  }
}


/* MOBILE: remove anúncios laterais */
@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .ads-side {
    display: none;
  }
}


/* Responsivo */
@media (max-width: 768px) {
  .ads-slot {
    padding: 15px;
    min-height: 80px;
  }
}




/* RESPONSIVO */
@media (min-width: 768px) {
    header h1 {
        font-size: 36px;
    }

    .card {
        padding: 35px;
    }

    button {
        font-size: 18px;
    }
}
