.site-footer .btn, .privacy-dialog .btn, .cookie-banner .btn, .mobile-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 18px;
  background: var(--coral);
  color: #2c1c18;
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
}
.privacy-dialog .btn.secondary, .cookie-banner .btn.secondary {
  background: #fff;
  border-color: #bfb8b3;
}
.mobile-cta { display: none; }
dialog {
  border: 1px solid #e3dfdd;
  border-radius: 8px;
  color: #28262a;
  padding: 0;
  max-width: calc(100% - 36px);
  box-shadow: 0 28px 90px #27222a33;
}
dialog::backdrop { background: rgba(30, 29, 32, 0.52); backdrop-filter: blur(7px); }
.image-dialog { width: 430px; background: #fafafa; max-height: 94dvh; overflow: hidden; }
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 20px;
  border-bottom: 1px solid #e3dfdd;
  font-size: 13px;
  background: #fff;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #e3dfdd;
  border-radius: 4px;
  cursor: pointer;
}
.image-dialog figure { margin: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.image-dialog img { max-height: calc(86dvh - 125px); width: auto; object-fit: contain; }
.image-dialog figcaption { font-size: 11px; line-height: 1.6; margin-top: 12px; text-align: center; color: #656169; }
.privacy-dialog { width: 570px; background: #fff; }
.privacy-body { padding: 27px; }
.privacy-body h2 { font-size: 29px; margin-bottom: 15px; }
.privacy-body p { font-size: 13px; line-height: 1.8; color: #656169; }
.privacy-actions { display: flex; gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.privacy-actions .btn { font-size: 12px; min-height: 44px; flex: 1; padding: 11px 15px; }
.privacy-actions .save { flex-basis: 100%; }
.privacy-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #e3dfdd;
  padding-top: 17px;
  margin-top: 20px;
}
.privacy-option input { width: 20px; height: 20px; accent-color: #ad3923; margin: 4px 0; }
.privacy-option b { display: block; font-size: 14px; }
.privacy-option small { display: block; font-size: 12px; margin-top: 5px; color: #656169; }
.privacy-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #28262a;
  padding: 13px 22px;
  border: 1px solid #e3dfdd;
  box-shadow: 0 8px 35px #2222;
  z-index: 80;
  font-size: 13px;
  border-radius: 6px;
}
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 50;
  width: 460px;
  max-width: calc(100% - 48px);
  background: white;
  border: 1px solid #e3dfdd;
  box-shadow: 0 8px 40px #3332;
  border-radius: 8px;
  padding: 22px;
}
.cookie-banner h2 { font-size: 18px; margin-bottom: 9px; }
.cookie-banner p { font-size: 12px; margin-bottom: 16px; color: #656169; }
.cookie-banner > div { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-banner .btn { font-size: 12px; min-height: 42px; padding: 10px 13px; flex: 1; }

/* Phones: the notice is a slim bottom strip instead of a card covering half the first screen. */
@media (max-width: 620px) {
  .cookie-banner { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-width: 1px 0 0; border-radius: 12px 12px 0 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px #3332; }
  .cookie-banner h2 { display: none; }
  .cookie-banner p { font-size: 11px; line-height: 1.45; margin-bottom: 8px; }
  .cookie-banner > div { flex-wrap: nowrap; gap: 6px; }
  .cookie-banner .btn { min-height: 34px; font-size: 11px; line-height: 1.2; padding: 6px 8px; }
}

@media (max-width: 980px) {
  .header-nav { display: none; }
  .header-right > span { display: none; }
  .menu-btn { display: inline-flex; }
  .pain.section { grid-template-columns: 1fr; gap: 32px; }
  .device-art.onboarding-stage,
  .device-art.exploded-stage {
    height: auto;
    flex-direction: column;
    padding: 24px 0;
  }
  .device-art.onboarding-stage .device-rig {
    position: relative;
    left: auto;
    top: auto;
    margin: 16px auto;
  }
  .app-leader-svg {
    display: none;
  }
  .device-art.exploded-stage img.exploded-render {
    height: 420px;
  }
  .callout-group {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 24px;
  }
  .part-callout {
    position: static;
    max-width: none;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .part-callout::before,
  .part-callout::after {
    display: none;
  }
  .device-art.onboarding-stage .device-caption {
    position: static;
    margin-top: 14px;
    text-align: center;
    width: 100%;
  }
  .device-art.onboarding-stage .device-replay-btn {
    position: static;
    margin: 12px auto 0;
    align-self: center;
  }
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer {
    --studio-silver: 280px;
    padding: 48px 0 calc(28px + 76px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 650px) {
  .app-anno-layer { grid-template-columns: 1fr; }
  .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #ffffffed;
    backdrop-filter: blur(8px);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 29;
    border-top: 1px solid #e3dfdd;
    padding: 11px 20px calc(11px + env(safe-area-inset-bottom));
  }
  .mobile-cta > span { font-size: 11px; line-height: 1.45; }
  .mobile-cta b { display: block; color: #ad3923; font-size: 13px; }
}
