:root {
  --bg: #06080d;
  --panel: rgba(8, 11, 19, 0.72);
  --panel-solid: rgba(9, 13, 23, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef4fa;
  --muted: rgba(238, 244, 250, 0.72);
  --accent: #0b4864;
  --accent-2: #12749d;
  --accent-soft: rgba(18, 116, 157, 0.14);
  --ok: #8cf2c0;
  --danger: #ff7878;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.presentation-mode #controlPanel,
body.presentation-mode #cameraBox,
body.presentation-mode #hint,
body.presentation-mode .reticle,
body.presentation-mode .viewer-overlay {
  opacity: 0;
  pointer-events: none;
}

body.presentation-mode #minimalPresentationBar,
body.presentation-mode #exitPresentationBtn {
  opacity: 1;
  pointer-events: auto;
}

#viewer,
.viewer-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#viewer {
  display: block;
  background: #05060b;
}

.viewer-overlay {
  background:
    radial-gradient(circle at 80% 16%, rgba(18,116,157,.18), transparent 28%),
    radial-gradient(circle at 20% 82%, rgba(18,116,157,.14), transparent 24%);
  pointer-events: none;
}

.topbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 28;
  width: min(1100px, calc(100vw - 32px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 9, 16, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: opacity .25s ease;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo,
.intro-logo {
  display: block;
  object-fit: contain;
}

.brand-logo {
  width: 120px;
  max-width: 28vw;
}

.brand-wrap strong,
.brand-wrap span {
  display: block;
}

.brand-wrap strong {
  font-size: 14px;
  letter-spacing: .04em;
}

.brand-wrap span {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.panel {
  position: fixed;
  top: 90px;
  left: 16px;
  z-index: 25;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  transition: opacity .25s ease;
}

.panel::-webkit-scrollbar { width: 6px; }
.panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 999px; }

.tag,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.tag::before,
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #73dcff;
  box-shadow: 0 0 18px #73dcff;
}

.panel h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: .95;
  letter-spacing: -.04em;
}

.panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.niche-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.niche-card,
.scene-button,
button,
.fileLabel,
.cta-link,
.hotspot-button,
.modal-close {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.niche-card {
  padding: 14px;
  border-radius: 18px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: var(--text);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.niche-card:hover,
.scene-button:hover,
button:hover,
.fileLabel:hover,
.cta-link:hover,
.hotspot-button:hover {
  transform: translateY(-1px);
}

.niche-card.active {
  border-color: rgba(115, 220, 255, .36);
  background: rgba(115, 220, 255, .12);
}

.niche-card strong,
.niche-card span {
  display: block;
}

.niche-card strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.niche-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.benefits-box,
.cta-box,
.scene-switcher {
  margin-top: 18px;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
}

.benefits-box h3,
.cta-box h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}

.benefits-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  display: grid;
  gap: 7px;
}

.scene-buttons {
  display: grid;
  gap: 10px;
}

.scene-button {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.08);
  text-align: left;
  color: var(--text);
}

.scene-button.active {
  border-color: rgba(115,220,255,.36);
  background: rgba(115,220,255,.12);
}

.scene-button strong,
.scene-button span {
  display: block;
}

.scene-button strong {
  font-size: 13px;
}

.scene-button span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button,
.fileLabel,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: #eaf5fa;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(18,116,157,.16);
}

button.secondary,
.fileLabel.secondary {
  color: var(--text);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: none;
}

button:disabled {
  opacity: .58;
  cursor: not-allowed;
}

#fileInput { display: none; }

.status-group {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.status.small {
  font-size: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 14px var(--danger);
  flex: 0 0 auto;
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 14px var(--ok);
}

.cameraBox {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 22;
  width: min(320px, calc(100vw - 32px));
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: opacity .25s ease;
}

#inputVideo,
#handCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

#inputVideo {
  opacity: .30;
}

#handCanvas {
  opacity: .95;
}

