/* ===================================================
   PROTOCOLO GÊNESIS — H1 Editora Style
   =================================================== */

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

:root {
  --bg: #f5f4f0;
  --bg-white: #ffffff;
  --text: #282831;
  --text-light: #555560;
  --border: #e0dfd8;
  --btn-bg: #282831;
  --btn-text: #ffffff;
  --red: #D23131;
  --radius: 4px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }
/* Aplica Public Sans quando carregar — fallback system-ui mantém layout estável */
body { font-family: 'Public Sans', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* PROMO BAR */
.benefit-top { background: var(--text); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 500; }
.benefit-top .sep { margin: 0 10px; opacity: .5; }

/* HEADER */
.header { background: var(--bg-white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; max-width: var(--max-w); margin: 0 auto; }
.brand { font-size: 17px; font-weight: 700; color: var(--text); white-space: nowrap; flex-shrink: 0; }
.header-nav { display: flex; gap: 20px; flex: 1; }
.header-nav a { font-size: 14px; color: var(--text-light); font-weight: 500; white-space: nowrap; }
.header-nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; flex-shrink: 0; }
.btn-header-buy { background: var(--btn-bg); color: var(--btn-text); padding: 8px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1.2; display: inline-block; }
.hamburger { font-size: 22px; color: var(--text); display: none; flex-shrink: 0; min-width: 36px; min-height: 36px; display: none; align-items: center; justify-content: center; }

/* NAV DRAWER */
.nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .25s; }
.nav-overlay.active { opacity: 1; pointer-events: all; }
.nav-drawer { position: fixed; top: 0; left: 0; width: 260px; height: 100%; background: var(--bg-white); z-index: 300; transform: translateX(-100%); transition: transform .25s; display: flex; flex-direction: column; padding: 24px 20px; gap: 16px; }
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a { font-size: 16px; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--border); }
.nav-close { align-self: flex-end; font-size: 20px; margin-bottom: 8px; color: var(--text-light); }


/* PAGE CONTENT */
.page-content { padding: 32px 0 48px; background: var(--bg-white); }
.product-view-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* GALLERY */
.product-gallery { position: sticky; top: 68px; }
.product-images { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fafaf8; }
.main-img { width: 100%; object-fit: contain; display: block; }

/* PRODUCT INFO */
.product-simple { padding-top: 4px; }
.product-category { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-light); margin-bottom: 10px; }
.product-name { font-size: 28px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.product-tagline { font-size: 15px; color: var(--text-light); margin-bottom: 24px; line-height: 1.5; }

.price-block { margin-bottom: 20px; }
.price-from { font-size: 13px; color: var(--text-light); }
.price-from s { color: var(--text-light); }
.price-main-row { margin-top: 4px; }
.display-cash { font-size: 36px; font-weight: 800; color: var(--text); }
.price-pix { font-size: 13px; color: #2a7d2a; margin-top: 4px; }
.price-installments { font-size: 13px; color: var(--text-light); margin-top: 2px; }

.plan-toggle { display: flex; gap: 8px; margin-bottom: 16px; }
.plan-btn { position: relative; padding: 10px 20px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 14px; font-weight: 600; background: var(--bg-white); color: var(--text-light); transition: all .15s; }
.plan-btn.active { border-color: var(--text); color: var(--text); background: var(--bg); }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }


.btn { display: inline-block; padding: 14px 24px; border-radius: var(--radius); font-size: 15px; font-weight: 700; text-align: center; transition: opacity .15s, transform .1s; cursor: pointer; }
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn-cart { display: block; width: 100%; background: var(--btn-bg); color: var(--btn-text); margin-bottom: 16px; font-size: 16px; padding: 16px; border-radius: var(--radius); text-align: center; font-weight: 700; transition: opacity .15s; }
.btn-cart:hover { opacity: .88; }
.btn-2 { background: var(--bg); color: var(--text); border: 1px solid var(--border); padding: 10px 16px; font-size: 14px; border-radius: var(--radius); }

.freight-calc { margin-bottom: 20px; }
.freight-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.freight-row { display: flex; gap: 8px; }
.freight-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: inherit; background: var(--bg-white); }
#freteResult { font-size: 13px; color: var(--text-light); margin-top: 8px; }

.product-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.spec-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 12px; text-align: center; background: var(--bg); }
.spec-icon { display: block; font-size: 22px; margin-bottom: 6px; }
.spec-label { font-size: 12px; font-weight: 600; color: var(--text-light); }

.trust-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; color: var(--text-light); }
.trust-badges span { background: var(--bg); padding: 8px 10px; border-radius: var(--radius); border: 1px solid var(--border); text-align: center; display: block; }

/* PRODUCT INFORMATIONS */
.product-informations { background: var(--bg-white); padding: 60px 0; border-top: 1px solid var(--border); }
.info-section { padding: 48px 0; border-bottom: 1px solid var(--border); }
.info-section:last-child { border-bottom: none; }

