/* Paleta e tipografia */
:root {
  --gold: #D29600;
  --navy: #1B3240;
  --gray: #464646;
  --light: #EFEFEF;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--gray);
  background: var(--white);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.hero {
  background-image: url('fd_ebook.png');
  background-size: cover;
  background-position: center;
}

h1, h2, h3 {
  color: var(--navy);
  margin: 0 0 0.6rem 0;
  font-family: "Proxima Nova", "Montserrat", Arial, sans-serif;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: relative;
}
.header-wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; min-height: 72px; }
.logo { width: 165px; height: auto; }
.topline { font-weight: 500; color: var(--gray); }
.header-cta { background: var(--gold); color: var(--white); text-decoration: none; padding: 0.6rem 0.9rem; border-radius: 999px; font-weight: 700; border: none; white-space: nowrap; justify-self: end; }
.header-cta:hover { filter: brightness(1.05); }
.hide-sm { display: none; }

/* Fixed CTA */
.fixed-cta {
  position: fixed; right: 1rem; bottom: 1rem;
  background: var(--gold); color: var(--navy);
  padding: 0.75rem 1rem; border-radius: 999px; text-decoration: none;
  font-weight: 600; box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  z-index: 50;
}
.fixed-cta:hover { filter: brightness(1.05); }

/* Hero */
.hero {
  background: var(--white);
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 2rem; }
.subtitle { color: #2e2e2e; }
.hero h1 { font-size: clamp(2rem, 3.2vw + 1rem, 3rem); font-weight: 800; line-height: 1.25; letter-spacing: 0.2px; margin: 0 0 1.25rem 0; }
.actions { margin-top: 1rem; }
.ebook-content .actions { display: flex; justify-content: center; }
.ebook-content .actions .btn { border-radius: 12px; }

.hero-media { display: flex; justify-content: center; align-items: center; overflow: visible; }
 .hero-image { width: 100%; max-width: 600px; height: auto; border-radius: 0; box-shadow: none; display: block; }
 @media (min-width: 961px) { .hero-image { transform: scale(1.3); transform-origin: center; } }

/* Seções padrão */
.section { padding: 3rem 0; }
.btn {
  display: inline-block; padding: 0.75rem 1rem; border-radius: 10px;
  text-decoration: none; font-weight: 600; border: 2px solid transparent;
  transition: transform 200ms ease, filter 150ms ease, box-shadow 200ms ease, background-color 200ms ease, color 200ms ease;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.15); }
.btn-lg { font-size: 1.125rem; padding: 1rem 1.25rem; }
.btn-outline { color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Modal */
[hidden] { display: none !important; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 1rem; }
.modal-overlay[hidden] { display: none !important; }
.modal-overlay:not([hidden]) { display: flex !important; }
.modal { position: relative; background: var(--white); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); width: min(640px, 92%); border: 2px solid var(--gold); padding: 1.25rem 1.25rem 1rem; }
.modal h2 { color: var(--navy); font-weight: 800; margin-bottom: 0.75rem; }
.modal-close { position: absolute; top: 0.5rem; right: 0.75rem; background: transparent; border: none; font-size: 1.5rem; color: var(--navy); cursor: pointer; line-height: 1; }
.modal .form-grid { grid-template-columns: 1fr; }
.modal .btn-primary { width: 100%; }
.modal .consent { display: grid; grid-template-columns: 24px 1fr; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1rem; font-size: 0.95rem; color: var(--gray); }
    .modal .consent input[type="checkbox"] { margin: 0; accent-color: var(--gold); justify-self: start; }
    .modal .consent .consent-text { margin: 0; font-weight: 400; font-size: 0.9em; font-style: italic; text-align: justify; }
    .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
 
 /* Formulário */
 .form-section { background: var(--white); }
