.tool-row {
  grid-template-columns: repeat(3, 1fr);
}

.compare-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.canvas-wrap canvas {
  cursor: ew-resize;
}

.canvas-wrap canvas[data-tool="paint"],
.canvas-wrap canvas[data-tool="erase"] {
  cursor: crosshair;
}

.compare-handle {
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 56%;
  width: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #172019;
  cursor: ew-resize;
  touch-action: none;
  transform: translateX(-50%);
}

.compare-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--lime);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(23, 32, 25, 0.18);
}

.compare-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font: 800 18px/1 Manrope, sans-serif;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.compare-handle:focus-visible span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.facade-type {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #a9b4a7;
  font-size: 0.68rem;
}

.facade-type select {
  width: 100%;
  min-height: 42px;
  padding: 9px 34px 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #202b22;
  color: #f7f3e9;
}

.facade-type select:focus {
  border-color: var(--lime);
  outline: 2px solid rgba(213, 239, 113, 0.18);
  outline-offset: 2px;
}

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

@media (max-width: 760px) {
  .demo-notice {
    width: 100%;
    min-width: 0;
    padding: 8px 12px;
  }

  .demo-notice span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .facade-header,
  main,
  footer {
    width: 100% !important;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .facade-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
    overflow: hidden;
  }

  .madk-brand img {
    width: 42px;
    height: 42px;
  }

  .demo-brand {
    min-width: 0;
    grid-template-columns: 27px minmax(0, 1fr);
    column-gap: 7px;
    overflow: hidden;
  }

  .demo-brand i {
    width: 26px;
    height: 36px;
  }

  .demo-brand strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.88rem;
    letter-spacing: 0.1em;
  }

  .header-cta {
    display: block;
    max-width: 92px;
    padding: 9px 8px;
    overflow: hidden;
    font-size: 0.61rem;
    line-height: 1.15;
    text-align: center;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2rem, 10.5vw, 2.6rem);
    letter-spacing: -0.055em;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  main,
  .hero,
  .hero-copy,
  .hero-visual,
  .simulator-section,
  .simulator-shell,
  .simulator-workspace {
    min-width: 0;
    max-width: 100%;
  }

  .hero-copy p {
    overflow-wrap: anywhere;
  }

  .hero {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-copy,
  .hero-copy > p,
  .hero-actions,
  .hero-proof,
  .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .method h2,
  .legal-frame h2,
  .final-cta h2 {
    font-size: clamp(2.65rem, 13vw, 3.35rem);
  }

  .simulator-panel {
    padding: 20px;
  }

  .compare-control,
  .workspace-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .tool-row {
    grid-template-columns: 1fr;
  }

  .compare-handle {
    width: 54px;
  }

  .compare-handle span {
    width: 46px;
    height: 46px;
  }
}
