/* Camada final de acabamento do site publico Cruz Sampaio. */
:root {
  --cs-ink: #17231d;
  --cs-muted: #46584f;
  --cs-forest: #173f35;
  --cs-green: #2da05e;
  --cs-brass: #b88a2d;
  --cs-line: rgba(23, 63, 53, 0.2);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  min-width: 0;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.lang-bar {
  width: 100%;
  min-width: 0;
  padding: 0.4rem clamp(0.5rem, 2vw, 1rem);
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.lang-selector {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
}

.lang-btn {
  flex: 0 0 auto;
}

header {
  width: 100%;
  min-width: 0;
}

.header-content {
  width: min(1160px, calc(100vw - 2rem));
  min-width: 0;
  min-height: 92px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
}

.logo,
.auth-buttons,
.cta-buttons,
.nav-links {
  min-width: 0;
}

.logo-text {
  overflow-wrap: anywhere;
}

.auth-buttons,
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn,
button,
input,
select,
textarea {
  max-width: 100%;
}

.btn {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

.hero {
  min-height: auto;
  align-items: flex-start;
  padding-top: clamp(3.25rem, 7vh, 5.5rem);
  padding-bottom: clamp(2.5rem, 5vh, 4rem);
}

.hero-content {
  max-width: 1120px;
  width: min(1120px, 100%);
  min-width: 0;
}

.hero-badge {
  margin-bottom: 1rem;
  border-radius: 6px;
  color: var(--cs-forest);
  border-color: rgba(45, 160, 94, 0.28);
  background: rgba(134, 213, 169, 0.2);
}

.hero h1 {
  max-width: 20ch;
  margin: 0 auto 0.8rem;
  color: var(--cs-ink);
  text-shadow: 0 3px 12px rgba(10, 31, 20, 0.14);
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 66ch;
  margin-bottom: 0.4rem;
  color: var(--cs-muted);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.typing-line {
  min-height: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--cs-green);
  letter-spacing: 0;
}

#formulaCanvas.formula-canvas-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 0.34;
  pointer-events: none;
  border: 0;
  background: transparent;
}

.constitutional-strip.constitutional-strip-hero {
  width: min(760px, 100%);
  min-height: 84px;
  margin: 0.8rem auto 1.25rem;
  display: grid;
  place-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 28px rgba(10, 31, 20, 0.12);
}

.constitutional-strip {
  border-radius: 0;
}

.section-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cs-brass);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-access,
.specialties-access {
  padding: clamp(3rem, 6vw, 5.5rem) var(--side-pad);
  background: #07140d;
  color: #eefcf3;
  opacity: 1 !important;
  transform: none !important;
}

.landing-access .section-header,
.specialties-access .section-header {
  opacity: 1 !important;
  transform: none !important;
}

.specialties-access {
  background: #f4f7f5;
  color: var(--cs-ink);
}

.landing-access .section-header h2,
.landing-access .section-header p {
  color: #eefcf3 !important;
  text-shadow: none;
}

.landing-access .section-header p {
  color: rgba(238, 252, 243, 0.78) !important;
}

.specialties-access .section-header h2 {
  color: var(--cs-ink);
  text-shadow: none;
}

.specialties-access .section-header p {
  color: var(--cs-muted);
}

.landing-segments,
.specialty-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.access-segment,
.specialty-card {
  min-width: 0;
  padding: clamp(1rem, 2.6vw, 1.6rem);
  border: 1px solid rgba(134, 213, 169, 0.2);
  background: #10271b;
}

.access-segment {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

.access-segment-primary {
  border-color: rgba(134, 213, 169, 0.38);
  background: #0d2c1b;
}

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

.segment-kicker {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: #86d5a9;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.segment-copy h3,
.specialty-card h3 {
  margin: 0 0 0.45rem;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.segment-copy p,
.specialty-card p {
  margin: 0;
  color: rgba(238, 252, 243, 0.7);
  line-height: 1.6;
  letter-spacing: 0;
}

.button-stack,
.button-grid,
.specialty-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-stack {
  flex-direction: column;
}

.button-stack .access-button {
  flex: 0 0 auto;
  min-height: 64px;
}

.button-grid {
  align-items: stretch;
}

.access-button {
  min-width: min(100%, 220px);
  flex: 1 1 230px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  color: #eefcf3;
  text-decoration: none;
  border: 1px solid rgba(134, 213, 169, 0.22);
  background: rgba(6, 18, 12, 0.86);
}

.button-grid .access-button {
  min-height: 84px;
}

.access-button:hover {
  color: #ffffff;
  border-color: rgba(134, 213, 169, 0.55);
  background: #143521;
}

.access-button.is-primary {
  color: #07140d;
  background: #86d5a9;
}

.access-button span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  background: rgba(134, 213, 169, 0.14);
  color: inherit;
  font-size: 1.25rem;
}

.access-button.is-primary span {
  background: rgba(7, 20, 13, 0.12);
}

.access-button strong,
.access-button small {
  display: block;
  letter-spacing: 0;
}

.access-button strong {
  color: inherit;
  line-height: 1.2;
}

.access-button small {
  margin-top: 0.15rem;
  color: rgba(238, 252, 243, 0.62);
  line-height: 1.35;
}

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

.specialty-card {
  background: #ffffff;
  border-color: rgba(23, 63, 53, 0.16);
}

.specialty-card h3 {
  color: var(--cs-ink);
}

.specialty-card p {
  color: var(--cs-muted);
}

.specialty-actions {
  margin-top: 1rem;
}

.specialty-actions a {
  flex: 1 1 160px;
  padding: 0.75rem 0.85rem;
  color: #07140d;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(45, 160, 94, 0.24);
  background: rgba(134, 213, 169, 0.34);
}

.specialty-actions a:hover {
  background: #86d5a9;
}

#acessos,
#especialidades {
  scroll-margin-top: 120px;
}

.visit-pages {
  padding: clamp(3rem, 6vw, 5rem) var(--side-pad);
  background: #07140d;
  color: #eefcf3;
}

.visit-pages,
.tools {
  opacity: 1 !important;
  transform: none !important;
}

.visit-pages .section-header h2 {
  color: #eefcf3;
  text-shadow: none;
}

.visit-pages .section-header p {
  color: rgba(238, 252, 243, 0.72);
}

.page-flow {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.page-flow-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: #eefcf3;
  text-decoration: none;
  border: 1px solid rgba(134, 213, 169, 0.18);
  background: #10271b;
  box-shadow: 0 10px 28px rgba(5, 18, 11, 0.18);
}

.page-flow-item:hover {
  border-color: rgba(134, 213, 169, 0.48);
  background: #143521;
}

.page-flow-item strong,
.page-flow-item small {
  display: block;
  letter-spacing: 0;
}

.page-flow-item strong {
  color: #ffffff;
  font-size: 1rem;
}

.page-flow-item small {
  margin-top: 0.2rem;
  color: rgba(238, 252, 243, 0.68);
  line-height: 1.45;
}

.page-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: #07140d;
  font-size: 1.45rem;
  line-height: 1;
  background: #86d5a9;
}

.page-icon .lp-icon {
  width: 24px;
  height: 24px;
}

.module-explorer {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(134, 213, 169, 0.2);
  background: rgba(6, 18, 12, 0.76);
  box-shadow: 0 18px 48px rgba(5, 18, 11, 0.2);
  backdrop-filter: blur(14px);
}

.module-explorer-toolbar {
  min-height: 58px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(134, 213, 169, 0.16);
}

.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  border: 1px solid rgba(134, 213, 169, 0.18);
  background: transparent;
  border: 0;
}

