:root {
  --primary: #1453ff;
  --primary-2: #00a9ff;
  --dark: #101827;
  --muted: #61708a;
  --line: #dbe4f0;
  --soft: #f3f7ff;
  --surface: #ffffff;
  --brand: #101827;
  --shadow: 0 24px 70px rgba(16, 24, 39, .14);
  --radius: 26px;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f3f6fb; color: var(--dark); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
.site-header { background: #fff; position: relative; z-index: 10; }
.nav-tools { height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--dark); letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; font-size: 26px; line-height: 1; }
.brand strong { color: var(--primary); }
.nav-links a { font-size: .93rem; color: #46546a; font-weight: 700; }
.nav-links a:hover { color: var(--primary); }
.nav-badges span { font-size: .78rem; font-weight: 800; color: #0e56d9; background: #edf5ff; border: 1px solid #d5e7ff; padding: 7px 10px; border-radius: 999px; }

/* Faixa azul otimizada, compacta e elegante */
.hero-bg {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 15% 10%, #31c4ff 0, #1677ff 32%, #0d48bb 100%);
  color: #fff;
  padding: 30px 0 45px; /* Altura reduzida para melhor usabilidade e design moderno */
}
.hero-bg:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, #000, transparent); }
.hero-content { position: relative; max-width: 920px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 8px 13px; font-weight: 800; font-size: .85rem; margin-bottom: 16px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 950; letter-spacing: -.06em; margin: 0; }
.hero-content .lead { max-width: 760px; margin: 16px auto 0; font-size: 1.12rem; color: rgba(255, 255, 255, .92); }

.ad-label { display: block; text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #8794a8; margin-bottom: 5px; }

/* Bloco horizontal do topo ajustado para respiro seguro */
.ad-top, .ad-wide { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 30px auto; min-height: 96px; clear: both; }
.ad-top ins, .inside-content ins { max-width: 100%; }

/* Layout da ferramenta reposicionado sem margens negativas perigosas */
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 15px; /* Posição confortável abaixo do bloco do topo */
  position: relative;
  z-index: 3;
}
.tool-shell { min-width: 0; }
.tool-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid rgba(219, 228, 240, .85); }

/* Proteção estrutural contra as quebras forçadas do AdSense Automático */
.tool-card .row.g-0 { display: flex !important; flex-wrap: wrap !important; }

.form-side { padding: 30px; }

/* Proteção da largura mínima do painel de Preview */
.preview-side { background: linear-gradient(180deg, #f5f9ff, #eaf3ff); border-left: 1px solid var(--line); padding: 30px; min-width: 320px; }
.section-title { display: flex; align-items: flex-start; gap: 13px; }
.section-title h2 { font-size: 1.05rem; font-weight: 950; margin: 0; letter-spacing: -.03em; }
.section-title p { font-size: .92rem; color: var(--muted); margin: 2px 0 0; }
.step { display: grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 10px; background: #edf5ff; color: var(--primary); font-weight: 950; }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 20px; }
.type-card { border: 1px solid var(--line); background: #fff; border-radius: 18px; min-height: 82px; padding: 14px 16px; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 2px; text-align: left; box-shadow: 0 12px 30px rgba(16, 24, 39, .04); transition: .18s ease; cursor: pointer; }
.type-card span { font-size: 1.25rem; }
.type-card strong { font-size: 1rem; }
.type-card small { color: #738197; font-weight: 700; font-size: .78rem; }
.type-card:hover { transform: translateY(-2px); border-color: #9bc4ff; }
.type-card.active { background: linear-gradient(135deg, #116dff, #1453ff); border-color: #1453ff; color: #fff; box-shadow: 0 16px 38px rgba(20, 83, 255, .28); }
.type-card.active small { color: rgba(255, 255, 255, .85); }
.qr-form label { font-weight: 850; color: #26354c; }
.form-control, .form-select { border: 1px solid #d7e1ee; border-radius: 16px; min-height: 52px; padding: 12px 15px; box-shadow: none; }
.form-control:focus, .form-select:focus { border-color: #79aaff; box-shadow: 0 0 0 4px rgba(20, 83, 255, .11); }
textarea.form-control { min-height: 118px; }
.customize-box { background: #f8fbff; border: 1px solid #e0e8f3; border-radius: 22px; padding: 20px; }
.customize-box h3 { font-size: 1rem; font-weight: 950; margin: 0; }
.link-reset { border: 0; background: transparent; color: var(--primary); font-weight: 900; }
.color-input { height: 52px; border: 1px solid #d7e1ee; background: #fff; border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; font-weight: 850; }
.color-input input { width: 38px; height: 38px; border: 0; background: transparent; padding: 0; }
.switch-line { display: flex; align-items: center; gap: 10px; font-weight: 850; }
.switch-line input { width: 18px; height: 18px; }
.preview-sticky { position: sticky; top: 20px; }
.qr-preview-card { background: #fff; border: 1px solid #dce7f5; border-radius: 24px; padding: 28px; text-align: center; box-shadow: 0 12px 34px rgba(16, 24, 39, .05); }
.qr-preview { width: min(100%, 360px); aspect-ratio: 1/1; margin: 0 auto; display: grid; place-items: center; }
.qr-preview svg { width: 100%; height: 100%; display: block; }
.placeholder { width: 100%; height: 100%; border: 2px dashed #cdd9ea; border-radius: 22px; display: grid; place-items: center; color: #7a8798; font-weight: 800; padding: 20px; }
.scan-note { margin: 15px 0 0; color: #63728b; font-size: .9rem; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.btn { border-radius: 16px; font-weight: 950; min-height: 48px; }
.btn-primary { background: linear-gradient(135deg, #116dff, #1453ff); border-color: #1453ff; box-shadow: 0 12px 28px rgba(20, 83, 255, .24); }
.btn-outline-primary { border-color: #1453ff; color: #1453ff; }
.btn-light { background: #fff; border: 1px solid #d7e1ee; }
.status-message { min-height: 24px; text-align: center; margin-top: 14px; font-weight: 800; }

/* Trava dimensional rígida para o bloco lateral Skyscraper de 300x600 */
.ad-vertical { position: sticky; top: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 10px; height: 620px; box-shadow: 0 16px 45px rgba(16, 24, 39, .08); min-width: 320px; max-width: 320px; display: block !important; overflow: hidden; }

.seo-content { background: #fff; border: 1px solid #e0e7f1; border-radius: 24px; padding: 34px; margin-top: 22px; margin-bottom: 26px; box-shadow: 0 14px 40px rgba(16, 24, 39, .06); }
.seo-content h2 { font-size: 1.65rem; font-weight: 950; letter-spacing: -.04em; margin: 22px 0 10px; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { color: #46556b; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.feature-list div { border: 1px solid #dfe8f4; border-radius: 18px; padding: 16px; background: #f8fbff; }
.feature-list strong { display: block; font-weight: 950; }
.feature-list span { display: block; color: #61708a; font-size: .93rem; }
.inside-content { margin: 25px auto; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
details { border: 1px solid #dfe8f4; border-radius: 18px; padding: 16px; background: #f8fbff; }
summary { font-weight: 950; cursor: pointer; }
details p { margin: 10px 0 0; }
.footer { padding: 28px 0; color: #61708a; font-weight: 700; }
.budget-links a { font-size: .92rem; font-weight: 700; color: var(--primary); }
.budget-links a:hover { text-decoration: underline; }

@media (min-width: 1400px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 324px; gap: 22px; } .container { max-width: 1340px; } }
@media (max-width: 991.98px) { .hero-bg { padding-bottom: 75px; } .tool-layout { margin-top: -42px; } .preview-side { border-left: 0; border-top: 1px solid var(--line); } .preview-sticky { position: static; } .type-grid { grid-template-columns: repeat(2, 1fr); } .download-grid { grid-template-columns: 1fr; } .ad-top { display: none; } .feature-list, .faq-grid { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .form-side, .preview-side { padding: 18px; } .tool-card, .seo-content { border-radius: 18px; } .type-grid { grid-template-columns: 1fr; } .type-card { min-height: 72px; } .hero-bg { padding: 38px 0 65px; } .hero-content h1 { font-size: 2rem; } .customize-box { padding: 16px; } .qr-preview-card { padding: 18px; } .seo-content { padding: 22px; } }