.hint {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 18;
  width: min(540px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(8,11,19,.58);
  backdrop-filter: blur(14px);
  color: var(--muted);
  line-height: 1.45;
  transition: opacity .25s ease;
}

.reticle {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 14;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.28);
  pointer-events: none;
  opacity: .48;
}

.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.24);
}

.reticle::before {
  left: 50%;
  top: -7px;
  width: 1px;
  height: 48px;
  transform: translateX(-50%);
}

.reticle::after {
  left: -7px;
  top: 50%;
  width: 48px;
  height: 1px;
  transform: translateY(-50%);
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 7, 12, 0.72);
  backdrop-filter: blur(18px);
}

.intro-screen.hidden {
  display: none;
}

.intro-card {
  width: min(760px, 100%);
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at top right, rgba(18,116,157,.16), transparent 28%),
    rgba(8, 12, 21, 0.92);
  box-shadow: var(--shadow);
}

.intro-logo {
  width: 180px;
  max-width: 45vw;
  margin-bottom: 12px;
}

.intro-badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(115,220,255,.12);
  color: #a6e6fb;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.intro-card h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: .94;
  letter-spacing: -.055em;
}

.intro-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 62ch;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.intro-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.intro-points li {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  line-height: 1.45;
}

.hotspots-layer {
  position: fixed;
  inset: 0;
  z-index: 16;
  pointer-events: none;
}

.hotspot-button {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(6,10,19,.78);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0,0,0,.28);
  pointer-events: auto;
  white-space: nowrap;
}

.hotspot-button::before {
  content: "+";
  margin-right: 8px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(115,220,255,.14);
  color: #a8e8ff;
}

.hotspot-modal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 7, 12, 0.56);
  backdrop-filter: blur(12px);
}

.hotspot-modal.hidden,
.hidden {
  display: none !important;
}

.hotspot-modal-card {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8, 12, 21, 0.96);
  box-shadow: var(--shadow);
}

.hotspot-modal-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -.03em;
}

.hotspot-modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.minimal-presentation {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 30;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,11,19,.68);
  backdrop-filter: blur(14px);
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
}


.gesture-indicator {
  position: fixed;
  right: 16px;
  top: 92px;
  z-index: 24;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,11,19,.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}

.gesture-indicator__label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.gesture-indicator strong {
  display: block;
  font-size: 16px;
  letter-spacing: -.02em;
  color: var(--text);
}

body.presentation-mode .gesture-indicator {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .intro-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .gesture-indicator {
    right: 10px;
    top: 84px;
    min-width: 0;
    width: calc(100vw - 20px);
    padding: 12px 14px;
  }

  .topbar {
    top: 10px;
    width: calc(100vw - 20px);
    padding: 12px;
  }

  .panel {
    top: auto;
    bottom: 10px;
    left: 10px;
    width: calc(100vw - 20px);
    max-height: 56vh;
    padding: 16px;
  }

  .niche-grid {
    grid-template-columns: 1fr;
  }

  .cameraBox {
    right: 10px;
    bottom: calc(56vh + 24px);
    width: 160px;
    border-radius: 18px;
  }

  .hint {
    left: 10px;
    bottom: calc(56vh + 24px);
    width: calc(100vw - 180px - 30px);
    font-size: 12px;
  }

  .intro-card {
    padding: 20px;
  }
}


body.presentation-mode .topbar {
  background: rgba(5,9,16,.32);
  border-color: rgba(255,255,255,.06);
}

body.presentation-mode .brand-wrap {
  opacity: .22;
}

.viewer-overlay {
  display: none !important;
  background: none !important;
  opacity: 0 !important;
}


/* Ajuste para não interferir na visualização do tour */
.panel {
  transition: opacity .25s ease, transform .25s ease;
}

body.ui-clean #controlPanel {
  transform: translateX(calc(-100% - 40px));
  opacity: 0;
  pointer-events: none;
}