.lead-form { margin-top: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
label span { display: inline-block; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy); }
input, select {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #d9d9d9; border-radius: 8px;
  font-size: 1rem; outline: none; background: var(--light);
}
input:focus, select:focus { border-color: var(--gold); background: #f7f2e6; }
.form-note { font-size: 0.9rem; color: #666; margin-top: 0.75rem; }

/* Benefícios */
.benefits { background: var(--light); }
.benefits h2 { text-align: center; font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); }
.ebook-content h2 { text-align: center; font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); }
.ebook-content .subtitle { text-align: center; color: var(--gray); margin-top: 0.25rem; font-weight: 400 !important; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--white);
  border: 1px solid #8c8c8c; /* borda fina cinza mais escuro */
  border-left: 4px solid var(--gold); /* detalhe gráfico lateral */
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: none; /* sem sombra */
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  min-height: 180px;
  transition: transform 160ms ease;
  will-change: transform;
}
.card:hover,
.card:focus-within { transform: translateY(-3px); }
.card-icon { font-size: 2rem; line-height: 1; color: var(--navy); }
.card h3 { font-weight: 700; font-size: 1.15rem; text-align: center; }

/* Conteúdo do eBook */
.topics { margin: 1rem 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.topics li { display: flex; align-items: center; gap: 0.5rem; width: 100%; background: var(--white); border: 1px solid #e5e5e5; border-radius: 12px; padding: 0.75rem 1rem; box-shadow: 0 8px 20px rgba(0,0,0,0.08); transition: transform 160ms ease, box-shadow 160ms ease; }
.topics li:hover, .topics li:focus-within { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.topics li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 0.25rem; }

/* Urgência */
.urgency { background: #203140; color: var(--white); }
.urgency h2 { color: var(--white); font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); text-align: center; }
.urgency p { max-width: none; color: var(--white); text-align: center; }
.urgency .btn { display: block; width: fit-content; margin: 1rem auto 0; border-radius: 12px; }

/* Sobre */
.about { background: var(--gold); color: var(--white); }
.about h2 { color: var(--white); font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); text-align: center; }
.about p { color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.about-contact .contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.about-contact a { color: var(--white); font-weight: 600; text-decoration: none; }
.about-contact a:hover { text-decoration: underline; }
.about-text p { margin: 0; }
.signature p { margin: 0.25rem 0; }
.signature a { color: var(--white); font-weight: 600; text-decoration: none; }
.signature a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--light); padding: 1rem 0; text-align: center; }

/* Botão voltar ao topo */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--gold); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.20); transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease; z-index: 1000; }
.back-to-top:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.24); }
.back-to-top[hidden] { opacity: 0; pointer-events: none; }

/* Responsivo */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-wrap { grid-template-columns: 1fr; }
  .hide-sm { display: inline; }
  .form-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .logo { width: 165px; height: auto; }
  .header-cta { justify-self: start; width: 100%; text-align: center; margin-top: 0.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .topline { font-size: 0.95rem; }
  .fixed-cta { left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 2rem); text-align: center; }
  .back-to-top { width: 40px; height: 40px; bottom: 16px; right: 16px; }
  .modal { padding: 1rem; }
}

/* Admin table wrapper */
.table-wrap { overflow-x: auto; }
.modal-body { max-height: 70vh; overflow-y: auto; }
.modal-close { position: absolute; top: 10px; right: 10px; background: transparent; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--navy); }
.modal .form-grid { grid-template-columns: 1fr; }
.modal .btn-primary { width: 100%; }
 .modal .consent { display: grid; grid-template-columns: 5% 95%; gap: 0; align-items: center; margin: 0.5rem 0 1rem; font-size: 0.95rem; color: var(--gray); }
    .modal .consent input[type="checkbox"] { margin: 0; accent-color: var(--gold); justify-self: start; }
    .modal .consent .consent-text { margin: 0; font-weight: 400; font-size: 0.9em; font-style: italic; text-align: justify; }
    .btn[disabled] { opacity: 0.6; cursor: not-allowed; }
 
 /* Formulário */
 .form-section { background: var(--white); }
