:root {
  --navy: #15364f;
  --navy-2: #1e4a69;
  --yellow: #f1b53a;
  --green: #087a55;
  --green-dark: #056845;
  --bg: #f2f5f7;
  --card: #ffffff;
  --line: #d8e0e6;
  --text: #22313d;
  --muted: #61717d;
  --danger: #a43f3f;
  --shadow: 0 8px 24px rgba(21, 54, 79, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

#app-shell { min-height: 100vh; display: flex; }
#sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 20;
  overflow-y: auto;
}
.brand-block { padding: 22px 18px 18px; }
.brand-logo-frame {
  width: 184px;
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}
.brand-logo-image {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: contain;
}
.brand-name {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}
#side-nav { display: flex; flex-direction: column; padding: 16px 0; }
.nav-button {
  width: 100%;
  border: 0;
  background: transparent;
  color: #e6edf2;
  text-align: left;
  padding: 13px 20px;
  border-left: 4px solid transparent;
}
.nav-button:hover, .nav-button.active {
  background: var(--navy-2);
  border-left-color: var(--yellow);
  color: #fff;
}
.sidebar-footer {
  margin-top: auto;
  padding: 18px;
  color: #afc2cf;
  font-size: 12px;
  line-height: 1.5;
}

#main-area { margin-left: 235px; width: calc(100% - 235px); min-height: 100vh; }
.mobile-header { display: none; }
#content { padding: 32px; max-width: 1480px; margin: 0 auto; }
.page-title { margin: 0; color: var(--navy); font-size: clamp(28px, 3vw, 42px); }
.page-subtitle { margin: 8px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.55; }

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--navy);
  color: white;
  padding: 24px;
  box-shadow: var(--shadow);
}
.hero-logo {
  flex: 0 0 300px;
  width: 300px;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #ffffff;
  border-radius: 8px;
}
.hero-logo img {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}
.hero h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 36px); }
.hero p { margin: 0; line-height: 1.55; color: #d8e4ec; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.module-card, .contact-panel, .about-panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: var(--shadow);
}
.module-card h3 { margin: 0 0 8px; color: var(--navy); font-size: 22px; }
.module-card p { color: var(--muted); line-height: 1.5; min-height: 48px; }

