/* Tela de detalhamento */
.details-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  width: 800px;
  background-color: #000000;
  z-index: 100010;
  visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px 20px rgba(0, 0, 0, 0.63);
  transition: transform 0.25s ease-out, visibility 0s 0.25s;
}

.details-overlay.active {
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1), visibility 0s;
}

.details-overlay.active.opening {
  transform: translateX(-50%) scale(1.1);
  transition: none;
}

.details-control-bar {
  width: 100%;
  height: 70px;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-sizing: border-box;
}

.details-close {
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.details-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.details-close svg {
  flex-shrink: 0;
}

.details-container {
  width: 100%;
  flex: 1;
  position: relative;
  color: #ffffff;
  padding: 50px 105px 60px 105px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.details-nav {
  display: none;
}

.details-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Scrollbar oculta para container de detalhes */
.details-container::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.details-header-left {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.details-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.details-icon img {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.details-title {
  font-family: "DM Sans", sans-serif;
  font-size: 48px;
  font-weight: 300;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.details-subtitle {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  letter-spacing: -0.01em;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.details-demo-container {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 22px;
  box-sizing: border-box;
}


.details-demo-screen {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 23 / 12;
  background-color: #ffffff;
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 0 80px 20px rgba(0, 0, 0, 0.63);
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

.details-demo-label {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, color 0.3s ease;
  pointer-events: none;
  padding: 40px;
}

.demo-overlay.clickable {
  cursor: pointer;
}

.demo-overlay.clickable:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Mensagens de demo - desktop mostra "disponível", responsivo mostra "não suportada" */
.demo-label-desktop {
  display: block;
}

.demo-label-responsive {
  display: none;
}

.details-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  opacity: 1;
  transform: translateY(0);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.details-body-content:not(.no-transition) {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.details-body-content.transitioning-left {
  opacity: 0;
  transform: translateX(-50px);
}

.details-body-content.transitioning-right {
  opacity: 0;
  transform: translateX(50px);
}

.details-sections-row {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

.details-section-title {
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.details-section-content {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 200;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
  text-align: justify;
}

.details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.details-list li {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 200;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  padding-left: 25px;
  position: relative;
}

.details-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.5);
}

/* Grid de funcionalidades - 1 coluna */
.details-list.funcionalidades {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-list.funcionalidades li {
  padding-left: 25px;
}

/* Grid de benefícios - cards azuis */
.details-list.beneficios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-list.beneficios li {
  background-color: #3e85ed;
  color: #ffffff;
  padding: 18px 20px;
  border-radius: 8px;
  font-weight: 300;
  line-height: 1.5;
  font-size: 17px;
  text-align: left;
}

.details-list.beneficios li:before {
  display: none;
}

/* Demo Fullscreen Overlay */
.demo-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 200000;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  gap: 0;
}

.demo-fullscreen-overlay.active {
  visibility: visible;
}

/* Remove outline de focus do overlay - isso tava causando aquele outline gigante */
.demo-fullscreen-overlay:focus,
.demo-fullscreen-overlay:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.demo-control-bar {
  width: 100%;
  min-height: 70px;
  background-color: #000000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  box-sizing: border-box;
  gap: 20px;
}

.demo-control-title {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  color: #ffffff;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  white-space: nowrap;
  justify-self: start;
}

.demo-control-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
  justify-self: center;
}

.demo-control-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 8px 24px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.demo-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.demo-control-btn-primary {
  background: #3e85ed;
  border-color: #3e85ed;
  justify-self: end;
}

.demo-control-btn-primary:hover {
  background: #5a9aef;
  border-color: #5a9aef;
}

.demo-control-btn-icon {
  width: 40px;
  height: 40px;
  color: #ffffff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  outline: none;
}

.demo-control-btn-icon:focus,
.demo-control-btn-icon:focus-visible {
  outline: none;
  box-shadow: none;
}

.demo-control-btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.demo-control-btn-icon:disabled {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  opacity: 0.5;
}

.demo-control-btn-icon:disabled:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.demo-control-btn-icon svg {
  flex-shrink: 0;
}

.demo-fullscreen-container {
  width: 100%;
  position: relative;
  flex: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.demo-instructions {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%) translateX(-100%);
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 30px;
  max-width: 380px;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-instructions.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.demo-instructions h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.demo-instructions p {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 15px 0;
  letter-spacing: -0.01em;
}

.demo-instructions p:last-child {
  margin-bottom: 0;
}

.demo-instructions strong {
  font-weight: 500;
  color: #ffffff;
}

/* Balão de navegação guiada - CSS REMOVIDO: details.js injeta CSS inline correto */
/* NÃO adicionar CSS aqui - causa conflito com z-index, position e visibilidade */

.guided-balloon h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.guided-balloon p {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Destaque visual para elemento explicado */
.guided-highlight {
  position: absolute;
  border: 3px dashed rgba(62, 133, 237, 0.9);
  border-radius: 8px;
  background-color: rgba(62, 133, 237, 0.08);
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
  animation: pulse-border 2s ease-in-out infinite;
}

.guided-highlight.visible {
  opacity: 1;
  visibility: visible;
}

@keyframes pulse-border {
  0%, 100% {
    border-color: rgba(62, 133, 237, 0.9);
    box-shadow: 0 0 0 0 rgba(62, 133, 237, 0.4);
  }
  50% {
    border-color: rgba(62, 133, 237, 1);
    box-shadow: 0 0 20px 4px rgba(62, 133, 237, 0.3);
  }
}

/* Responsive - Tablet */
@media (max-aspect-ratio: 16/10) and (min-aspect-ratio: 13/10) {
  .details-overlay {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    left: 0;
    transform: scale(1);
    border-radius: 0;
    box-shadow: none;
  }

  .details-overlay.active {
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
  }

  .details-overlay.active.opening {
    transform: scale(1.1);
  }

  .details-content {
    max-width: 550px;
    margin: 0 auto;
  }

  .details-container {
    padding: 40px 50px;
  }

  .details-title {
    font-size: 36px;
  }

  .details-section-content {
    font-size: 16px;
  }

  .details-list li {
    font-size: 16px;
  }

  .details-list.beneficios li {
    font-size: 16px;
  }

  .details-demo-container {
    margin-bottom: 10px;
  }

  .demo-label-desktop {
    display: none;
  }

  .demo-label-responsive {
    display: block;
  }

  .demo-overlay.clickable {
    pointer-events: none;
    cursor: default;
  }

}

/* Responsive - Phablet */
@media (max-aspect-ratio: 13/10) and (min-aspect-ratio: 6/10) {
  .details-overlay {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    left: 0;
    transform: scale(1);
    border-radius: 0;
    box-shadow: none;
  }

  .details-overlay.active {
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
  }

  .details-overlay.active.opening {
    transform: scale(1.1);
  }

  .details-content {
    max-width: 500px;
    margin: 0 auto;
  }

  .details-container {
    padding: 30px 40px;
  }

  .details-title {
    font-size: 32px;
  }

  .details-icon {
    width: 60px;
    height: 60px;
  }

  .details-section-title {
    font-size: 20px;
  }

  .details-section-content {
    font-size: 16px;
  }

  .details-list li {
    font-size: 16px;
  }

  .details-list.beneficios li {
    font-size: 16px;
  }

  .demo-control-bar {
    padding: 15px;
    min-height: 60px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .demo-control-title {
    font-size: 16px;
    justify-self: center;
  }

  .demo-control-buttons {
    gap: 10px;
    justify-self: center;
  }

  .demo-control-btn-primary {
    justify-self: center;
  }

  .demo-label-desktop {
    display: none;
  }

  .demo-label-responsive {
    display: block;
  }

  .details-demo-container {
    margin-bottom: 10px;
  }

  .demo-overlay.clickable {
    pointer-events: none;
    cursor: default;
  }
}

/* Responsive - Mobile */
@media (max-aspect-ratio: 6/10) {
  .details-overlay {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    left: 0;
    transform: scale(1);
    border-radius: 0;
    box-shadow: none;
  }

  .details-overlay.active {
    transform: scale(1);
    transition: transform 0.7s cubic-bezier(0.34, 1.4, 0.64, 1);
  }

  .details-overlay.active.opening {
    transform: scale(1.1);
  }

  .details-content {
    max-width: 450px;
    margin: 0 auto;
  }

  .details-sections-row {
    flex-direction: column;
  }

  .details-container {
    padding: 20px 20px;
  }

  .details-title {
    font-size: 28px;
  }

  .details-icon {
    width: 50px;
    height: 50px;
  }

  .details-section-title {
    font-size: 18px;
  }

  .demo-fullscreen-overlay {
    padding: 0;
  }

  .demo-control-bar {
    padding: 12px;
    min-height: 55px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .demo-control-title {
    font-size: 14px;
    justify-self: center;
  }

  .demo-control-buttons {
    gap: 8px;
    justify-self: center;
  }

  .demo-control-btn {
    font-size: 12px;
    padding: 5px 12px;
  }

  .demo-control-btn-icon {
    width: 36px;
    height: 36px;
  }

  .demo-control-btn-primary {
    justify-self: center;
    font-size: 14px;
    padding: 8px 20px;
  }

  .demo-instructions {
    left: 15px;
    right: 15px;
    max-width: none;
    padding: 20px;
  }

  .demo-instructions h3 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .demo-instructions p {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .details-list li {
    font-size: 15px;
  }

  .details-list.beneficios li {
    padding: 14px 16px;
    font-size: 15px;
  }

  .details-sections-row {
    margin-top: 12px;
    gap: 12px;
  }

  .details-section:not(:first-child) {
    margin-top: 12px;
  }

  .details-section-content {
    font-size: 15px;
  }

  .demo-label-desktop {
    display: none;
  }

  .demo-label-responsive {
    display: block;
  }

  .details-demo-container {
    margin-bottom: 10px;
  }

  .demo-overlay.clickable {
    pointer-events: none;
    cursor: default;
  }
}