body.ui-clean.panel-open #controlPanel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.mini-controls {
  position: fixed;
  top: 92px;
  left: 16px;
  z-index: 31;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(8,11,19,.54);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,.24);
}

.mini-controls button {
  padding: 10px 14px;
}

body.presentation-mode .mini-controls {
  opacity: 0;
  pointer-events: none;
}

body.ui-clean:not(.panel-open) #hint {
  max-width: 410px;
  opacity: .78;
}

body.ui-clean:not(.panel-open) .topbar {
  background: rgba(5, 9, 16, 0.42);
}

body.ui-clean:not(.panel-open) .brand-wrap span {
  display: none;
}

@media (max-width: 760px) {
  .mini-controls {
    top: 84px;
    left: 10px;
    max-width: calc(100vw - 20px);
    overflow-x: auto;
  }

  body.ui-clean.panel-open #controlPanel {
    transform: translateX(0);
  }

  body.ui-clean:not(.panel-open) #controlPanel {
    transform: translateY(calc(100% + 40px));
  }

  body.ui-clean:not(.panel-open) #hint {
    display: none;
  }
}


.hotspots-layer {
  display: none !important;
}

.gesture-guide--minimal {
  width: min(390px, calc(100vw - 32px));
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: none;
}

.gesture-guide--minimal .gesture-guide__stage {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  align-items: center;
}

.gesture-guide--minimal .gesture-guide__visual {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
}

.gesture-guide--minimal .gesture-guide__visual svg {
  width: 96px;
  height: 96px;
  overflow: visible;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,.22));
}

.gesture-guide--minimal .gesture-guide__content h4 {
  margin: 0 0 6px;
  color: rgba(255,255,255,.96);
  font-size: 22px;
  letter-spacing: -.03em;
  text-shadow: 0 3px 14px rgba(0,0,0,.42);
}

.gesture-guide--minimal .gesture-guide__content p {
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.5;
  font-size: 15px;
  text-shadow: 0 3px 14px rgba(0,0,0,.40);
}

@media (max-width: 760px) {
  .gesture-guide--minimal {
    width: min(330px, calc(100vw - 20px));
  }

  .gesture-guide--minimal .gesture-guide__stage {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .gesture-guide--minimal .gesture-guide__visual svg {
    width: 78px;
    height: 78px;
  }

  .gesture-guide--minimal .gesture-guide__content h4 {
    font-size: 18px;
  }

  .gesture-guide--minimal .gesture-guide__content p {
    font-size: 13px;
  }
}


.gesture-guide__visual img {
  width: 96px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(255,255,255,.18));
}

@media (max-width: 760px) {
  .gesture-guide__visual img {
    width: 78px;
  }
}



/* ==============================================================
   Hero embed mode — versão simplificada para o site principal
   ============================================================== */
body.hero-embed-mode {
  --hero-camera-width: min(240px, calc(100vw - 48px));
  background: #05060b;
}

body.hero-embed-mode .viewer-overlay {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.22) 0%, rgba(8, 10, 16, 0.28) 100%),
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.06) 0%, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 78% 74%, rgba(0, 0, 0, 0.14) 0%, rgba(0,0,0,0) 34%);
}

body.hero-embed-mode .topbar,
body.hero-embed-mode #controlPanel,
body.hero-embed-mode .reticle,
body.hero-embed-mode #hotspotsLayer,
body.hero-embed-mode #introScreen,
body.hero-embed-mode #minimalPresentationBar,
body.hero-embed-mode #exitPresentationBtn,
body.hero-embed-mode #presentationModeBtn,
body.hero-embed-mode #togglePanelBtn,
body.hero-embed-mode #hotspotModal,
body.hero-embed-mode .hotspot-button,
body.hero-embed-mode .mini-controls,
body.hero-embed-mode .gesture-indicator {
  display: none !important;
}

body.hero-embed-mode .cameraBox {
  right: 24px;
  bottom: 24px;
  left: auto;
  width: var(--hero-camera-width);
  border-radius: 18px;
  z-index: 36;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 18px 34px rgba(0,0,0,.16);
}