.primary-button, .secondary-button, .danger-button, .contact-button {
  border: 0;
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  border-radius: 3px;
}
.primary-button { background: var(--green); }
.primary-button:hover { background: var(--green-dark); }
.secondary-button { background: #345b75; }
.danger-button { background: var(--danger); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-button.whatsapp { background: #168b4f; }
.contact-button.instagram { background: #8a3ab9; }
.contact-button.email { background: #2867b2; }
.contact-button.site { background: #435d70; }
.contact-panel { margin-top: 18px; }
.contact-panel h3 { color: var(--navy); margin-top: 0; }

.calculator-list { display: grid; gap: 14px; }
details.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
details.calc-card > summary {
  list-style: none;
  padding: 18px 20px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
details.calc-card > summary::-webkit-details-marker { display: none; }
details.calc-card > summary::after { content: "+"; font-size: 26px; color: var(--green); }
details.calc-card[open] > summary::after { content: "−"; }
.calc-body { border-top: 1px solid var(--line); padding: 20px; }
.calc-description { margin: 0 0 16px; color: var(--muted); line-height: 1.5; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.input-wrap { display: flex; align-items: stretch; }
.input-wrap input, .input-wrap textarea, .input-wrap select {
  width: 100%;
  min-width: 0;
  border: 1px solid #bcc9d2;
  background: #fff;
  color: var(--text);
  padding: 10px 11px;
  outline: none;
}
.input-wrap textarea { min-height: 88px; resize: vertical; }
.input-wrap input:focus, .input-wrap textarea:focus, .input-wrap select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 122, 85, 0.12);
}
.unit {
  min-width: 78px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border: 1px solid #bcc9d2;
  border-left: 0;
  background: #eef3f6;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.calc-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 12px; }
.calc-guide {
  margin: 0 0 18px;
  padding: 15px 16px;
  border: 1px solid #b9d5e6;
  border-left: 5px solid var(--navy-2);
  background: #edf6fb;
  color: #244255;
  line-height: 1.55;
}
.calc-guide-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: .02em;
}
.info-badge {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-family: Georgia, serif;
  font-weight: 700;
}
.calc-guide p { margin: 5px 0; }
.calc-guide-inputs { color: #486575; font-size: 14px; }

.copy-button:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.result-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #a9d3c4;
  background: #edf8f4;
  padding: 14px;
}
.result-summary-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 22px;
  font-weight: 800;
}
.result-summary-copy { flex: 1; display: grid; gap: 3px; }
.result-summary-copy strong { color: #07583e; }
.result-summary-copy span { color: #4f6f63; font-size: 14px; }

body.result-modal-open { overflow: hidden; }
.result-modal[hidden] { display: none !important; }
.result-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 25, 38, .78);
  backdrop-filter: blur(3px);
}
.result-dialog {
  width: min(1180px, 96vw);
  height: min(900px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}
.result-modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  background: var(--navy);
  color: white;
}
.result-modal-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #bcd1df;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.result-modal-header h2 { margin: 0; font-size: clamp(20px, 2.3vw, 30px); }
.result-close-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 30px;
  line-height: 1;
}
.result-close-button:hover { background: rgba(255,255,255,.12); }
.result-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 22px 24px;
  background: #f2f5f7;
}
.result-modal-content {
  min-height: 100%;
  margin: 0;
  padding: 22px;
  overflow: visible;
  white-space: pre-wrap;
  border: 1px solid #cbd6dd;
  background: white;
  color: #172c39;
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.65;
}
.result-modal-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: white;
}

.about-panel { line-height: 1.7; }
.about-panel h2, .about-panel h3 { color: var(--navy); }
.notice-panel {
  background: #fff7e3;
  border: 1px solid #e4cf97;
  color: #624d18;
  padding: 18px;
  margin-top: 16px;
  line-height: 1.55;
}

.about-logo-wrap {
  max-width: 460px;
  margin: 0 0 22px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.about-logo-wrap img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}
.mobile-logo {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  object-fit: cover;
}

#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1e2d37;
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s ease;
  pointer-events: none;
  z-index: 50;
}
#toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  #sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  body.menu-open #sidebar { transform: translateX(0); }
  #main-area { margin-left: 0; width: 100%; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--navy);
    color: #fff;
    padding: 12px 16px;
    font-weight: 700;
  }
  #menu-button {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 24px;
  }
  #content { padding: 20px; }
  .module-grid, .form-grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; }
  .hero-logo { flex-basis: 230px; width: 230px; min-height: 120px; }
  .hero-logo img { max-height: 120px; }
}

@media (max-width: 560px) {
  #content { padding: 14px; }
  .hero { flex-direction: column; }
  .hero-logo { width: 100%; min-height: 130px; flex-basis: auto; }
  .hero-logo img { max-height: 130px; }
  details.calc-card > summary { font-size: 17px; padding: 15px; }
  .calc-body { padding: 15px; }
  .unit { min-width: 62px; }
}


@media (max-width: 700px) {
  .result-modal { padding: 0; }
  .result-dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .result-modal-header { padding: 16px; }
  .result-modal-body { padding: 12px; }
  .result-modal-content { padding: 15px; font-size: 14px; }
  .result-modal-footer { padding: 12px; flex-direction: column-reverse; }
  .result-modal-footer button { width: 100%; }
  .result-summary { align-items: flex-start; flex-wrap: wrap; }
  .result-summary .view-result-button { width: 100%; }
}

@media print {
  #sidebar, .mobile-header, .calc-actions, .contact-row { display: none !important; }
  #main-area { margin: 0; width: 100%; }
  #content { max-width: none; padding: 0; }
  details.calc-card { break-inside: avoid; }
}


/* =========================================================
   V3.0 — ACESSO GRATUITO, LICENÇA E INSTALAÇÃO
   ========================================================= */
