/* =========================================================
   MicroFloripa - Calculadora de FPS
   CSS independente da ferramenta
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: #1d2b3a;
  background: #f6f9fc;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e4ebf2;
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #0875d1;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.brand-name {
  color: #123b69;
  font-size: 20px;
  font-weight: 700;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.main-nav a {
  padding: 10px 2px;
  text-decoration: none;
  color: #465668;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a:hover {
  color: #0875d1;
}

.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 6px;
  background: #0875d1;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  margin: 28px 0 22px;
  padding: 48px 48px;
  display: grid;
  grid-template-columns: 1.55fr .8fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1eaf2;
  border-radius: 10px;
  box-shadow: 0 5px 22px rgba(28, 70, 110, .06);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: #0875d1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.hero h1 {
  margin: 0 0 16px;
  color: #153a61;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
}

.hero h1 span {
  color: #0875d1;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: #607080;
  font-size: 16px;
}

.benefits {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.benefits > div {
  min-width: 135px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2ebf3;
  border-radius: 7px;
  background: #f8fbfe;
  color: #566779;
  font-size: 13px;
}

.benefits b {
  font-size: 20px;
}

.hero-panel {
  min-height: 245px;
  padding: 28px;
  border-radius: 10px;
  background: #eef7ff;
  border: 1px solid #d8ebfb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-panel-icon {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ffffff;
  color: #0875d1;
  border: 7px solid #d9edfc;
  font-size: 27px;
  font-weight: 700;
}

.hero-panel strong {
  color: #173c61;
  font-size: 20px;
}

.hero-panel span {
  margin-top: 8px;
  color: #667789;
  font-size: 13px;
}

.calculator-card,
.results,
.share-card,
.info-section,
.seo-content {
  margin: 22px 0;
  padding: 34px;
  background: #ffffff;
  border: 1px solid #e1eaf2;
  border-radius: 10px;
  box-shadow: 0 5px 22px rgba(28, 70, 110, .05);
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2,
.info-section h2,
.seo-content h2 {
  margin: 0 0 8px;
  color: #173c61;
  font-size: 28px;
}

.section-heading p {
  margin: 0;
  color: #697a8a;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #34485c;
  font-size: 14px;
  font-weight: 600;
}

.field select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfdbe6;
  border-radius: 6px;
  background: #fff;
  color: #26394c;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.field select:focus {
  border-color: #0875d1;
  box-shadow: 0 0 0 3px rgba(8, 117, 209, .12);
}

.form-note {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 4px solid #0875d1;
  background: #f5f9fd;
  color: #637487;
  font-size: 13px;
}

.actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}

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

.btn.primary {
  background: #0875d1;
  color: #fff;
}

.btn.primary:hover {
  background: #0666b8;
}

.btn.secondary {
  background: #fff;
  color: #42566a;
  border-color: #cfdbe6;
}

.btn.secondary:hover {
  border-color: #0875d1;
  color: #0875d1;
}

.results {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
}

.hidden {
  display: none !important;
}

.result-summary {
  padding: 28px;
  text-align: center;
  border-radius: 8px;
  background: #f5faff;
  border: 1px solid #dcecf9;
}

.result-summary h2 {
  margin: 0 0 7px;
  color: #173c61;
  font-size: 25px;
}

.result-summary p {
  margin: 0 auto;
  color: #667789;
  font-size: 13px;
  max-width: 430px;
}

.result-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 3px auto 16px;
  border-radius: 50%;
  background: #0875d1;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.fps-number {
  margin: 20px 0 14px;
}

.fps-number strong {
  display: block;
  color: #0875d1;
  font-size: 58px;
  line-height: 1;
}

.fps-number span {
  color: #657689;
  font-size: 13px;
}

.confidence {
  margin-top: 18px;
  padding: 13px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #dce7ef;
}

.confidence span,
.confidence strong {
  display: block;
}

.confidence span {
  color: #758595;
  font-size: 12px;
}

.confidence strong {
  margin-top: 2px;
  color: #29445f;
  font-size: 14px;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-content: start;
}

.metric {
  padding: 18px;
  border: 1px solid #e1e9f0;
  border-radius: 7px;
  background: #fff;
}

.metric span {
  display: block;
  color: #718192;
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 5px;
  color: #203c57;
  font-size: 19px;
}

.performance-bar,
.result-advice {
  grid-column: 1 / -1;
}

.performance-bar {
  padding: 17px;
  border: 1px solid #e1e9f0;
  border-radius: 7px;
}

.performance-label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 9px;
  color: #5f7183;
  font-size: 13px;
}

.performance-label strong {
  color: #0875d1;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8eef4;
}

.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #0875d1;
  transition: width .6s ease;
}

.result-advice {
  padding: 16px;
  border-left: 4px solid #0875d1;
  background: #f5f9fd;
  color: #596c7e;
  font-size: 13px;
}

.share-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 25px;
  align-items: center;
}

.share-copy h2 {
  margin: 0 0 7px;
  color: #173c61;
  font-size: 24px;
}

.share-copy p {
  margin: 0;
  color: #667789;
  font-size: 14px;
}

.share-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.share-whatsapp {
  background: #1ea95b;
  color: #fff;
}

.share-whatsapp:hover {
  background: #168d4a;
}

.share-status {
  grid-column: 1 / -1;
  color: #0875d1;
  text-align: right;
  font-size: 12px;
}

.info-section > .eyebrow {
  display: block;
  text-align: center;
}

.info-section h2 {
  text-align: center;
}

.info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.info-grid article {
  padding: 22px;
  border: 1px solid #e2eaf1;
  border-radius: 7px;
  background: #fff;
}

.info-grid article > span {
  color: #0875d1;
  font-size: 12px;
  font-weight: 700;
}

.info-grid h3 {
  margin: 7px 0 8px;
  color: #29445f;
  font-size: 17px;
}

.info-grid p {
  margin: 0;
  color: #68798a;
  font-size: 13px;
}

.small-note {
  margin: 22px 0 0;
  text-align: center;
  color: #7a8996;
  font-size: 12px;
}

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

.seo-content p {
  margin: 8px 0;
  color: #68798a;
  font-size: 14px;
}

.site-footer {
  margin-top: 35px;
  padding: 30px 20px;
  background: #173c61;
  color: #fff;
  text-align: center;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  font-size: 18px;
}

.site-footer span {
  margin-top: 5px;
  color: #c9d7e5;
  font-size: 12px;
}

/* Tablet */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 13px 0;
  }

  .main-nav {
    order: 3;
    flex-basis: 100%;
  }

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

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

  .share-card {
    grid-template-columns: 1fr;
  }

  .share-actions {
    justify-content: flex-start;
  }

  .share-status {
    text-align: left;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .header-inner,
  main {
    width: min(100% - 22px, 1180px);
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 3px;
  }

  .whatsapp {
    display: none;
  }

  .hero,
  .calculator-card,
  .results,
  .share-card,
  .info-section,
  .seo-content {
    padding: 24px 18px;
  }

  .hero {
    margin-top: 15px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .benefits {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-grid,
  .result-details,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .performance-bar,
  .result-advice {
    grid-column: auto;
  }

  .actions .btn,
  .share-actions .btn {
    width: 100%;
  }
}


/* =========================================================
   AJUSTE FINAL DE ALINHAMENTO — MicroFloripa
   Mantém o cálculo e a estrutura da ferramenta.
   ========================================================= */

/* Uma única régua visual para cabeçalho, conteúdo e cartões */
.header-inner,
main {
  width: min(1120px, calc(100% - 40px));
}

/* Cabeçalho mais estável e alinhado */
.header-inner {
  min-height: 74px;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
}

.main-nav {
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.main-nav a {
  white-space: nowrap;
}

/* Hero com colunas equilibradas */
.hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 34px;
  padding: 42px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy p {
  max-width: 680px;
}

.benefits {
  align-items: stretch;
}

.benefits > div {
  flex: 0 1 auto;
}

/* Todos os cartões internos começam/alinhados na mesma régua */
.calculator-card,
.results,
.share-card,
.info-section,
.seo-content {
  width: 100%;
}

/* Cabeçalhos centralizados de forma consistente */
.section-heading,
.info-section > .eyebrow,
.info-section > h2 {
  text-align: center;
}

.section-heading {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Campos com alturas e alinhamentos uniformes */
.form-grid {
  align-items: start;
}

.field {
  min-width: 0;
}

.field label {
  min-height: 22px;
}

.field select {
  display: block;
  height: 48px;
}

/* Área de observação e botões com a mesma largura do formulário */
.form-note {
  width: 100%;
}

.actions {
  align-items: center;
}

/* Resultado: colunas com topo perfeitamente alinhado */
.results {
  align-items: stretch;
}

.result-summary,
.result-details {
  min-width: 0;
}

.result-details {
  align-content: start;
}

/* Compartilhamento centralizado e equilibrado */
.share-card {
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  gap: 18px;
}

.share-copy {
  max-width: 760px;
  margin: 0 auto;
}

.share-actions {
  justify-content: center;
  align-items: center;
}

.share-status {
  text-align: center;
}

/* Cards informativos com alturas uniformes */
.info-grid {
  align-items: stretch;
}

.info-grid article {
  height: 100%;
}

/* Conteúdo SEO alinhado ao mesmo eixo */
.seo-content {
  text-align: left;
}

.seo-content h2 {
  text-align: center;
}

/* Rodapé ocupa toda a largura visual */
.site-footer {
  width: 100%;
}

/* Tablet */
@media (max-width: 900px) {
  .header-inner,
  main {
    width: min(100% - 30px, 1120px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .hero-panel {
    width: 100%;
  }

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

  .share-card {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .header-inner,
  main {
    width: calc(100% - 24px);
  }

  .header-inner {
    gap: 12px;
  }

  .hero {
    padding: 26px 20px;
  }

  .calculator-card,
  .results,
  .share-card,
  .info-section,
  .seo-content {
    padding: 26px 20px;
  }

  .section-heading h2,
  .info-section h2 {
    font-size: 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-panel {
    min-height: 210px;
  }

  .benefits > div {
    width: 100%;
  }
}