.module-tab {
  min-height: 36px;
  min-width: 0;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(134, 213, 169, 0.22);
  border-radius: 0;
  color: #07140d;
  background: #86d5a9;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
}

.module-tab.is-active {
  color: #07140d;
  background: #86d5a9;
}

.module-progress {
  min-width: 180px;
  display: grid;
  gap: 0.35rem;
  color: rgba(238, 252, 243, 0.72);
  font-size: 0.72rem;
  text-align: right;
}

.module-progress-track {
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: rgba(216, 224, 228, 0.16);
}

.module-progress-track > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #86d5a9, #d3aa52);
  transition: width 240ms ease;
}

.module-explorer .tools-grid {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.module-explorer .tool-card[hidden] {
  display: flex !important;
}

.module-explorer .tool-card {
  min-height: 128px;
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon title action"
    "icon text action";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.3rem;
  padding: 1.15rem 1.3rem;
  border-radius: 4px;
  transform: none;
}

.module-explorer .tool-card .icon {
  grid-area: icon;
  width: 60px;
  height: 60px;
  margin: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
}

.module-explorer .tool-card h3 {
  grid-area: title;
  margin: 0;
  font-size: 1.08rem;
}

.module-explorer .tool-card p {
  grid-area: text;
  margin: 0;
  max-width: 72ch;
}

.module-explorer .tool-card .tool-action {
  grid-area: action;
  align-self: center;
  white-space: nowrap;
}

.module-explorer .tool-card[data-module-category="ferramenta"] {
  border-left: 4px solid var(--cs-brass);
}

.module-explorer .tool-card[data-module-category="funcionalidade"] {
  border-left: 4px solid #86d5a9;
}

.module-explorer .tool-card:hover {
  transform: translateY(-3px);
}

.module-level {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(216, 224, 228, 0.56);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}

.module-explorer .tool-card.is-visited::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 34%;
  height: 2px;
  background: #86d5a9;
}