.access-panel {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid #d7e0e7;
  background: linear-gradient(135deg, #ffffff, #edf4f8);
  box-shadow: 0 12px 32px rgba(20, 54, 79, .08);
}
.access-panel.paid { background: linear-gradient(135deg, #e8fff4, #ffffff); border-color: #97d8ba; }
.access-kicker, .business-eyebrow { font-size: .76rem; letter-spacing: .12em; font-weight: 800; color: #087a55; }
.access-panel h2 { margin: 6px 0; font-size: 1.15rem; color: #14364f; }
.access-panel h2.paid { color: #087a55; }
.access-panel p { margin: 0 0 5px; color: #435d70; }
.access-panel small { color: #71818c; }
.access-panel-actions { min-width: 260px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.link-button { border: 0; background: transparent; color: #2867b2; text-decoration: underline; cursor: pointer; padding: 7px; font-weight: 700; }
.button-link { display: inline-block; text-decoration: none; text-align: center; }
.business-modal[hidden] { display: none !important; }
.business-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 18px; background: rgba(8, 25, 38, .78); backdrop-filter: blur(5px); }
.business-modal-open { overflow: hidden; }
.business-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: 22px; padding: 28px; box-shadow: 0 30px 90px rgba(0, 0, 0, .32); }
.promo-dialog { text-align: center; }
.promo-logo { width: 96px; height: 96px; object-fit: contain; margin-bottom: 8px; }
.business-dialog h2 { color: #14364f; margin: 8px 0 12px; }
.business-dialog p { color: #526673; line-height: 1.55; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; list-style: none; padding: 0; margin: 18px 0; }
.benefit-list li { background: #eff8f4; padding: 10px 12px; border-radius: 10px; color: #0a6648; font-weight: 700; }
.benefit-list li::before { content: "✓ "; }
.promo-dialog > button { width: 100%; margin-top: 8px; }
.business-close { position: absolute; top: 12px; right: 14px; }
.license-price { font-size: 1.8rem; color: #087a55; font-weight: 900; margin: 12px 0; }
.business-label { display: block; text-align: left; color: #24333e; font-weight: 700; margin: 15px 0 6px; }
.business-input { width: 100%; box-sizing: border-box; border: 1px solid #bbc9d2; border-radius: 10px; padding: 12px; font: inherit; }
.license-code-input { text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.wide-button { width: 100%; margin-top: 14px; }
.pending-box { background: #fff8df; border: 1px solid #ead28a; border-radius: 12px; padding: 14px; margin-top: 14px; }
.install-dialog ol { padding-left: 22px; line-height: 1.8; }
@media (max-width: 760px) {
  .access-panel { flex-direction: column; align-items: stretch; }
  .access-panel-actions { min-width: 0; }
  .business-dialog { padding: 23px 18px; border-radius: 18px; }
  .benefit-list { grid-template-columns: 1fr; }
}


/* =========================================================
   V3.1 — IDENTIDADE PROFISSIONAL E ROBUSTEZ VISUAL
   ========================================================= */
:root {
  --navy: #0d2d46;
  --navy-2: #174b6d;
  --navy-3: #081f31;
  --yellow: #f2b928;
  --green: #087a55;
  --green-dark: #056142;
  --bg: #eef3f7;
  --card: #ffffff;
  --line: #d7e1e8;
  --text: #1d2d39;
  --muted: #5e7180;
  --soft-blue: #eaf3f9;
  --shadow: 0 14px 36px rgba(13, 45, 70, .09);
  --shadow-strong: 0 24px 60px rgba(8, 31, 49, .16);
}

body {
  background:
    radial-gradient(circle at 92% 0%, rgba(23, 75, 109, .10), transparent 24rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(242, 185, 40, .55);
  outline-offset: 2px;
}

#sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--navy-3), var(--navy));
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 12px 0 34px rgba(8,31,49,.10);
}

.brand-block { padding: 24px 20px 18px; }
.brand-logo-frame {
  width: 100%;
  min-height: 112px;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}
.brand-name { margin-top: 16px; line-height: 1.2; }
.brand-name strong { display: block; font-size: 18px; letter-spacing: .035em; }
.brand-name span { display: block; margin-top: 5px; color: #bfd1dd; font-size: 13px; font-weight: 600; }
#side-nav { padding: 12px 10px; gap: 4px; }
.nav-button {
  padding: 13px 14px;
  border-left: 0;
  border-radius: 10px;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
.nav-button:hover, .nav-button.active {
  background: rgba(255,255,255,.10);
  border-left-color: transparent;
  transform: translateX(2px);
}
.nav-button.active { box-shadow: inset 4px 0 0 var(--yellow); }
.sidebar-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,.08); }

#main-area { margin-left: 260px; width: calc(100% - 260px); }
#content { max-width: 1440px; padding: 34px 38px 48px; }
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}
.page-eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 999px; background: var(--yellow); }
.page-title { font-size: clamp(31px, 3vw, 48px); letter-spacing: -.035em; line-height: 1.08; }
.page-subtitle { max-width: 850px; font-size: 17px; }

.professional-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 22px;
}
.professional-heading .page-title { margin-top: 8px; }
.product-mark {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 11px 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.product-mark img { width: 54px; height: 54px; object-fit: contain; }
.product-mark strong, .product-mark span { display: block; }
.product-mark strong { color: var(--navy); }
.product-mark span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.access-panel {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) minmax(270px, 340px);
  align-items: center;
  gap: 20px;
  padding: 22px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #cbdbe5;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(232,242,248,.98));
  box-shadow: var(--shadow);
}
.access-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -120px;
  top: -130px;
  border-radius: 50%;
  background: rgba(242,185,40,.14);
  pointer-events: none;
}
.access-panel.paid { background: linear-gradient(135deg,#e8fff4,#fff); border-color:#a0d9c2; }
.access-status-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  color: white;
  box-shadow: 0 12px 26px rgba(13,45,70,.22);
  font-weight: 900;
  letter-spacing: -.04em;
}
.access-panel.paid .access-status-icon { background: linear-gradient(145deg,#0d996d,#087a55); }
.access-heading-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.access-security-badge {
  padding: 5px 8px;
  border-radius: 999px;
  background: #dbeaf3;
  color: var(--navy-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.access-panel h2 { margin: 7px 0 5px; font-size: 20px; }
.usage-meter { width: min(480px,100%); height: 8px; margin: 13px 0 10px; overflow: hidden; border-radius: 999px; background: #d7e3ea; }
.usage-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--yellow),#f0a41f); transition: width .35s ease; }
.access-panel.paid .usage-meter span { background: linear-gradient(90deg,#0db07b,#087a55); }
.access-panel-actions { position: relative; z-index: 1; min-width: 0; }
.access-panel-actions .primary-button { padding: 13px 16px; border-radius: 12px; text-align: left; }
.access-panel-actions .primary-button span, .access-panel-actions .primary-button small { display: block; }
.access-panel-actions .primary-button small { margin-top: 3px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 600; }
.access-panel-actions .secondary-button { padding: 12px 16px; border-radius: 12px; }

.professional-hero {
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0,1fr) 170px;
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: 26px;
  border-radius: 22px;
  color: white;
  background:
    linear-gradient(120deg, rgba(255,255,255,.04), transparent 36%),
    linear-gradient(135deg, var(--navy-3), var(--navy-2));
  box-shadow: var(--shadow-strong);
}
.professional-brand-card { padding: 14px; border-radius: 18px; background: white; box-shadow: 0 18px 38px rgba(0,0,0,.22); }
.professional-brand-card img { display: block; width: 100%; max-height: 150px; object-fit: contain; }
.hero-kicker { color: #ffd76f; font-size: 11px; font-weight: 900; letter-spacing: .15em; }
.professional-hero h2 { margin: 8px 0 10px; font-size: clamp(25px,2.6vw,38px); line-height: 1.12; letter-spacing: -.025em; }
.professional-hero p { color: #d5e3ec; line-height: 1.6; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.feature-chips span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #eef7fc; font-size: 12px; font-weight: 700; }
.professional-metrics { display: grid; gap: 10px; }
.professional-metrics div { padding: 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); text-align: center; }
.professional-metrics strong, .professional-metrics span { display: block; }
.professional-metrics strong { color: #ffd76f; font-size: 26px; }
.professional-metrics span { color: #c8d9e4; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin: 34px 0 14px; }
.section-heading h2 { margin: 7px 0 0; color: var(--navy); font-size: 28px; }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.55; }
.professional-module-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.professional-module-card {
  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.professional-module-card::before { content:""; position:absolute; left:0; top:0; width:100%; height:4px; background:linear-gradient(90deg,var(--yellow),var(--green)); }
.professional-module-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(13,45,70,.14); border-color:#b6cbd8; }
.module-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.module-icon { width:44px; height:44px; display:grid; place-items:center; border-radius:13px; background:var(--soft-blue); color:var(--navy); font-weight:900; }
.module-meta { color:var(--muted); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.professional-module-card h3 { margin-top:18px; }
.professional-module-card p { min-height:0; flex:1; }
.module-open-button { display:flex; justify-content:space-between; align-items:center; width:100%; margin-top:14px; padding:11px 0 0; border:0; border-top:1px solid var(--line); background:transparent; color:var(--navy-2); font-weight:900; }
.module-open-button span { font-size:20px; transition:transform .2s ease; }
.professional-module-card:hover .module-open-button span { transform:translateX(4px); }

.professional-contact { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-top:22px; padding:22px; border-radius:18px; background:#fff; border:1px solid var(--line); box-shadow:var(--shadow); }
.professional-contact h3 { margin:7px 0 5px; color:var(--navy); }
.professional-contact p { margin:0; color:var(--muted); }

.module-card, .contact-panel, .about-panel, details.calc-card { border-radius:16px; }
details.calc-card { overflow:hidden; }
details.calc-card > summary { transition:background .2s ease; }
details.calc-card > summary:hover { background:#f7fafc; }
.calc-body { background:linear-gradient(180deg,#fff,#fcfdfe); }
.primary-button, .secondary-button, .danger-button, .contact-button { border-radius:10px; transition:transform .15s ease, filter .15s ease; }
.primary-button:hover, .secondary-button:hover, .contact-button:hover { transform:translateY(-1px); filter:brightness(1.03); }
.input-wrap input, .input-wrap textarea, .input-wrap select { border-radius:10px 0 0 10px; }
.input-wrap .unit { border-radius:0 10px 10px 0; }
.input-wrap input:only-child, .input-wrap textarea:only-child, .input-wrap select:only-child { border-radius:10px; }
.calc-guide { border-radius:12px; }
.result-dialog, .business-dialog { border:1px solid rgba(255,255,255,.5); }

@media (max-width: 1180px) {
  .professional-module-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .professional-hero { grid-template-columns: 240px 1fr; }
  .professional-metrics { grid-column:1/-1; grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 900px) {
  #sidebar { width:245px; }
  #main-area { margin-left:245px; width:calc(100% - 245px); }
  #content { padding:26px 22px 40px; }
  .professional-heading { align-items:flex-start; }
  .product-mark { display:none; }
  .access-panel { grid-template-columns:50px 1fr; }
  .access-status-icon { width:50px; height:50px; }
  .access-panel-actions { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; }
  .access-panel-actions .link-button { grid-column:1/-1; }
  .professional-hero { grid-template-columns:1fr; }
  .professional-brand-card { max-width:330px; }
  .professional-metrics { grid-column:auto; }
}

@media (max-width: 760px) {
  #main-area { margin-left:0; width:100%; }
  .mobile-header {
    display:flex;
    position:sticky;
    top:0;
    z-index:30;
    min-height:64px;
    padding:10px 14px;
    background:rgba(8,31,49,.96);
    box-shadow:0 8px 24px rgba(8,31,49,.18);
    backdrop-filter:blur(12px);
  }
  .mobile-logo { width:42px; height:42px; padding:3px; object-fit:contain; background:#f3f6f8; border-radius:11px; }
  #content { padding:22px 14px 34px; }
  .professional-heading { margin-bottom:16px; }
  .page-title { font-size:32px; }
  .page-subtitle { font-size:15px; }
  .access-panel { grid-template-columns:1fr; padding:18px; }
  .access-status-icon { display:none; }
  .access-panel-actions { grid-column:auto; display:flex; }
  .professional-hero { padding:18px; gap:20px; }
  .professional-brand-card { max-width:none; }
  .professional-metrics { grid-template-columns:repeat(3,1fr); }
  .professional-metrics div { padding:10px 5px; }
  .professional-metrics strong { font-size:22px; }
  .professional-metrics span { font-size:9px; }
  .section-heading { display:block; margin-top:28px; }
  .section-heading p { margin-top:10px; }
  .professional-module-grid { grid-template-columns:1fr; }
  .professional-module-card { min-height:220px; }
  .professional-contact { display:block; }
  .professional-contact .contact-row { margin-top:16px; }
}

@media (max-width: 420px) {
  .page-title { font-size:29px; }
  .professional-hero h2 { font-size:26px; }
  .professional-metrics { gap:6px; }
  .access-panel h2 { font-size:18px; }
}


/* =========================================================
   V3.2 — AMBIENTE INTUITIVO E RESULTADOS PROFISSIONAIS
   ========================================================= */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.module-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 20px;
}
.module-heading .page-subtitle { margin-bottom: 0; }
.module-tool-count {
  flex: 0 0 auto;
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  text-align: right;
}
.module-tool-count strong,
.module-tool-count span { display: block; }
.module-tool-count strong { color: var(--navy); font-size: 28px; line-height: 1; }
.module-tool-count span { margin-top: 5px; color: var(--muted); font-size: 12px; }

.module-helper-panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(290px, 480px);
  gap: 24px;
  align-items: center;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid #cbdce7;
  border-radius: 18px;
  background: linear-gradient(135deg, #f9fcfe, #eaf3f9);
  box-shadow: 0 10px 28px rgba(13,45,70,.06);
}
.module-helper-copy { display: flex; align-items: center; gap: 14px; }
.module-helper-copy strong,
.module-helper-copy span { display: block; }
.module-helper-copy strong { color: var(--navy); font-size: 16px; }
.module-helper-copy span:not(.helper-icon) { margin-top: 3px; color: var(--muted); font-size: 13px; }
.helper-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  border-radius: 13px;
  background: var(--navy);
  color: white;
  font-size: 24px;
  font-weight: 700;
}
.calculator-search-wrap { position: relative; display: block; }
.calculator-search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 11px 46px 11px 15px;
  border: 1px solid #b9cbd6;
  border-radius: 13px;
  background: white;
  color: var(--text);
  outline: none;
}
.calculator-search-wrap input:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 4px rgba(23,75,109,.12);
}
.calculator-search-wrap button {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  background: #eaf1f5;
  color: var(--navy);
  font-size: 22px;
}
.calculator-empty-state {
  margin: 22px 0;
  padding: 36px 20px;
  border: 1px dashed #adc2cf;
  border-radius: 18px;
  background: rgba(255,255,255,.7);
  text-align: center;
}
.calculator-empty-state strong,
.calculator-empty-state span { display: block; }
.calculator-empty-state strong { color: var(--navy); font-size: 20px; }
.calculator-empty-state span { margin-top: 6px; color: var(--muted); }

.calculator-list { gap: 16px; }
details.calc-card {
  overflow: hidden;
  border-radius: 18px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
details.calc-card:hover {
  border-color: #b7cad5;
  box-shadow: 0 16px 36px rgba(13,45,70,.10);
}
details.calc-card[open] {
  border-color: #9ebccc;
  box-shadow: 0 18px 42px rgba(13,45,70,.12);
}
details.calc-card > summary {
  min-height: 84px;
  justify-content: flex-start;
  padding: 16px 20px;
  gap: 14px;
  background: linear-gradient(180deg,#fff,#fbfdfe);
}
details.calc-card > summary::after { display: none; content: none; }
.calc-summary-number {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #e9f2f8;
  color: var(--navy-2);
  font-size: 13px;
  font-weight: 900;
}
details.calc-card[open] .calc-summary-number {
  background: var(--navy);
  color: white;
}
.calc-summary-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}
.calc-summary-copy strong {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}
.calc-summary-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calc-summary-action {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5f8;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
details.calc-card[open] .calc-summary-action {
  background: #e8f7f1;
  color: #086747;
}

.calc-body {
  padding: 24px;
  background: linear-gradient(180deg,#fff,#fcfdfe);
}
.calc-description { display: none; }
.calc-workflow {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 20px;
  color: #80909b;
}
.workflow-step {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.workflow-step b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3e9ed;
  color: #6f808b;
  font-size: 11px;
}
.workflow-step.active { color: var(--navy); }
.workflow-step.active b { background: var(--navy); color: white; }
.workflow-line { width: min(70px,8vw); height: 2px; margin: 0 9px; background: #d9e2e7; }

.calc-guide {
  border: 1px solid #c6dce9;
  border-left: 0;
  border-radius: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg,#eef7fc,#f8fbfd);
  box-shadow: inset 4px 0 0 var(--navy-2);
}
.calc-guide-heading { font-size: 13px; letter-spacing: .06em; }
.form-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 12px;
}
.form-section-heading h3 { margin: 5px 0 0; color: var(--navy); font-size: 20px; }
.clear-calc-button {
  border: 1px solid #c6d3db;
  border-radius: 10px;
  background: white;
  color: #526773;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 800;
}
.clear-calc-button:hover { background: #f2f6f8; color: var(--navy); }
.field label { color: #263a48; font-size: 13px; font-weight: 750; }
.input-wrap input,
.input-wrap textarea,
.input-wrap select {
  min-height: 50px;
  border-radius: 12px 0 0 12px;
  border-color: #b8cad5;
  font-size: 16px;
}
.input-wrap textarea { border-radius: 12px; }
.unit {
  min-width: 84px;
  border-radius: 0 12px 12px 0;
  border-color: #b8cad5;
  background: #edf3f6;
  font-weight: 700;
}
.calc-actions {
  align-items: stretch;
  margin-top: 22px;
}
.calc-actions .primary-button {
  min-width: 270px;
  padding: 12px 18px;
  border-radius: 12px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(8,122,85,.18);
}
.calc-actions .primary-button span,
.calc-actions .primary-button small { display: block; }
.calc-actions .primary-button small {
  margin-top: 3px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 600;
}
.calc-actions .secondary-button { border-radius: 12px; }

.result-summary {
  margin-top: 14px;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(8,122,85,.08);
}
.result-summary-value { color: #365e51 !important; font-weight: 650; }
.result-summary .view-result-button { border-radius: 11px; white-space: nowrap; }

/* Janela de resultado */
.result-modal {
  padding: 22px;
  background: rgba(5,20,31,.82);
  backdrop-filter: blur(8px);
}
.result-dialog {
  width: min(1220px, 96vw);
  height: min(920px, 93vh);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 22px;
  box-shadow: 0 35px 100px rgba(0,0,0,.45);
}
.result-modal-header {
  padding: 22px 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(242,185,40,.22), transparent 11rem),
    linear-gradient(135deg,var(--navy-3),var(--navy-2));
}
.result-close-button {
  width: 48px;
  height: 48px;
  transition: background .18s ease, transform .18s ease;
}
.result-close-button:hover { background: rgba(255,255,255,.12); transform: rotate(4deg); }
.result-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 22px 28px 30px;
  background: #f3f7f9;
}
.result-success-strip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #abd7c6;
  border-radius: 14px;
  background: #ecf8f3;
}
.result-success-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 20px;
  font-weight: 900;
}

.result-success-icon svg {
  width: 23px;
  height: 23px;
  display: block;
  overflow: visible;
}

.result-success-icon svg path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-success-strip strong,
.result-success-strip span { display: block; }
.result-success-strip strong { color: #07593f; }
.result-success-strip span { margin-top: 2px; color: #527064; font-size: 12px; }
.result-modal-content {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  white-space: normal;
  overflow: visible;
}
.structured-result { display: grid; gap: 16px; }
.result-primary-card {
  position: relative;
  overflow: hidden;
  padding: 23px 24px;
  border: 1px solid #9fcec0;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.5), transparent 12rem),
    linear-gradient(135deg,#dff6ed,#f8fffc);
  box-shadow: 0 14px 32px rgba(8,122,85,.10);
}
.result-primary-card::after {
  content: "✓";
  position: absolute;
  right: 24px;
  top: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 24px;
  font-weight: 900;
}
.result-card-label {
  color: #167055;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.result-primary-value {
  max-width: calc(100% - 60px);
  margin-top: 9px;
  color: #064d37;
  font-size: clamp(23px,3vw,36px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.025em;
}
.result-primary-details { display: grid; gap: 7px; margin-top: 16px; }
.result-section-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
.result-detail-card {
  overflow: hidden;
  border: 1px solid #d2dfe6;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 26px rgba(13,45,70,.06);
}
.result-detail-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #e0e8ed;
  background: #f8fafb;
}
.result-detail-card header span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-size: 10px;
  font-weight: 900;
}
.result-detail-card h3 { margin: 0; color: var(--navy); font-size: 13px; letter-spacing: .045em; }
.result-detail-content { display: grid; gap: 8px; padding: 15px 16px 17px; }
.result-detail-card-code .result-detail-content {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  background: #fbfcfd;
}
.result-data-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 0;
  border-bottom: 1px dashed #dce5ea;
}
.result-data-row:last-child { border-bottom: 0; }
.result-data-row span { color: #5c707d; }
.result-data-row strong { color: #17384f; text-align: right; }
.result-plain-line { color: #263c4b; white-space: pre-wrap; line-height: 1.55; }
.result-technical-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 17px 18px;
  border: 1px solid #e7cc82;
  border-radius: 16px;
  background: #fff8df;
}
.technical-notice-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #d49a13;
  color: white;
  font-weight: 900;
}
.result-technical-notice strong { color: #765409; }
.result-technical-notice p { margin: 5px 0 0; color: #765f27; line-height: 1.5; }
.result-signature {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #e9eff3;
  color: #526773;
  font-size: 11px;
}
.result-signature strong,
.result-signature span { display: block; }
.result-signature strong { color: var(--navy); }
.result-modal-footer {
  gap: 20px;
  justify-content: space-between;
  padding: 16px 28px;
  border-top: 1px solid #d5e0e6;
  background: white;
}
.result-footer-hint { color: #6c7e89; font-size: 11px; }
.result-footer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-modal-footer button { border-radius: 11px; }

@media (max-width: 900px) {
  .module-heading { align-items: stretch; }
  .module-tool-count { display: none; }
  .module-helper-panel { grid-template-columns: 1fr; gap: 14px; }
  .result-section-grid { grid-template-columns: 1fr; }
  .result-modal { padding: 0; }
  .result-dialog { width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
  .result-modal-header { padding: 18px 19px; }
  .result-modal-body { padding: 16px; }
  .result-modal-footer { padding: 13px 16px; }
}

@media (max-width: 620px) {
  .module-heading { display: block; }
  .module-helper-panel { padding: 15px; }
  .module-helper-copy { align-items: flex-start; }
  details.calc-card > summary { padding: 14px; gap: 10px; }
  .calc-summary-number { flex-basis: 36px; width: 36px; height: 36px; }
  .calc-summary-copy strong { font-size: 16px; }
  .calc-summary-copy small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .calc-summary-action { display: none; }
  .calc-body { padding: 16px; }
  .calc-workflow { justify-content: flex-start; overflow-x: auto; padding-bottom: 3px; }
  .workflow-line { width: 24px; flex: 0 0 24px; }
  .form-section-heading { align-items: center; }
  .form-section-heading h3 { font-size: 18px; }
  .calc-actions .primary-button { width: 100%; min-width: 0; }
  .calc-actions .secondary-button { flex: 1; }
  .result-summary { align-items: flex-start; flex-wrap: wrap; }
  .result-summary-copy { min-width: calc(100% - 55px); }
  .result-summary .view-result-button { width: 100%; }
  .result-primary-card { padding: 19px 18px; }
  .result-primary-card::after { right: 16px; top: 15px; width: 36px; height: 36px; }
  .result-primary-value { font-size: 23px; }
  .result-data-row { display: grid; gap: 3px; }
  .result-data-row strong { text-align: left; }
  .result-signature { display: grid; }
  .result-footer-hint { display: none; }
  .result-footer-actions { width: 100%; }
  .result-footer-actions button { flex: 1; }
}


.owner-access-notice {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #b9d4e5;
  border-left: 5px solid var(--navy-2);
  border-radius: 12px;
  background: #edf6fb;
  color: var(--navy);
}

.owner-access-notice strong {
  font-size: 1rem;
}

.owner-access-notice span {
  color: #536c7d;
  line-height: 1.45;
}


/* v0.0.6 — Pagamento Pix Efí */
.pix-payment-box {
  margin-top: 18px;
  text-align: center;
}

.pix-qr-image {
  display: block;
  width: min(280px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 16px auto;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .15);
  border-radius: 16px;
}

.pix-copy-field {
  min-height: 92px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-all;
}

.pix-countdown {
  margin: 12px 0;
  font-weight: 800;
  letter-spacing: .04em;
}

.pix-payment-box small {
  display: block;
  margin-top: 10px;
  opacity: .75;
}
