/* Layout: one spacing scale, independent of the number of sections. */
html {
  scroll-padding-top: 104px;
}
.container,
.topbar-inner {
  width: min(var(--page-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}
section {
  min-width: 0;
}
h1,
h2,
h3,
h4,
.eyebrow {
  text-transform: uppercase;
}
p {
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.skip {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 150;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--fg);
  color: var(--bg);
}
.skip:focus {
  transform: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: clamp(64px, 9vw, 144px);
  min-height: 80px;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
}
.prisma-wordmark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.prisma-wordmark-dark {
  display: none;
}
html[data-theme="dark"] .prisma-wordmark-light {
  display: none;
}
html[data-theme="dark"] .prisma-wordmark-dark {
  display: block;
}
#navigation {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 32px);
}
#navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 0;
  font-size: 13px;
  color: var(--muted);
}
#navigation a[aria-current] {
  color: var(--fg);
  font-weight: 600;
}
#navigation a:hover {
  color: var(--fg);
}
.topbar-actions {
  display: none;
}
.topbar-menu {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  place-items: center;
}
.topbar-menu svg {
  display: block;
}
.menu-close {
  display: none;
}
.topbar-menu[aria-expanded="true"] .menu-lines {
  display: none;
}
.topbar-menu[aria-expanded="true"] .menu-close {
  display: block;
}
#conteudo > section {
  padding-block: var(--section-space);
}
#conteudo > #inicio {
  padding-top: var(--intro-space);
  padding-bottom: 0;
}
.hero h1 {
  font-size: clamp(36px, 5.8vw, 82px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  max-width: 1100px;
}
.hero-bottom {
  margin-top: 24px;
}
.hero-bottom p {
  max-width: 660px;
  font-size: 18px;
}
.intro-divider {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: var(--intro-space) 0 0;
}
#conteudo > #solucoes {
  padding-top: var(--intro-gap);
}
.section-title {
  font-size: clamp(22px, 2.15vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.025em;
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 36px;
}
.section-heading > p {
  max-width: 540px;
  line-height: 1.7;
}
.section-copy {
  margin-top: 24px;
  max-width: 42ch;
  line-height: 1.7;
}
/* Service buttons lead to native dialogs; no decorative animations. */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.solution {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 28px;
  gap: 18px;
  min-height: 238px;
}
.solution h3 {
  font-size: 21px;
}
.solution p {
  font-size: 15px;
  line-height: 1.7;
}
.card-bottom {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.solution:hover {
  background: var(--surface);
}
.section-note {
  font-size: 13px;
  text-align: center;
  margin-top: 26px;
}
/* Method and perspective retain the approved two-column structure. */
.method-section,
.about-section {
  background: var(--surface);
}
.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: start;
}
.steps details {
  border-top: 1px solid var(--line);
}
.steps details:last-child {
  border-bottom: 1px solid var(--line);
}
.steps summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  list-style: none;
  min-height: 76px;
  padding-block: 20px;
  cursor: pointer;
}
.steps summary::-webkit-details-marker {
  display: none;
}
.steps summary h3 {
  font-size: 21px;
  flex: 1;
}
.step-toggle {
  flex-shrink: 0;
}
.steps details[open] .step-toggle {
  transform: rotate(180deg);
}
.steps details > p {
  line-height: 1.8;
  max-width: 64ch;
  padding-bottom: 16px;
}
.step-output {
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 18px;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 64px;
  align-items: start;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 70ch;
}
.about-copy p {
  font-size: 17px;
  line-height: 1.8;
}
.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.principles span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-size: 12px;
}
/* Context and native tab semantics for independent embedded demonstrations. */
.lab-instrument {
  min-width: 0;
}
.lab-selectors {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.lab-selector {
  min-height: 64px;
  padding: 15px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  text-align: left;
}
.lab-selector:last-child {
  border-right: 0;
}
.lab-selector:hover {
  background: var(--surface);
}
.lab-selector[aria-selected="true"] {
  background: var(--fg);
  color: var(--bg);
}
.lab-selector:focus-visible {
  outline-offset: -5px;
}
.lab-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 26px;
}
.lab-project-heading {
  display: flex;
  align-items: baseline;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.lab-project-heading h3 {
  font-size: 24px;
}
.lab-project-heading > span {
  font-size: 13px;
  color: var(--muted);
}
.lab-context p {
  font-size: 14px;
  max-width: 530px;
}
.full-lab-link {
  flex-shrink: 0;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.lab-screen {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg);
  min-width: 0;
}
.lab-screen iframe {
  display: block;
  width: 100%;
  height: 690px;
  border: 0;
  background: var(--bg);
}
.lab-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
.lab-bottom {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.lab-honesty {
  font-size: 12px;
  margin-top: 14px;
}
.lab-screen[data-locked="true"] iframe {
  pointer-events: none;
  user-select: none;
}
.lab-scroll-shield {
  position: absolute;
  inset: 0;
  z-index: 5;
  touch-action: pan-y pinch-zoom;
  background: transparent;
}
.lab-interaction-bar {
  position: sticky;
  top: 80px;
  z-index: 25;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.lab-interaction-bar > span {
  font-size: 12px;
  color: var(--muted);
}
.lab-interaction-button {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 13px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
}
.lab-interaction-button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
}
/* Contact: full-width fields, explicit local delivery status. */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}
#contato .section-title {
  font-size: clamp(28px, 3vw, 40px);
  max-width: 16ch;
}
#contact-ui {
  min-width: 0;
}
#brief-form {
  display: grid;
  gap: 26px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