#ferramentas {
  scroll-margin-top: 120px;
}

#paginas {
  scroll-margin-top: 120px;
}

@media (max-width: 768px) {
  .lang-bar {
    position: relative;
    justify-content: flex-start;
    padding: 0.35rem 0.5rem;
  }

  .lang-selector {
    gap: 0.28rem;
  }

  .lang-btn {
    width: 28px;
    min-width: 28px;
    height: 24px;
    padding: 0;
  }

  .flag-code {
    min-width: 22px;
    font-size: 0.58rem;
  }

  header {
    position: relative;
  }

  .header-content {
    width: min(100%, calc(100vw - 1.25rem));
    min-height: 0;
    padding: 0.9rem 0;
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: left;
  }

  .logo {
    justify-content: flex-start;
  }

  .logo-globe {
    width: clamp(42px, 12vw, 58px);
    height: auto;
  }

  .logo-text {
    font-size: clamp(1.25rem, 7vw, 1.85rem);
    letter-spacing: 0.12em;
  }

  nav {
    display: none;
  }

  .auth-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .auth-buttons .btn {
    width: 100%;
    min-height: 50px;
    padding-inline: 0.65rem;
    font-size: 0.9rem;
  }

  .hero,
  [data-orientation='portrait'] .hero {
    min-height: auto;
    padding: 2.35rem clamp(1rem, 5vw, 1.35rem) 2.5rem;
  }

  .hero-badge {
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0.45rem 0.8rem;
    line-height: 1.45;
  }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(1.9rem, 10vw, 2.35rem);
    line-height: 1.08;
    margin-bottom: 0.8rem;
  }

  .hero-subtitle {
    display: block;
    max-width: 36ch;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .typing-line {
    min-height: 1.2rem;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
  }

  #formulaCanvas.formula-canvas-bg {
    opacity: 0.26;
  }

  .constitutional-strip.constitutional-strip-hero {
    width: 100%;
    min-height: 112px;
    margin-top: 0.65rem;
    padding: 1rem;
    font-size: 0.76rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .cta-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .cta-buttons .btn {
    width: 100%;
    min-height: 52px;
  }

  .module-explorer-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .module-tabs,
  .module-progress {
    width: 100%;
  }

  .module-tab {
    flex: 1;
    padding-inline: 0.35rem;
    font-size: 0.74rem;
  }

  .module-progress {
    min-width: 0;
    text-align: left;
  }

  .module-explorer .tools-grid {
    display: flex;
  }

  .module-explorer .tool-card {
    min-height: 190px;
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "icon text"
      "action action";
    padding: 1rem;
    align-items: start;
  }

  .module-explorer .tool-card .icon {
    width: 46px;
    height: 46px;
    font-size: 1.45rem;
  }

  .module-explorer .tool-card .tool-action {
    width: 100%;
    padding-top: 0.7rem;
    white-space: normal;
  }

  .page-flow-item {
    align-items: flex-start;
    padding: 0.9rem;
  }

  .page-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .landing-access,
  .specialties-access {
    padding-inline: 1rem;
  }

  .access-segment,
  .specialty-grid {
    grid-template-columns: 1fr;
  }

  .access-button {
    flex-basis: 100%;
  }

  .button-grid,
  .specialty-actions {
    flex-direction: column;
  }
}