body.hero-embed-mode .hint {
  left: auto;
  right: 24px;
  bottom: calc(24px + (var(--hero-camera-width) * 0.75) + 16px);
  width: var(--hero-camera-width);
  padding: 12px 14px;
  border-radius: 18px;
  z-index: 37;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255,255,255,.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #1f2430;
  box-shadow: 0 18px 34px rgba(0,0,0,.12);
}

body.hero-embed-mode .gesture-guide--minimal {
  padding: 0;
  border: 0;
  background: transparent;
}

body.hero-embed-mode .gesture-guide__visual {
  color: rgba(44, 50, 63, 0.88);
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  color: #202531;
  font-weight: 700;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  color: rgba(32, 37, 49, 0.86);
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage {
  gap: 10px;
  padding: 0;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  font-size: 13px;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  font-size: 11px;
  line-height: 1.45;
}

body.hero-embed-mode #inputVideo {
  opacity: .42;
}

body.hero-embed-mode #handCanvas {
  opacity: .96;
}

@media (max-width: 991px) {
  body.hero-embed-mode {
    --hero-camera-width: min(210px, calc(100vw - 40px));
  }

  body.hero-embed-mode .cameraBox {
    right: 20px;
    bottom: 20px;
  }

  body.hero-embed-mode .hint {
    right: 20px;
    bottom: calc(20px + (var(--hero-camera-width) * 0.75) + 12px);
  }
}

@media (max-width: 767px) {
  body.hero-embed-mode {
    --hero-camera-width: min(180px, calc(100vw - 28px));
  }

  body.hero-embed-mode .cameraBox {
    right: 14px;
    bottom: 14px;
    border-radius: 14px;
  }

  body.hero-embed-mode .hint {
    right: 14px;
    bottom: calc(14px + (var(--hero-camera-width) * 0.75) + 10px);
    border-radius: 14px;
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
    font-size: 12px;
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
    font-size: 10px;
  }
}



