:root {
  --bg: #eef4ff;
  --bg-2: #fbfdff;
  --ink: #28406e;
  --muted: #6d83aa;
  --cyan: #67ddff;
  --blue: #3f79ff;
  --violet: #b15cff;
  --green: #38e3c0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 8%, rgba(156, 197, 255, 0.26), transparent 21%),
    radial-gradient(circle at 16% 18%, rgba(108, 224, 255, 0.14), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(193, 143, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #eef4ff 0%, #fbfdff 52%, #edf3ff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(145, 184, 245, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 184, 245, 0.026) 1px, transparent 1px);
  background-size: 4.9rem 4.9rem;
  opacity: 0.6;
}

body::after {
  background: radial-gradient(circle at 50% 58%, transparent 34%, rgba(161, 191, 239, 0.08) 100%);
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  width: min(100rem, 100%);
  margin: 0 auto;
  padding: 0.9rem 2rem 0.8rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(14px);
}

.brand-block {
  justify-self: start;
  display: grid;
  gap: 0.08rem;
  text-decoration: none;
}

.brand-block strong {
  font-size: 2.15rem;
  line-height: 0.96;
  color: #19336f;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-kicker {
  color: #5c667b;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.nav {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.nav a {
  color: #344c78;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.55rem 0.85rem;
}

.actions {
  justify-self: end;
  display: inline-flex;
  gap: 1rem;
}

.topbar-simple {
  grid-template-columns: 1fr auto;
}

.topbar-simple .actions {
  grid-column: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.8rem;
  padding: 0.95rem 1.4rem;
  border-radius: 1.1rem;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(150, 175, 222, 0.65);
  box-shadow:
    0 0.8rem 1.8rem rgba(155, 177, 221, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #319dff, #6f6bff);
  box-shadow:
    0 1rem 2rem rgba(94, 128, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  min-width: 12.8rem;
}

.detail-page {
  position: relative;
  width: min(100rem, 100%);
  margin: 0 auto;
  flex: 1;
  padding: 0 0 4rem;
}

.page-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient,
.tech-grid,
.floor-glow {
  position: absolute;
  inset: 0;
}

.ambient-a {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.08) 20%, transparent 34%);
}

.ambient-b {
  background:
    radial-gradient(circle at 50% 46%, rgba(145, 217, 255, 0.06), transparent 18%),
    radial-gradient(circle at 24% 26%, rgba(115, 224, 255, 0.08), transparent 18%),
    radial-gradient(circle at 78% 24%, rgba(198, 145, 255, 0.08), transparent 18%);
}

.tech-grid {
  background:
    linear-gradient(rgba(180, 201, 239, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 201, 239, 0.16) 1px, transparent 1px);
  background-size: 3.6rem 3.6rem;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 92%);
  opacity: 0.36;
}

.floor-glow {
  top: 58%;
  background:
    radial-gradient(circle at 50% 70%, rgba(255, 255, 255, 0.56), rgba(180, 220, 255, 0.08) 14%, transparent 24%),
    radial-gradient(circle at 50% 86%, rgba(166, 203, 255, 0.08), transparent 28%);
  opacity: 0.48;
}

.detail-content {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 2.6rem;
  padding: 2.2rem 2rem 0;
}

.hero-panel,
.feature-panel,
.library-panel,
.cta-panel {
  position: relative;
  border: 1px solid rgba(210, 224, 248, 0.96);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(244, 248, 255, 0.76)),
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.96), transparent 26%);
  box-shadow:
    0 1.2rem 2.8rem rgba(167, 187, 230, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 3rem 3rem 2.8rem;
  border-radius: 2.4rem;
  display: grid;
  gap: 1.4rem;
}

.feature-panel,
.library-panel,
.cta-panel {
  padding: 2.2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #3256a3;
}

.eyebrow::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(103, 221, 255, 0.9), rgba(111, 107, 255, 0.72));
  box-shadow: 0 0 1rem rgba(88, 184, 255, 0.45);
}

.hero-panel h1 {
  margin: 0;
  max-width: 50rem;
  font-size: clamp(2.8rem, 4.4vw, 4.9rem);
  line-height: 1.04;
  color: #12234e;
}

.hero-panel .lead {
  max-width: 44rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #5a7095;
}

.courses-page .hero-panel h1 {
  max-width: 45rem;
  font-size: clamp(2.4rem, 4vw, 3.9rem);
}