/* Baralho de capacidades: informativo, sem alegar disponibilidade inexistente. */
.capability-deck {
  background: #102d25;
  color: #eef8f2;
}

.capability-deck .section-header h2,
.capability-deck .section-header p {
  color: inherit !important;
}

.capability-deck .section-header p {
  opacity: 0.76;
}

.capability-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.capability-card {
  min-height: 270px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #eef8f2;
  border: 1px solid rgba(134, 213, 169, 0.2);
  background: #0a211a;
  box-shadow: 0 12px 28px rgba(2, 12, 8, 0.2);
  transition: border-color 180ms ease, transform 180ms ease;
  text-decoration: none !important;
}

.capability-card * { text-decoration: none !important; }

.capability-card:hover {
  color: #ffffff;
  border-color: rgba(211, 170, 82, 0.62);
  transform: translateY(-3px);
}

.capability-rank {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: #f1d99c;
  border: 1px solid rgba(211, 170, 82, 0.56);
  font-size: 0.72rem;
  font-weight: 900;
}

.capability-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.42rem;
  border: 1px solid currentColor;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.capability-status.is-active { color: #86d5a9; }
.capability-status.is-protected { color: #8cc9f2; }
.capability-status.is-review { color: #e7c66f; }
.capability-status.is-planned { color: rgba(216, 224, 228, 0.62); }

.capability-card h3 {
  margin-bottom: 0.55rem;
  color: #ffffff;
  font-size: 1.1rem;
}

.capability-card p {
  margin: 0;
  color: rgba(238, 248, 242, 0.7);
  line-height: 1.55;
}

.capability-card dl {
  margin: auto 0 0;
  padding-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.capability-card dl div {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(134, 213, 169, 0.16);
}

.capability-card dt {
  color: rgba(216, 224, 228, 0.48);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.capability-card dd {
  margin: 0.18rem 0 0;
  font-size: 0.76rem;
  font-weight: 700;
}

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

@media (max-width: 600px) {
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .capability-card { transition: none; }
  .capability-card:hover { transform: none; }
}

@media (min-width: 769px) and (max-width: 1120px) {
  .header-content {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 1rem;
  }

  .auth-buttons {
    width: min(560px, 100%);
  }

  .auth-buttons .btn {
    flex: 1 1 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .typing-line::after {
    animation: none;
  }
}

/* Launcher institucional: padrao tipo dashboard/app launcher, sem gamificacao. */
.landing-access {
  background: #f5f7f6;
  color: var(--cs-ink);
  border-top: 1px solid rgba(23, 63, 53, 0.12);
  border-bottom: 1px solid rgba(23, 63, 53, 0.12);
}

.landing-access .section-header {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 1.8rem;
}

.landing-access .section-header h2 {
  color: var(--cs-ink) !important;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.landing-access .section-header p {
  color: var(--cs-muted) !important;
  font-size: 1rem;
  line-height: 1.55;
}

.landing-segments {
  gap: 1rem;
}

.access-segment {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem;
  color: var(--cs-ink);
  border: 1px solid rgba(23, 63, 53, 0.14);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(23, 63, 53, 0.08);
}

.access-segment-primary {
  border-left: 5px solid var(--cs-green);
  background: #ffffff;
}

.segment-kicker {
  color: var(--cs-green);
  letter-spacing: 0.04em;
}

.segment-copy h3 {
  color: var(--cs-ink);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.segment-copy p {
  color: var(--cs-muted);
}

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

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

.access-button,
.button-stack .access-button,
.button-grid .access-button {
  min-width: 0;
  min-height: 68px;
  flex: initial;
  padding: 0.85rem;
  color: var(--cs-ink);
  border: 1px solid rgba(23, 63, 53, 0.14);
  background: #f8faf9;
  box-shadow: none;
}

.access-button:hover {
  color: var(--cs-ink);
  border-color: rgba(45, 160, 94, 0.42);
  background: #eef8f2;
}

.access-button.is-primary {
  color: #ffffff;
  border-color: var(--cs-green);
  background: var(--cs-green);
}

.access-button span {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  background: rgba(45, 160, 94, 0.12);
  font-size: 1.1rem;
}

.access-button.is-primary span {
  background: rgba(255, 255, 255, 0.18);
}

.access-button strong {
  font-size: 0.92rem;
}

.access-button small {
  color: var(--cs-muted);
  font-size: 0.78rem;
}

.access-button.is-primary small {
  color: rgba(255, 255, 255, 0.84);
}

.specialties-access {
  background: #ffffff;
}

.specialty-card {
  box-shadow: 0 10px 24px rgba(23, 63, 53, 0.06);
}

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

  .button-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .landing-access .section-header {
    text-align: left;
  }

  .landing-access .section-header h2 {
    font-size: clamp(1.6rem, 8vw, 2rem);
  }

  .access-segment {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .button-grid,
  .button-stack {
    grid-template-columns: 1fr;
  }

  .access-button,
  .button-stack .access-button,
  .button-grid .access-button {
    min-height: 58px;
  }
}

/* Enquadramento final: launcher institucional com icones e grades compactas. */
.landing-access {
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.landing-access .section-header,
.specialties-access .section-header {
  width: min(760px, 100%);
}

.pro-cta-grid,
.pro-loop-grid,
.pro-section-heading,
.pro-filterbar,
.specialty-grid {
  width: min(1080px, 100%);
  margin-inline: auto;
}

.pro-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 0.85rem;
}

.pro-cta-card,
.pro-loop-card {
  display: flex;
  min-width: 0;
  color: var(--cs-ink);
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(23, 63, 53, 0.14);
  box-shadow: 0 12px 28px rgba(23, 63, 53, 0.07);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pro-cta-card {
  flex-direction: column;
  min-height: 206px;
  padding: clamp(1rem, 1.8vw, 1.35rem);
}

.pro-cta-card.is-featured {
  color: #ffffff;
  background: #173f35;
  border-color: #173f35;
}

.pro-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  color: var(--cs-green);
  background: rgba(45, 160, 94, 0.1);
  border: 1px solid rgba(45, 160, 94, 0.18);
  border-radius: 8px;
  flex: 0 0 auto;
}

.pro-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pro-cta-card.is-featured .pro-icon {
  color: #86d5a9;
  background: rgba(134, 213, 169, 0.14);
  border-color: rgba(134, 213, 169, 0.28);
}

.pro-card-label,
.pro-section-heading span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.55rem;
  color: var(--cs-green);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pro-cta-card.is-featured .pro-card-label {
  color: #86d5a9;
}

.pro-cta-card strong,
.pro-loop-card strong {
  color: inherit;
  font-size: clamp(1.08rem, 1.8vw, 1.34rem);
  line-height: 1.14;
  letter-spacing: 0;
}

.pro-cta-card small,
.pro-loop-card small {
  display: block;
  margin-top: 0.55rem;
  color: var(--cs-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: 0;
}

.pro-cta-card.is-featured small {
  color: rgba(255, 255, 255, 0.76);
}

.pro-card-action {
  margin-top: auto;
  padding-top: 1.1rem;
  color: var(--cs-green);
  font-weight: 800;
}

.pro-cta-card.is-featured .pro-card-action {
  color: #86d5a9;
}

.pro-cta-card:hover,
.pro-loop-card:hover {
  border-color: rgba(45, 160, 94, 0.42);
  box-shadow: 0 16px 34px rgba(23, 63, 53, 0.1);
  transform: translateY(-2px);
}

.pro-section-heading {
  margin-top: clamp(1.75rem, 3vw, 2.45rem);
  margin-bottom: 0.9rem;
}

.pro-section-heading h3 {
  margin: 0;
  color: var(--cs-ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
}

.pro-filterbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  align-items: end;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.pro-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pro-filter {
  min-height: 40px;
  padding: 0 0.85rem;
  color: #31443a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  background: #ffffff;
  border: 1px solid rgba(23, 63, 53, 0.16);
  border-radius: 8px;
  cursor: pointer;
}

.pro-filter.is-active,
.pro-filter:hover {
  color: #ffffff;
  background: #173f35;
  border-color: #173f35;
}

.pro-search {
  display: grid;
  gap: 0.35rem;
  color: var(--cs-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pro-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 0.85rem;
  color: var(--cs-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: #ffffff;
  border: 1px solid rgba(23, 63, 53, 0.16);
  border-radius: 8px;
  outline: none;
}

.pro-search input:focus {
  border-color: rgba(45, 160, 94, 0.72);
  box-shadow: 0 0 0 3px rgba(45, 160, 94, 0.12);
}

.pro-loop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.pro-loop-card {
  flex-direction: column;
  min-height: 156px;
  padding: 1rem;
}

.pro-loop-card[hidden] {
  display: none !important;
}

.pro-loop-card::after {
  content: "Acessar";
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--cs-green);
  font-size: 0.82rem;
  font-weight: 800;
}

.specialties-access {
  padding-inline: clamp(1rem, 4vw, 2rem);
}

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

.specialty-card {
  min-height: 238px;
  padding: 1.15rem;
  border-radius: 0;
}

.specialty-card .pro-icon {
  margin-bottom: 0.75rem;
}

.specialty-card h3 {
  color: var(--cs-ink);
  letter-spacing: 0;
}

@media (max-width: 1120px) {
  .pro-cta-grid,
  .pro-loop-grid,
  .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pro-cta-card.is-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .landing-access {
    padding-block: 3rem;
  }

  .landing-access .section-header {
    margin-bottom: 1.25rem;
  }

  .pro-cta-grid,
  .pro-loop-grid,
  .specialty-grid,
  .pro-filterbar {
    grid-template-columns: 1fr;
  }

  .pro-cta-card.is-featured {
    grid-column: auto;
  }

  .pro-cta-card,
  .pro-loop-card,
  .specialty-card {
    min-height: auto;
  }

  .pro-filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pro-filter {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .landing-access,
  .specialties-access {
    padding-inline: 0.85rem;
  }

  .pro-cta-card,
  .pro-loop-card,
  .specialty-card {
    padding: 1rem;
  }
}

/* Reduz abertura excessiva do hero e melhora o enquadramento por ancora. */
.hero {
  min-height: auto !important;
  padding-top: clamp(3rem, 6vh, 4.75rem) !important;
  padding-bottom: clamp(2.2rem, 5vh, 4rem) !important;
}

.hero-content {
  max-width: min(920px, 100%) !important;
}

#acessos,
#especialidades,
#capacidades {
  scroll-margin-top: 112px;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 2rem !important;
    padding-bottom: 2.25rem !important;
  }

  .hero-content {
    gap: 0.9rem;
  }

  #acessos,
  #especialidades,
  #capacidades {
    scroll-margin-top: 92px;
  }
}