#brief-form label {
  display: block;
  font-size: 14px;
}
#brief-form input,
#brief-form select,
#brief-form textarea {
  display: block;
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
  font-size: 16px;
}
#brief-form textarea {
  min-height: 190px;
}
.optional,
.field-note {
  font-size: 12px;
  color: var(--muted);
}
.brief-submit {
  justify-self: start;
  min-height: 44px;
  border: 0;
  padding: 10px 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
}
.brief-submit:hover {
  color: var(--muted);
}
/* Dialogs stay in the browser's top layer; closed dialogs remain hidden. */
.prisma-dialog {
  margin: auto;
  width: min(620px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 32px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}
.prisma-dialog[open] {
  display: grid;
  gap: 20px;
}
.prisma-dialog::backdrop {
  background: #121316b3;
}
.prisma-dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
}
.prisma-close {
  font-size: 28px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
}
.prisma-close:hover {
  background: var(--surface);
}
.prisma-dialog h2 {
  font-size: 30px;
}
.prisma-dialog h3 {
  font-size: 18px;
}
.prisma-dialog ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}
.prisma-dialog li + li {
  margin-top: 7px;
}
.dialog-note {
  background: var(--surface);
  padding: 16px;
  font-size: 13px;
}
.button {
  min-height: 48px;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
  border: 0;
  font-size: 14px;
}
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 20px 56px;
  text-align: center;
}
.footer p {
  font-size: 12px;
}
.social-profiles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.social-profile {
  width: 44px;
  height: 44px;
  padding: 10px;
  display: grid;
  place-items: center;
}
.social-profile svg {
  width: 24px;
  height: 24px;
}
.social-profile:hover {
  background: var(--surface);
}
/* Tablets and phones preserve hierarchy instead of scaling desktop controls. */
@media (max-width: 1179px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
    gap: 0 16px;
    min-height: 80px;
  }
  .topbar-actions {
    display: block;
  }
  .topbar-menu {
    display: grid;
  }
  #navigation {
    display: none;
    grid-column: 1/-1;
    grid-row: 2;
    padding-bottom: 16px;
  }
  #navigation.open {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
}
@media (max-width: 1024px) {
  .method-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .section-copy {
    max-width: 60ch;
  }
  #contato .section-title {
    max-width: none;
  }
  .lab-selectors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lab-selector:nth-child(3n) {
    border-right: 0;
  }
  .lab-selector:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .lab-screen iframe {
    height: 760px;
  }
  .solutions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 90px;
  }
  .topbar-inner {
    min-height: 64px;
  }
  .prisma-wordmark {
    width: 36px;
    height: 36px;
  }
  #navigation.open {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero h1 {
    font-size: clamp(29px, 7.8vw, 46px);
    overflow-wrap: break-word;
  }
  .hero-bottom p {
    font-size: 16px;
  }
  .section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solution {
    padding: 26px 22px;
    min-height: 0;
  }
  .steps summary {
    min-height: 72px;
    padding-block: 18px;
  }
  .steps summary h3 {
    font-size: 19px;
  }
  .about-copy p {
    font-size: 16px;
    line-height: 1.75;
  }
  .lab-selectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-selector {
    font-size: 12px;
    border-bottom: 1px solid var(--line);
  }
  .lab-selector:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .lab-selector:nth-child(2n) {
    border-right: 0;
  }
  .lab-selector:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .lab-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .lab-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .lab-screen iframe {
    height: clamp(540px, 85svh, 760px);
  }
  .lab-interaction-bar {
    top: 64px;
    padding: 10px 12px;
  }
  .lab-interaction-button {
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  #brief-form textarea {
    min-height: 170px;
  }
  .prisma-dialog {
    padding: 22px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .prisma-dialog h2 {
    font-size: 25px;
  }
  .footer {
    gap: 6px;
    padding: 12px 48px 16px;
  }
  .social-profiles {
    gap: 8px;
  }
}

/* Stretch the semantic heading button across its service card. */
.solution {
  position: relative;
}
.solution h3 button {
  font: inherit;
  text-align: inherit;
  text-transform: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}
.solution h3 button::after {
  content: "";
  position: absolute;
  inset: 0;
}
.solution:focus-within {
  outline: 2px solid var(--fg);
  outline-offset: -4px;
}
.solution h3 button:focus-visible {
  outline: none;
}

/* Honeypot stays outside visual and keyboard navigation. */
.contact-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#contact-status:empty {
  display: none;
}
