* {
  box-sizing: border-box;
}

:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #0f0f0f;
  --muted: #666666;
  --line: #d9d9d9;
  --soft: #efefef;
  --black: #111111;
  --white: #ffffff;
  --radius: 18px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body {
  padding-bottom: 0;
}

.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.hero {
  background: var(--black);
  color: var(--white);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
  max-width: 760px;
}

.hero-text {
  margin: 12px 0 0;
  max-width: 700px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.5;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 500px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.form-panel {
  padding: 22px;
}

.preview-panel {
  padding: 18px;
  position: sticky;
  top: 20px;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.section-title {
  margin: 24px 0 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: block;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(17,17,17,.06);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.actions .btn-wide {
  grid-column: 1 / -1;
}

.btn {
  appearance: none;
  border: 1px solid var(--black);
  border-radius: 14px;
  padding: 14px 16px;
  min-height: 52px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .05s ease, opacity .15s ease, background .15s ease, color .15s ease;
}

.btn:hover {
  opacity: .92;
}

.btn:active {
  transform: translateY(1px);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--black);
}

.mini-cta {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.mini-cta strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.mini-cta p {
  margin: 0;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
}

.preview-wrap {
  background: #ebebeb;
  border-radius: 18px;
  padding: 14px;
}

.os-sheet {
  background: var(--white);
  border: 1px solid #cfcfcf;
  border-radius: 18px;
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
}

.os-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}

.os-label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.os-top h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.os-muted {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.os-badge {
  min-width: 210px;
  border: 2px solid var(--black);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}

.os-badge strong,
.os-badge span,
.os-badge small {
  display: block;
}

.os-badge strong {
  font-size: 12px;
  letter-spacing: .06em;
}

.os-badge span {
  margin: 8px 0 6px;
  font-size: 22px;
  font-weight: 800;
}

.os-badge small {
  color: var(--muted);
  font-size: 13px;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 24px 0;
}

.os-block + .os-block {
  margin-top: 18px;
}

.os-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.os-block p {
  margin: 8px 0;
  line-height: 1.6;
  font-size: 16px;
}

.status-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin: 22px 0;
}

.status-box small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.status-box p {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 70px;
}

.signatures span {
  display: block;
  border-top: 1px solid var(--black);
  width: 100%;
}

.signatures p {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
}

.sheet-footer {
  margin: 28px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.mobile-bar {
  display: none;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 96px;
  }

  .page {
    padding: 12px;
  }

  .hero {
    padding: 22px 18px;
    border-radius: 20px;
    margin-bottom: 14px;
  }

  .hero h1 {
    font-size: 28px;
    max-width: none;
  }

  .hero-text {
    font-size: 15px;
  }

  .panel {
    border-radius: 18px;
  }

  .form-panel,
  .preview-panel {
    padding: 16px;
  }

  .panel-head h2 {
    font-size: 22px;
  }

  .grid.two,
  .actions,
  .status-box,
  .signatures {
    grid-template-columns: 1fr;
  }

  .desktop-actions {
    display: none;
  }

  .preview-wrap {
    padding: 8px;
    border-radius: 14px;
  }

  .os-sheet {
    padding: 18px;
    border-radius: 14px;
  }

  .os-top {
    flex-direction: column;
  }

  .os-top h3 {
    font-size: 24px;
  }

  .os-badge {
    width: 100%;
    min-width: 0;
  }

  .os-block p,
  .os-muted {
    font-size: 15px;
  }

  .status-box p {
    font-size: 18px;
  }

  .signatures {
    margin-top: 48px;
    gap: 24px;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    background: rgba(255,255,255,.92);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
  }

  .mobile-bar .btn {
    min-height: 48px;
    padding: 12px 10px;
    font-size: 14px;
  }
}

@media print {
  body {
    background: #fff;
    padding-bottom: 0;
  }

  .hero,
  .form-panel,
  .mobile-bar,
  .preview-head {
    display: none !important;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  .app-shell {
    display: block;
  }

  .preview-panel,
  .preview-wrap,
  .os-sheet {
    border: 0;
    padding: 0;
    background: #fff;
    box-shadow: none;
  }

  .os-sheet {
    max-width: none;
    border-radius: 0;
    padding: 16mm;
  }
}


/* Ajustes finais: controles simples */
.actions {
  display: block;
  margin-top: 20px;
}

.actions .btn {
  width: 100%;
}

.mobile-bar {
  display: none !important;
}

.help-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .actions {
    margin-top: 18px;
  }

  .actions .btn {
    min-height: 56px;
    font-size: 16px;
  }
}


.download-notice {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}


/* Bloco SEO discreto */
.seo-section {
  margin-top: 28px;
  padding: 28px 0 6px;
}

.seo-content {
  max-width: 860px;
  margin: 0 auto;
  color: #3f3f3f;
}

.seo-content h2 {
  margin: 0 0 14px;
  color: #111111;
  font-size: 24px;
  line-height: 1.2;
}

.seo-content p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
}

.seo-image {
  margin: 26px 0;
}

.seo-image svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.seo-image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 768px) {
  .seo-section {
    margin-top: 18px;
    padding: 20px 4px 4px;
  }

  .seo-content h2 {
    font-size: 21px;
  }

  .seo-content p {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .seo-image {
    margin: 20px 0;
  }

  .seo-image svg {
    border-radius: 16px;
  }
}


/* LP principal integrada: sem /gerador, sem iframe */
.nav {
  max-width: 1320px;
  margin: 0 auto 16px;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 20px;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.generator-title {
  max-width: 860px;
  margin: 0 auto 18px;
  text-align: center;
}

.generator-title h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -.02em;
}

.generator-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.seo-section {
  max-width: 980px;
  margin: 28px auto 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.seo-section h2 {
  margin: 0 0 14px;
  color: #111111;
  font-size: 28px;
  line-height: 1.2;
}

.seo-section p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 2px;
}

.seo-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}

.seo-card strong {
  display: block;
  margin-bottom: 8px;
}

.seo-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.seo-image {
  margin: 24px 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.seo-image svg {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  padding: 28px 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 768px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0;
  }

  .generator-title {
    text-align: left;
    padding: 0 4px;
  }

  .generator-title h2 {
    font-size: 24px;
  }

  .seo-section {
    padding: 20px;
    border-radius: 20px;
  }

  .seo-section h2 {
    font-size: 23px;
  }

  .seo-section p {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }
}