.intro-section { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.intro-text h2 { font-size: 24px; font-weight: 700; margin-bottom: 20px; line-height: 1.3; }
.intro-text p { margin-bottom: 14px; color: var(--text-light); line-height: 1.7; }
.intro-image img { width: 280px; border-radius: var(--radius); border: 1px solid var(--border); }

.section-h3 { font-size: 22px; font-weight: 700; margin-bottom: 28px; }

.audience-list { display: flex; flex-direction: column; gap: 10px; }
.audience-list li { padding: 12px 16px 12px 44px; position: relative; background: var(--bg); border-radius: var(--radius); font-size: 15px; line-height: 1.5; }
.audience-list li::before { content: '✓'; position: absolute; left: 14px; top: 12px; font-weight: 700; color: var(--text); }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.benefit-icon { font-size: 28px; margin-bottom: 10px; }
.benefit-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

.modules-list { display: flex; flex-direction: column; }
.module-item { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: start; }
.module-item:last-child { border-bottom: none; }
.module-num { font-size: 28px; font-weight: 800; color: var(--border); min-width: 44px; line-height: 1; }
.module-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.module-info p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

.bonus-section { background: #fafaf8; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.bonus-badge-label { display: inline-block; background: var(--text); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 20px; letter-spacing: .08em; margin-bottom: 16px; }
.bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bonus-item { display: flex; gap: 14px; padding: 16px; background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); align-items: start; }
.bonus-icon { font-size: 24px; flex-shrink: 0; }
.bonus-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.bonus-item p { font-size: 13px; color: var(--text-light); }

.author-section { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: start; }
.author-text h3 { margin-bottom: 16px; }
.author-text p { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 14px; }
.credibility-badge { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg); text-align: center; min-width: 200px; }
.badge-icon { font-size: 40px; margin-bottom: 12px; }
.credibility-badge p { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.credibility-badge li { font-size: 13px; color: var(--text-light); margin-bottom: 6px; }

.edition-banner { background: var(--red); color: #fff; text-align: center; padding: 16px; border-radius: var(--radius); font-weight: 600; font-size: 15px; margin-top: 32px; }

/* PRICING */
.section-pricing { background: var(--bg); padding: 60px 0; border-top: 1px solid var(--border); }
.pricing-wrap { max-width: 640px; }
.pricing-title { font-size: 26px; font-weight: 700; margin-bottom: 24px; }
.plan-toggle-pricing { display: flex; gap: 8px; margin-bottom: 24px; }
.pricing-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.pricing-anchor { font-size: 14px; color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }
.price-display { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.price-old-lg { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.price-main-lg { font-size: 40px; font-weight: 800; }
.price-note-lg { font-size: 13px; color: var(--text-light); margin-bottom: 20px; }
.feature-list { margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { padding-left: 22px; position: relative; font-size: 14px; color: var(--text-light); }
.feature-list li::before { content: '✓'; position: absolute; left: 0; font-weight: 700; color: var(--text); }
.btn-cart-lg { display: block; width: 100%; background: var(--btn-bg); color: var(--btn-text); padding: 16px; border-radius: var(--radius); font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 16px; transition: opacity .15s; }
.btn-cart-lg:hover { opacity: .88; }
.pricing-trust { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-light); }

/* GUARANTEE */
.section-guarantee { background: var(--bg-white); padding: 60px 0; border-top: 1px solid var(--border); }
.guarantee-inner { display: flex; gap: 48px; align-items: center; }
.guarantee-seal { flex-shrink: 0; width: 120px; height: 120px; border: 3px solid var(--text); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.seal-inner { text-align: center; font-weight: 700; font-size: 13px; }
.seal-num { display: block; font-size: 28px; font-weight: 800; }
.guarantee-text h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.guarantee-text p { font-size: 15px; color: var(--text-light); margin-bottom: 20px; line-height: 1.7; }

/* FAQ */
.section-faq { background: var(--bg); padding: 60px 0; border-top: 1px solid var(--border); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 15px; font-weight: 600; text-align: left; gap: 12px; color: var(--text); }
.faq-arrow { font-size: 20px; flex-shrink: 0; transition: transform .2s; color: var(--text-light); }
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-answer { display: none; padding-bottom: 16px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* FOOTER */
.site-footer { background: var(--text); color: #fff; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-col h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col p { font-size: 13px; opacity: .7; line-height: 1.6; }
.footer-col a { display: block; font-size: 13px; opacity: .7; margin-bottom: 8px; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; }
.footer-disclaimer { font-size: 12px; opacity: .5; line-height: 1.6; max-width: 700px; margin-bottom: 16px; }
.payment-icons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.payment-icons span { background: rgba(255,255,255,.15); color: #fff; padding: 4px 12px; border-radius: 3px; font-size: 12px; font-weight: 600; }
.footer-copy { font-size: 12px; opacity: .5; }

/* STICKY CTA */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: var(--text); color: #fff; z-index: 50; display: none; padding-bottom: env(safe-area-inset-bottom); }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: var(--max-w); margin: 0 auto; }
.sticky-inner span { font-size: 13px; font-weight: 600; flex: 1; min-width: 0; }
.sticky-btn { background: #fff; color: var(--text); padding: 12px 18px; border-radius: var(--radius); font-size: 14px; font-weight: 700; white-space: nowrap; flex-shrink: 0; min-height: 44px; display: flex; align-items: center; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .product-view-row { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: static; }
  .intro-section { grid-template-columns: 1fr; }
  .intro-image { display: none; }
  .author-section { grid-template-columns: 1fr; }
  .credibility-badge { display: none; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .guarantee-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .hamburger { display: flex; }
  .header-nav { display: none; }
  .btn-header-buy { font-size: 12px; padding: 7px 12px; }
  .site-footer { padding-bottom: 80px; }
  .product-name { font-size: 22px; }
  .display-cash { font-size: 28px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .bonus-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .plan-toggle { flex-direction: column; }
  .sticky-cta { display: block; }
  .pricing-wrap { max-width: 100%; }
}

@media (min-width: 601px) {
  .lg-hidden { display: none !important; }
  .product-specs { grid-template-columns: repeat(4, 1fr); }
  .trust-badges { grid-template-columns: repeat(3, 1fr); }
}