.lead-form { margin-top: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
label span { display: inline-block; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy); }
input, select {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #d9d9d9; border-radius: 8px;
  font-size: 1rem; outline: none; background: var(--light);
}
input:focus, select:focus { border-color: var(--gold); background: #f7f2e6; }
.form-note { font-size: 0.9rem; color: #666; margin-top: 0.75rem; }

/* Benefícios */
.benefits { background: var(--light); }
.benefits h2 { text-align: center; font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); }
.ebook-content h2 { text-align: center; font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); }
.ebook-content .subtitle { text-align: center; color: var(--gray); margin-top: 0.25rem; font-weight: 400 !important; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card {
  background: var(--white);
  border: 1px solid #8c8c8c; /* borda fina cinza mais escuro */
  border-left: 4px solid var(--gold); /* detalhe gráfico lateral */
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: none; /* sem sombra */
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  min-height: 180px;
  transition: transform 160ms ease;
  will-change: transform;
}
.card:hover,
.card:focus-within { transform: translateY(-3px); }
.card-icon { font-size: 2rem; line-height: 1; color: var(--navy); }
.card h3 { font-weight: 700; font-size: 1.15rem; text-align: center; }

/* Conteúdo do eBook */
.topics { margin: 1rem 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.topics li { display: flex; align-items: center; gap: 0.5rem; width: 100%; background: var(--white); border: 1px solid #e5e5e5; border-radius: 12px; padding: 0.75rem 1rem; box-shadow: 0 8px 20px rgba(0,0,0,0.08); transition: transform 160ms ease, box-shadow 160ms ease; }
.topics li:hover, .topics li:focus-within { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.topics li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 0.25rem; }

/* Urgência */
.urgency { background: #203140; color: var(--white); }
.urgency h2 { color: var(--white); font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); text-align: center; }
.urgency p { max-width: none; color: var(--white); text-align: center; }
.urgency .btn { display: block; width: fit-content; margin: 1rem auto 0; border-radius: 12px; }

/* Sobre */
.about { background: var(--gold); color: var(--white); }
.about h2 { color: var(--white); font-size: clamp(1.6rem, 2.2vw + 0.6rem, 2.2rem); text-align: center; }
.about p { color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
.about-contact .contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.about-contact a { color: var(--white); font-weight: 600; text-decoration: none; }
.about-contact a:hover { text-decoration: underline; }
.about-text p { margin: 0; }
.signature p { margin: 0.25rem 0; }
.signature a { color: var(--white); font-weight: 600; text-decoration: none; }
.signature a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: var(--light); padding: 1rem 0; text-align: center; }

/* Botão voltar ao topo */
.back-to-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: none; background: var(--gold); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; line-height: 1; cursor: pointer; box-shadow: 0 10px 20px rgba(0,0,0,0.20); transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease; z-index: 1000; }
.back-to-top:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(0,0,0,0.24); }
.back-to-top[hidden] { opacity: 0; pointer-events: none; }

/* Responsivo */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-wrap { grid-template-columns: 1fr; }
  .hide-sm { display: inline; }
  .form-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .logo { width: 165px; height: auto; }
  .header-cta { justify-self: start; width: 100%; text-align: center; margin-top: 0.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .topline { font-size: 0.95rem; }
  .fixed-cta { left: 50%; right: auto; transform: translateX(-50%); width: calc(100% - 2rem); text-align: center; }
  .back-to-top { width: 40px; height: 40px; bottom: 16px; right: 16px; }
  .modal { padding: 1rem; }
}

/* Ajustes responsivos e de refinamento visual */

html { scroll-behavior: smooth; }

.hero { padding: clamp(2rem, 4vw, 4rem) 0; }
.topline { font-size: clamp(1rem, 2.5vw, 1.25rem); line-height: 1.35; }

img, svg, video { max-width: 100%; height: auto; }

/* CTA fixa — mobile refinado */
.fixed-cta { left: 50%; transform: translateX(-50%); width: min(540px, 92vw); }
@media (min-width: 641px) { .fixed-cta { left: auto; transform: none; width: auto; } }

/* Botão voltar ao topo — espaçamento em telas pequenas */
@media (max-width: 640px) {
  .btn-top { margin: 0.5rem; }
}

/* Modal de consentimento — grid estável e tocável */
.modal .consent { display: grid; grid-template-columns: 24px 1fr; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1rem; font-size: 0.95rem; color: var(--gray); }
.modal .consent input { width: 24px; height: 24px; }
.modal .consent a { color: var(--gold); }

/* Painel admin — wrapper para tabelas largas em mobile */
.table-wrap { overflow-x: auto; }

/* Pequenas melhorias de legibilidade nos cards/form */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .header-cta { justify-self: start; width: 100%; text-align: center; margin-top: 0.5rem; }
}

/* Forçar última regra de consentimento com maior especificidade */
div.modal .consent { grid-template-columns: 24px 1fr; gap: 0.5rem; }