body.hero-embed-mode .hero-camera-controls {
  position: fixed;
  right: 24px;
  bottom: calc(24px + (var(--hero-camera-width) * 0.75) + 12px);
  z-index: 38;
  width: var(--hero-camera-width);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

body.hero-embed-mode .hero-camera-controls button {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  color: #161b24;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(255,255,255,.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

body.hero-embed-mode .hero-camera-controls button:hover {
  background: rgba(255,255,255,.94);
}

body.hero-embed-mode .hint {
  bottom: calc(24px + (var(--hero-camera-width) * 0.75) + 12px + 38px + 12px);
}

body.hero-embed-mode.hero-camera-preview-hidden .cameraBox,
body.hero-embed-mode.hero-camera-preview-hidden .hint {
  display: none !important;
}

body.hero-embed-mode.hero-camera-preview-hidden .hero-camera-controls {
  bottom: 24px;
}

@media (max-width: 991px) {
  body.hero-embed-mode .hero-camera-controls {
    right: 20px;
    bottom: calc(20px + (var(--hero-camera-width) * 0.75) + 10px);
  }

  body.hero-embed-mode .hint {
    bottom: calc(20px + (var(--hero-camera-width) * 0.75) + 10px + 38px + 10px);
  }

  body.hero-embed-mode.hero-camera-preview-hidden .hero-camera-controls {
    bottom: 20px;
  }
}

@media (max-width: 767px) {
  body.hero-embed-mode .hero-camera-controls {
    right: 14px;
    bottom: calc(14px + (var(--hero-camera-width) * 0.75) + 8px);
    gap: 6px;
  }

  body.hero-embed-mode .hero-camera-controls button {
    height: 34px;
    padding: 7px 8px;
    font-size: 10px;
  }

  body.hero-embed-mode .hint {
    bottom: calc(14px + (var(--hero-camera-width) * 0.75) + 8px + 34px + 8px);
  }

  body.hero-embed-mode.hero-camera-preview-hidden .hero-camera-controls {
    bottom: 14px;
  }
}


/* ==============================================================
   Correção final: guia novo acima dos botões da câmera
   ============================================================== */
body.hero-embed-mode {
  --hero-camera-bottom: 24px;
  --hero-stack-gap: 10px;
  --hero-controls-height: 38px;
}

body.hero-embed-mode .cameraBox {
  right: 24px !important;
  bottom: var(--hero-camera-bottom) !important;
  left: auto !important;
  width: var(--hero-camera-width) !important;
  z-index: 36 !important;
}

body.hero-embed-mode .hero-camera-controls {
  position: fixed !important;
  right: 24px !important;
  bottom: calc(var(--hero-camera-bottom) + (var(--hero-camera-width) * 0.75) + var(--hero-stack-gap)) !important;
  z-index: 38 !important;
  width: var(--hero-camera-width) !important;
  display: flex !important;
  gap: 8px !important;
  justify-content: flex-end !important;
}

body.hero-embed-mode .hero-camera-controls button {
  height: var(--hero-controls-height) !important;
}

body.hero-embed-mode .hint {
  left: auto !important;
  right: 24px !important;
  width: var(--hero-camera-width) !important;
  bottom: calc(var(--hero-camera-bottom) + (var(--hero-camera-width) * 0.75) + var(--hero-stack-gap) + var(--hero-controls-height) + var(--hero-stack-gap)) !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #ffffff !important;
  z-index: 37 !important;
}

body.hero-embed-mode .gesture-guide--minimal,
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage {
  width: 100% !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 !important;
  text-align: center !important;
}

body.hero-embed-mode .gesture-guide__visual {
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.hero-embed-mode .gesture-guide__visual svg {
  display: none !important;
}

body.hero-embed-mode .gesture-guide__visual img {
  width: min(148px, calc(var(--hero-camera-width) - 24px)) !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.18)) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  margin: 0 0 4px !important;
  color: #202531 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  margin: 0 !important;
  color: rgba(32, 37, 49, 0.86) !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
}

body.hero-embed-mode.hero-camera-preview-hidden .hero-camera-controls {
  bottom: var(--hero-camera-bottom) !important;
}

@media (max-width: 991px) {
  body.hero-embed-mode {
    --hero-camera-bottom: 20px;
  }

  body.hero-embed-mode .cameraBox,
  body.hero-embed-mode .hero-camera-controls,
  body.hero-embed-mode .hint {
    right: 20px !important;
  }
}

@media (max-width: 767px) {
  body.hero-embed-mode {
    --hero-camera-bottom: 14px;
    --hero-controls-height: 34px;
    --hero-stack-gap: 8px;
  }

  body.hero-embed-mode .cameraBox,
  body.hero-embed-mode .hero-camera-controls,
  body.hero-embed-mode .hint {
    right: 14px !important;
  }

  body.hero-embed-mode .hero-camera-controls {
    gap: 6px !important;
  }

  body.hero-embed-mode .gesture-guide__visual img {
    width: min(132px, calc(var(--hero-camera-width) - 18px)) !important;
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
    font-size: 12px !important;
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
    font-size: 10px !important;
  }
}



/* ==============================================================
   Ajuste final: controles invisíveis antes do start + alinhamento
   ============================================================== */
body.hero-embed-mode .cameraBox.hidden,
body.hero-embed-mode .hint.hidden,
body.hero-embed-mode .hero-camera-controls.hidden {
  display: none !important;
}

body.hero-embed-mode .hero-camera-controls {
  justify-content: center !important;
  align-items: center !important;
}

body.hero-embed-mode .hint {
  display: block !important;
  text-align: center !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage {
  width: 100% !important;
  margin: 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
}

body.hero-embed-mode .gesture-guide__visual,
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content {
  width: 100% !important;
  margin: 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.22) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  color: rgba(255,255,255,.88) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.20) !important;
}