.courses-page .hero-panel .lead {
  max-width: 40rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions-mobile {
  display: none;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card,
.mini-card,
.feature-panel,
.cta-panel {
  border-radius: 1.8rem;
}

.stat-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid rgba(213, 225, 247, 0.92);
  background: rgba(246, 250, 255, 0.72);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
  color: #17316f;
}

.stat-card span {
  color: #657a9f;
  line-height: 1.45;
}

.section-heading {
  display: grid;
  gap: 0.9rem;
  text-align: center;
  justify-items: center;
}

.section-heading h2 {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.12;
  color: #112450;
}

.section-heading p {
  max-width: 46rem;
  margin: 0;
  color: #60769b;
  line-height: 1.72;
  font-size: 1rem;
}

.feature-grid,
.library-grid {
  display: grid;
  gap: 1.2rem;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.library-card {
  min-height: 100%;
  padding: 1.5rem 1.45rem;
  border: 1px solid rgba(214, 225, 247, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.74)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.94), transparent 26%);
  box-shadow:
    0 1rem 2.4rem rgba(170, 192, 233, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 1.8rem;
}

.mini-card h3,
.library-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
  line-height: 1.22;
  color: #0f2555;
}

.mini-card p,
.library-card p {
  margin: 0;
  color: #5f759a;
  font-size: 0.98rem;
  line-height: 1.68;
}