/* ==============================================================
   Correção rígida final: guia alinhado à câmera e captions iguais ao hero
   ============================================================== */
body.hero-embed-mode .cameraBox.hidden,
body.hero-embed-mode .hint.hidden,
body.hero-embed-mode .hero-camera-controls.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.hero-embed-mode .cameraBox,
body.hero-embed-mode .hero-camera-controls,
body.hero-embed-mode .hint.gesture-guide.gesture-guide--minimal {
  left: auto !important;
  right: 24px !important;
  width: var(--hero-camera-width) !important;
  max-width: var(--hero-camera-width) !important;
  min-width: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}

body.hero-embed-mode .hero-camera-controls {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}

body.hero-embed-mode .hint.gesture-guide.gesture-guide--minimal {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  text-align: center !important;
  overflow: visible !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: 8px !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

body.hero-embed-mode .gesture-guide__visual {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: visible !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

body.hero-embed-mode .gesture-guide__visual svg {
  display: none !important;
}

body.hero-embed-mode .gesture-guide__visual img {
  display: block !important;
  width: calc(var(--hero-camera-width) * 0.62) !important;
  max-width: calc(var(--hero-camera-width) * 0.62) !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.18)) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  margin: 0 0 4px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.28) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  margin: 0 !important;
  color: rgba(255,255,255,.88) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
  text-align: center !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.24) !important;
}

@media (max-width: 991px) {
  body.hero-embed-mode .cameraBox,
  body.hero-embed-mode .hero-camera-controls,
  body.hero-embed-mode .hint.gesture-guide.gesture-guide--minimal {
    right: 20px !important;
  }
}

@media (max-width: 767px) {
  body.hero-embed-mode .cameraBox,
  body.hero-embed-mode .hero-camera-controls,
  body.hero-embed-mode .hint.gesture-guide.gesture-guide--minimal {
    right: 14px !important;
  }

  body.hero-embed-mode .gesture-guide__visual img {
    width: calc(var(--hero-camera-width) * 0.60) !important;
    max-width: calc(var(--hero-camera-width) * 0.60) !important;
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
    font-size: 12px !important;
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
    font-size: 10px !important;
  }
}


/* ==============================================================
   Ajuste final — guia e legenda mais claros no modo câmera
   ============================================================== */
body.hero-embed-mode .hint.gesture-guide.gesture-guide--minimal,
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage,
body.hero-embed-mode .gesture-guide__visual,
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content {
  opacity: 1 !important;
}

body.hero-embed-mode .gesture-guide__visual img {
  opacity: 1 !important;
  filter: brightness(1.32) contrast(1.08) drop-shadow(0 8px 18px rgba(0,0,0,.18)) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.30) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  color: rgba(255,255,255,.98) !important;
  opacity: 1 !important;
  text-shadow: 0 3px 12px rgba(0,0,0,.28) !important;
}



/* ==============================================================
   Ajuste extra — guia no modo câmera com claridade igual ao hero
   ============================================================== */
body.hero-embed-mode .hint.gesture-guide.gesture-guide--minimal,
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage,
body.hero-embed-mode .gesture-guide__visual,
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content,
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4,
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  opacity: 1 !important;
}

body.hero-embed-mode .gesture-guide__visual img {
  opacity: 1 !important;
  filter: brightness(2.05) contrast(1.14) grayscale(1) drop-shadow(0 8px 20px rgba(0,0,0,.10)) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.14) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  color: rgba(255,255,255,1) !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
}


/* ==============================================================
   Override final — comportamento do hero com câmera e guia
   ============================================================== */
body.hero-embed-mode {
  --hero-guide-image-width: 125px;
  --hero-guide-image-width-mobile: 114px;
}

body.hero-embed-mode .hint.gesture-guide.gesture-guide--minimal {
  bottom: calc(var(--hero-camera-bottom) + (var(--hero-camera-width) * 0.75) + var(--hero-stack-gap) + var(--hero-controls-height) + var(--hero-stack-gap)) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage {
  position: relative !important;
  gap: 8px !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--hero-guide-image-width) + 72px);
  height: calc(var(--hero-guide-image-width) + 84px);
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.26) 44%, rgba(0, 0, 0, 0) 74%);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

body.hero-embed-mode .gesture-guide__visual img {
  width: var(--hero-guide-image-width) !important;
  max-width: var(--hero-guide-image-width) !important;
  height: auto !important;
  opacity: 1 !important;
  filter: brightness(1.58) contrast(1.08) grayscale(1) drop-shadow(0 8px 18px rgba(0,0,0,.34)) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  margin: 0 0 4px !important;
  color: #ffffff !important;
  font-size: 12px !important;
  line-height: 1.14 !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.60), 0 0 22px rgba(0,0,0,.22) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  margin: 0 !important;
  color: rgba(255,255,255,.95) !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  text-shadow: 0 2px 14px rgba(0,0,0,.56), 0 0 20px rgba(0,0,0,.20) !important;
}

body.hero-embed-mode .hero-camera-controls {
  justify-content: center !important;
}

body.hero-embed-mode.hero-camera-preview-hidden .hero-camera-controls {
  bottom: var(--hero-camera-bottom) !important;
}

body.hero-embed-mode.hero-camera-preview-hidden .hint.gesture-guide.gesture-guide--minimal {
  bottom: calc(var(--hero-camera-bottom) + var(--hero-controls-height) + var(--hero-stack-gap)) !important;
}

@media (max-width: 767px) {
  body.hero-embed-mode {
    --hero-guide-image-width: var(--hero-guide-image-width-mobile);
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage::before {
    width: calc(var(--hero-guide-image-width-mobile) + 64px);
    height: calc(var(--hero-guide-image-width-mobile) + 74px);
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
    font-size: 11.5px !important;
  }

  body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
    font-size: 10px !important;
  }
}



/* ==============================================================
   Ajuste fino — guia da câmera mais claro e com contraste elegante
   ============================================================== */
body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage::before {
  width: calc(var(--hero-guide-image-width) + 82px) !important;
  height: calc(var(--hero-guide-image-width) + 94px) !important;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.20) 42%,
    rgba(0, 0, 0, 0.00) 76%) !important;
  filter: blur(20px) !important;
}

body.hero-embed-mode .gesture-guide__visual img {
  opacity: 1 !important;
  filter: brightness(2.38) contrast(1.16) grayscale(1)
          drop-shadow(0 10px 24px rgba(0,0,0,.20))
          drop-shadow(0 0 10px rgba(255,255,255,.08)) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content h4 {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow:
    0 3px 16px rgba(0,0,0,.44),
    0 0 18px rgba(0,0,0,.16) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__content p {
  color: rgba(255,255,255,1) !important;
  opacity: 1 !important;
  text-shadow:
    0 3px 16px rgba(0,0,0,.40),
    0 0 16px rgba(0,0,0,.14) !important;
}



/* ==============================================================
   Hero 10/10 — guia de gestos com cabeçalho e halo sutil
   ============================================================== */
body.hero-embed-mode .gesture-guide__eyebrow {
  order: -1 !important;
  margin: 0 0 2px !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 9px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-shadow: 0 3px 16px rgba(0,0,0,.46) !important;
}

body.hero-embed-mode .gesture-guide--minimal .gesture-guide__stage::before {
  width: calc(var(--hero-guide-image-width) + 84px) !important;
  height: calc(var(--hero-guide-image-width) + 94px) !important;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.32) 0%,
    rgba(0, 0, 0, 0.19) 42%,
    rgba(0, 0, 0, 0.00) 78%) !important;
  filter: blur(20px) !important;
}

body.hero-embed-mode .gesture-guide__visual img {
  filter: brightness(2.32) contrast(1.14) grayscale(1)
          drop-shadow(0 10px 24px rgba(0,0,0,.20))
          drop-shadow(0 0 10px rgba(255,255,255,.08)) !important;
}