.feature-cta {
  margin-top: 1.6rem;
  padding: 1.7rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(214, 225, 247, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.74)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.94), transparent 26%);
  box-shadow:
    0 1rem 2.4rem rgba(170, 192, 233, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.feature-cta-copy {
  max-width: 36rem;
}

.feature-cta-copy h3 {
  margin: 0.55rem 0 0.7rem;
  font-size: 1.65rem;
  line-height: 1.14;
  color: #12234e;
}

.feature-cta-copy p {
  margin: 0;
  color: #5a7095;
  line-height: 1.68;
}

.mini-icon {
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(236, 241, 252, 0.94);
  color: #2b4fa0;
  font-size: 1.2rem;
  font-weight: 800;
}

.library-panel {
  display: grid;
  gap: 1.4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.48rem 0.78rem;
  border-radius: 999px;
  background: rgba(235, 242, 255, 0.92);
  color: #29539f;
  font-size: 0.82rem;
  font-weight: 700;
}

.library-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.library-cta {
  margin-top: 1.6rem;
  padding: 1.7rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  border-radius: 1.8rem;
  border: 1px solid rgba(214, 225, 247, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.74)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.94), transparent 26%);
  box-shadow:
    0 1rem 2.4rem rgba(170, 192, 233, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.library-cta-copy {
  max-width: 36rem;
}

.library-cta-copy h3 {
  margin: 0.55rem 0 0.7rem;
  font-size: 1.65rem;
  line-height: 1.14;
  color: #12234e;
}

.library-cta-copy p {
  margin: 0;
  color: #5a7095;
  line-height: 1.68;
}

.library-link {
  margin-top: auto;
  color: #143882;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.cta-panel {
  display: grid;
  gap: 1rem;
}

.cta-panel h2 {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.12;
  color: #12234e;
}

.cta-panel p {
  max-width: 42rem;
  margin: 0;
  color: #5a7095;
  line-height: 1.72;
}

.contact-content {
  align-items: center;
}

.contact-panel {
  width: min(54rem, 100%);
  margin-inline: auto;
  padding: 2.7rem 2.5rem 2.4rem;
  display: grid;
  gap: 1.6rem;
}

.contact-copy {
  display: grid;
  gap: 0.8rem;
}

.contact-copy h1 {
  max-width: 42rem;
  font-size: clamp(1.8rem, 2.35vw, 2.7rem);
  line-height: 1.08;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

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

.field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  color: #24427f;
  font-size: 0.92rem;
  font-weight: 700;
}

.field strong {
  color: #416dff;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(189, 209, 246, 0.96);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  font: inherit;
  color: #163164;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(79, 141, 255, 0.22);
  border-color: rgba(96, 142, 255, 0.9);
}

.field-message {
  grid-column: 1 / -1;
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.contact-note,
.form-feedback {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.contact-botcheck {
  display: none !important;
}

.contact-note {
  color: #62789d;
}

.form-feedback {
  min-height: 1.5rem;
  font-weight: 600;
}

.form-feedback.is-error {
  color: #b13a5c;
}

.form-feedback.is-success {
  color: #1c6a55;
}

.contact-actions {
  display: flex;
  justify-content: flex-start;
}

@media (min-width: 901px) {
  .contact-page .detail-page {
    padding-bottom: 0;
  }

  .contact-content {
    min-height: calc(100vh - 6rem);
    padding-top: 1.4rem;
    padding-bottom: 1rem;
    align-content: center;
  }

  .contact-panel {
    padding: 2.15rem 2.2rem 1.7rem;
    gap: 1.2rem;
  }

  .contact-form {
    gap: 0.9rem;
  }

  .field textarea {
    min-height: 8rem;
  }
}

@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar,
  .topbar-simple {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 1rem;
  }

  .brand-block,
  .actions {
    justify-self: center;
    text-align: center;
  }

  .detail-content {
    padding-inline: 1rem;
  }

  .actions {
    display: grid;
    width: min(100%, 22rem);
    justify-self: center;
    justify-content: center;
    gap: 0.65rem;
  }

  .actions .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-panel {
    padding: 2rem 1.5rem;
  }

  .stat-grid,
  .feature-grid,
  .library-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .library-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-panel {
    padding: 1.8rem 1.35rem;
  }
}

@media (max-width: 640px) {
  .nav,
  .actions,
  .hero-actions,
  .cta-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topbar,
  .topbar-simple {
    gap: 0.7rem;
    padding-top: 0.85rem;
  }

  .brand-block strong {
    font-size: 1.95rem;
  }

  .detail-page {
    overflow-x: clip;
  }

  .detail-content,
  .app-calc-page .detail-content,
  .consult-page .detail-content,
  .courses-page .detail-content {
    padding-inline: 0.8rem;
  }

  .hero-panel,
  .feature-panel,
  .library-panel,
  .cta-panel,
  .app-compact-panel,
  .consult-compact-panel {
    padding: 1.3rem 1rem;
    border-radius: 1.7rem;
  }

  .actions {
    width: min(100%, 22rem);
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .hero-panel h1,
  .section-heading h2,
  .app-section-heading h2,
  .consult-section-heading h2,
  .courses-page .section-heading h2 {
    max-width: none;
    overflow-wrap: anywhere;
  }

  .app-copy,
  .app-benefits-wrap,
  .consult-copy,
  .consult-services-wrap,
  .library-card,
  .offer-card,
  .mini-card,
  .stat-card {
    min-width: 0;
  }

  .hero-panel .lead,
  .section-heading p,
  .app-section-heading p,
  .consult-section-heading p,
  .library-card p,
  .mini-card p {
    overflow-wrap: anywhere;
  }
}


/* APP Cálculos - versão compacta em tela única */
.app-calc-page .detail-page {
  padding-bottom: 1.2rem;
}

.app-calc-page .detail-content {
  padding: 1rem 1.4rem 0;
}

.app-single-screen {
  gap: 0;
}

.app-compact-panel {
  min-height: calc(100vh - 7rem);
  padding: clamp(1.15rem, 1.7vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 1.7vw, 1.6rem);
}

.app-copy,
.app-benefits-wrap {
  display: grid;
  gap: 0.82rem;
  align-content: center;
}

.app-calc-page .hero-panel h1 {
  max-width: 40rem;
  font-size: clamp(1.9rem, 2.65vw, 3rem);
  line-height: 1.08;
}

.app-calc-page .hero-panel .lead {
  max-width: 40rem;
  font-size: clamp(0.93rem, 1vw, 1rem);
  line-height: 1.5;
}

.app-calc-page .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.app-calc-page .btn {
  min-width: 10.2rem;
  padding: 0.72rem 1rem;
  border-radius: 0.9rem;
}

.app-calc-page .btn-primary {
  min-width: 10.8rem;
}

.app-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.app-stat-grid .stat-card {
  padding: 0.78rem 0.85rem;
  border-radius: 1.15rem;
}

.app-stat-grid .stat-card strong {
  font-size: 1.04rem;
  margin-bottom: 0.18rem;
}

.app-stat-grid .stat-card span {
  font-size: 0.78rem;
  line-height: 1.25;
}

.app-highlight {
  max-width: 40rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(214, 225, 247, 0.92);
  border-radius: 1.15rem;
  background: rgba(246, 250, 255, 0.74);
}

.app-highlight strong,
.app-highlight span {
  display: block;
}

.app-highlight strong {
  margin: 0.28rem 0 0.28rem;
  color: #14306d;
  font-size: 1rem;
  line-height: 1.22;
}

.app-highlight span:not(.eyebrow) {
  color: #5f759a;
  font-size: 0.88rem;
  line-height: 1.42;
}

.app-offers-wrap {
  display: grid;
  gap: 0.45rem;
  max-width: 40rem;
}

.app-offers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

.offer-card {
  min-height: 100%;
  padding: 0.78rem 0.84rem 0.88rem;
  display: grid;
  gap: 0.34rem;
  align-content: start;
  border-radius: 1.12rem;
  border: 1px solid rgba(214, 225, 247, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 249, 255, 0.78)),
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.96), transparent 28%);
  box-shadow:
    0 0.9rem 2rem rgba(170, 192, 233, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.offer-copy {
  min-height: 2.6em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f668e;
  font-size: 0.76rem;
  line-height: 1.3;
  text-align: center;
}

.offer-kicker {
  color: #183778;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.offer-price {
  display: block;
  color: #112450;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1;
  font-weight: 900;
  text-align: center;
  margin-bottom: 0.08rem;
}

.offer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.58rem 0.85rem;
  margin-top: auto;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #3c96ff, #6759ff);
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 0.8rem 1.5rem rgba(75, 112, 255, 0.2);
}

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

.app-section-heading {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.app-section-heading h2 {
  margin: 0;
  max-width: 41rem;
  font-size: clamp(1.28rem, 1.75vw, 1.9rem);
  line-height: 1.12;
  color: #112450;
}

.app-section-heading p {
  max-width: 43rem;
  margin: 0;
  color: #60769b;
  line-height: 1.42;
  font-size: 0.88rem;
}

.app-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.compact-benefit {
  padding: 0.85rem 0.9rem;
  border-radius: 1.22rem;
}

.compact-benefit .mini-icon {
  width: 2.18rem;
  height: 2.18rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.compact-benefit h3 {
  margin-bottom: 0.34rem;
  font-size: 0.98rem;
}

.compact-benefit p {
  font-size: 0.84rem;
  line-height: 1.42;
}

@media (max-width: 1120px) {
  .app-compact-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .app-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-stat-grid,
  .app-benefits,
  .app-offers {
    grid-template-columns: 1fr;
  }

  .app-calc-page .hero-panel h1 {
    font-size: clamp(1.72rem, 8vw, 2.25rem);
  }
}


/* Consultoria Estratégica - versão compacta no mesmo modelo das páginas internas */
.consult-page .detail-page {
  padding-bottom: 1.2rem;
}

.consult-page .detail-content {
  padding: 1rem 1.4rem 0;
}

.consult-single-screen {
  gap: 0;
}

.consult-compact-panel {
  min-height: calc(100vh - 7rem);
  padding: clamp(1.15rem, 1.7vw, 1.8rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(23rem, 1.1fr);
  align-items: center;
  gap: clamp(1rem, 1.7vw, 1.6rem);
}

.consult-copy,
.consult-services-wrap {
  display: grid;
  gap: 0.82rem;
  align-content: center;
}

.consult-page .hero-panel h1 {
  max-width: 40rem;
  font-size: clamp(2rem, 2.75vw, 3.15rem);
  line-height: 1.06;
}

.consult-page .hero-panel h1 span {
  color: #356cff;
}

.consult-page .hero-panel .lead {
  max-width: 40rem;
  font-size: clamp(0.93rem, 1vw, 1rem);
  line-height: 1.5;
}

.consult-page .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}

.consult-page .btn {
  min-width: 10.2rem;
  padding: 0.72rem 1rem;
  border-radius: 0.9rem;
}

.consult-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.consult-metrics .stat-card {
  padding: 0.78rem 0.85rem;
  border-radius: 1.15rem;
}

.consult-metrics .stat-card strong {
  font-size: 1.04rem;
  margin-bottom: 0.18rem;
}

.consult-metrics .stat-card span {
  font-size: 0.78rem;
  line-height: 1.25;
}

.consult-highlight {
  max-width: 40rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(214, 225, 247, 0.92);
  border-radius: 1.15rem;
  background: rgba(246, 250, 255, 0.74);
}

.consult-highlight strong,
.consult-highlight span {
  display: block;
}

.consult-highlight strong {
  margin: 0.28rem 0 0.28rem;
  color: #14306d;
  font-size: 1rem;
  line-height: 1.22;
}

.consult-highlight span:not(.eyebrow) {
  color: #5f759a;
  font-size: 0.88rem;
  line-height: 1.42;
}

.consult-section-heading {
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.consult-section-heading h2 {
  margin: 0;
  max-width: 41rem;
  font-size: clamp(1.28rem, 1.75vw, 1.9rem);
  line-height: 1.12;
  color: #112450;
}

.consult-section-heading p {
  max-width: 43rem;
  margin: 0;
  color: #60769b;
  line-height: 1.42;
  font-size: 0.88rem;
}

.consult-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.compact-consult-card {
  padding: 0.9rem 0.92rem;
  border-radius: 1.22rem;
}

.compact-consult-card .mini-icon {
  width: 2.18rem;
  height: 2.18rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
}

.compact-consult-card h3 {
  margin-bottom: 0.34rem;
  font-size: 0.94rem;
  line-height: 1.18;
}

.compact-consult-card p {
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 1120px) {
  .consult-compact-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .consult-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .consult-services {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .consult-metrics,
  .consult-services {
    grid-template-columns: 1fr;
  }

  .consult-page .hero-panel h1 {
    font-size: clamp(1.72rem, 8vw, 2.25rem);
  }
}

/* Cursos - compacta, com cards maiores e padronizados */
.courses-page .detail-page {
  padding-bottom: 1rem;
}

.courses-page .detail-content {
  padding: 1rem 1.4rem 0;
}

.courses-page .library-panel {
  min-height: calc(100vh - 7rem);
  padding: clamp(1.05rem, 1.45vw, 1.55rem);
  gap: 0.9rem;
  align-content: center;
  border-radius: 2.1rem;
}

.courses-page .section-heading {
  gap: 0.45rem;
  margin-bottom: 0.1rem;
}

.courses-page .section-heading .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.courses-page .section-heading h2 {
  max-width: 58rem;
  font-size: clamp(1.55rem, 2.25vw, 2.35rem);
  line-height: 1.08;
}

.courses-page .library-grid {
  gap: 0.85rem;
  align-items: stretch;
}

.courses-page .library-card {
  height: 11.35rem;
  min-height: 11.35rem;
  padding: 1.08rem 1.12rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.65rem;
  border-radius: 1.35rem;
}

.courses-page .library-card > div {
  display: grid;
  align-content: start;
}

.courses-page .library-card .badge {
  width: fit-content;
  margin-bottom: 0.52rem;
  padding: 0.36rem 0.62rem;
  font-size: 0.68rem;
}

.courses-page .library-card h3 {
  margin-bottom: 0.45rem;
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.16;
}

.courses-page .library-card p {
  font-size: 0.82rem;
  line-height: 1.36;
}

.courses-page .library-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  font-size: 0.81rem;
  line-height: 1.25;
}

.courses-page .library-cta {
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
  gap: 1rem;
  border-radius: 1.25rem;
}

.courses-page .library-cta-copy {
  max-width: 48rem;
}

.courses-page .library-cta-copy .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.courses-page .library-cta-copy h3 {
  margin: 0.32rem 0 0.35rem;
  font-size: 1.12rem;
  line-height: 1.08;
}

.courses-page .library-cta-copy p {
  font-size: 0.82rem;
  line-height: 1.36;
}

.courses-page .btn {
  min-width: 10.2rem;
  padding: 0.72rem 1rem;
  border-radius: 0.9rem;
}

@media (max-width: 900px) {
  .courses-page .library-panel {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .courses-page .library-card {
    height: auto;
    min-height: 10.5rem;
  }
}

@media (max-width: 900px) {
  .page-shell,
  .detail-page,
  .detail-content {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .topbar,
  .topbar-simple {
    position: relative;
    width: 100%;
    padding: 0.95rem 0.9rem 0.85rem;
    gap: 0.7rem;
    background: rgba(255, 255, 255, 0.72);
  }

  .brand-block {
    justify-items: center;
  }

  .brand-block strong {
    font-size: 2rem;
  }

  .actions,
  .topbar-simple .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 22rem;
    gap: 0.65rem;
    justify-self: center;
    grid-column: auto;
  }

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

  .detail-page {
    padding: 0 0 1.5rem;
  }

  .detail-content,
  .app-calc-page .detail-content,
  .consult-page .detail-content,
  .courses-page .detail-content {
    display: grid;
    gap: 1rem;
    padding: 0.9rem;
  }

  .hero-panel,
  .feature-panel,
  .library-panel,
  .cta-panel,
  .app-compact-panel,
  .consult-compact-panel,
  .contact-panel {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 1.35rem 1rem;
    border-radius: 1.6rem;
    overflow: hidden;
  }

  .hero-panel h1,
  .app-calc-page .hero-panel h1,
  .consult-page .hero-panel h1,
  .courses-page .section-heading h2,
  .contact-copy h1 {
    max-width: none;
    font-size: clamp(1.9rem, 7.8vw, 2.45rem);
    line-height: 1.1;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .hero-panel .lead,
  .section-heading p,
  .app-section-heading p,
  .consult-section-heading p,
  .library-card p,
  .mini-card p,
  .app-highlight span:not(.eyebrow),
  .consult-highlight span:not(.eyebrow),
  .contact-copy .lead {
    max-width: none;
    overflow-wrap: anywhere;
  }

  .app-compact-panel,
  .consult-compact-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
  }

  .app-copy,
  .app-benefits-wrap,
  .consult-copy,
  .consult-services-wrap {
    min-width: 0;
    gap: 1rem;
  }

  .app-stat-grid,
  .consult-metrics,
  .app-offers,
  .app-benefits,
  .consult-services,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .stat-card,
  .offer-card,
  .mini-card,
  .library-card,
  .app-highlight,
  .consult-highlight {
    min-width: 0;
  }

  .courses-page .library-card {
    min-height: 0;
    height: auto;
  }

  .courses-page .library-panel,
  .app-compact-panel,
  .consult-compact-panel {
    align-content: start;
  }

  .courses-page .section-heading,
  .app-section-heading,
  .consult-section-heading {
    text-align: left;
    justify-items: start;
  }

  .courses-page .section-heading h2 {
    font-size: clamp(1.85rem, 7vw, 2.3rem);
  }

  .library-card,
  .offer-card,
  .mini-card,
  .stat-card,
  .app-highlight,
  .consult-highlight {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .library-card h3,
  .mini-card h3 {
    font-size: 1.05rem;
    line-height: 1.2;
  }

  .library-card p,
  .mini-card p,
  .stat-card span,
  .offer-copy {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .app-stat-grid .stat-card strong,
  .consult-metrics .stat-card strong {
    font-size: 1.15rem;
  }

  .offer-price {
    font-size: 1.7rem;
  }

  .courses-page .library-cta {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .courses-page .library-cta-copy {
    order: 1;
  }

  .courses-page .library-cta .cta-actions {
    order: 2;
    width: 100%;
  }

  .app-copy > .hero-actions {
    display: none;
  }

  .app-benefits-wrap .hero-actions-mobile {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 0.2rem;
  }

  .hero-actions,
  .cta-actions,
  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .topbar,
  .topbar-simple {
    padding-inline: 0.75rem;
  }

  .detail-content,
  .app-calc-page .detail-content,
  .consult-page .detail-content,
  .courses-page .detail-content {
    padding: 0.75rem;
  }

  .hero-panel h1,
  .app-calc-page .hero-panel h1,
  .consult-page .hero-panel h1,
  .courses-page .section-heading h2,
  .contact-copy h1 {
    font-size: clamp(1.75rem, 9.6vw, 2.15rem);
    line-height: 1.08;
  }

  .app-section-heading h2,
  .consult-section-heading h2,
  .contact-panel h1 {
    font-size: 1.28rem;
  }

  .hero-panel,
  .feature-panel,
  .library-panel,
  .cta-panel,
  .app-compact-panel,
  .consult-compact-panel,
  .contact-panel {
    padding: 1.15rem 0.9rem;
    border-radius: 1.35rem;
  }

  .library-card,
  .offer-card,
  .mini-card,
  .stat-card,
  .app-highlight,
  .consult-highlight {
    padding: 0.9rem;
  }

  .offer-btn,
  .library-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .library-card {
    gap: 0.85rem;
  }
}
