html:has(body.compare-app),
body.compare-app {
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

body.compare-app {
  display: flex;
  flex-direction: column;
  background: #fff;
  background-image: none;
}

.compare-app .staging-banner,
.compare-site-header,
.compare-intro,
.compare-disclosure {
  flex: 0 0 auto;
}

.compare-site-header {
  z-index: 100;
  padding: 10px 0;
}

.compare-site-header .wrap {
  width: 100%;
  max-width: 1440px;
  padding-inline: 20px;
}

.compare-site-header .brand-row {
  flex-wrap: nowrap;
}

.compare-header-start {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.compare-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 700 14px/1 var(--font-display);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.compare-back:hover {
  border-color: rgba(16, 26, 51, 0.28);
  background: var(--paper);
  transform: translateX(-2px);
}

.compare-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
  background: #fff;
}

.compare-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  width: 100%;
  padding: 12px max(22px, calc((100vw - 1400px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.compare-intro > div {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
}

.compare-eyebrow {
  color: var(--trust);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compare-intro h1 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.compare-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
}

.compare-workspace {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.compare-workspace .powerhq-embed-shell {
  width: 100%;
  min-height: 0;
  height: 100%;
}

.compare-workspace #powerhq-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
}

.compare-disclosure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  min-height: 38px;
  padding: 7px 18px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fbf8f0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.compare-disclosure details {
  position: relative;
}

.compare-disclosure summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.compare-disclosure details p {
  position: absolute;
  right: 0;
  bottom: calc(100% + 13px);
  z-index: 120;
  width: min(360px, calc(100vw - 28px));
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 26, 51, 0.16);
}

.compare-site-header a[target="_blank"]::after {
  content: " \2197";
  font-size: 0.78em;
}

@media (max-width: 820px) {
  .compare-site-header .brand {
    font-size: 18px;
  }

  .compare-intro {
    align-items: flex-start;
    padding: 10px 16px;
  }

  .compare-intro > div {
    display: block;
  }

  .compare-eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: 9px;
  }

  .compare-intro h1 {
    font-size: 21px;
  }

  .compare-intro p {
    max-width: 260px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .compare-site-header {
    padding: 8px 0;
  }

  .compare-site-header .wrap {
    padding-inline: 12px;
  }

  .compare-header-start {
    gap: 10px;
  }

  .compare-back {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .compare-site-header .brand {
    gap: 6px;
    font-size: 16px;
  }

  .compare-site-header .brand .bolt {
    font-size: 19px;
  }

  .compare-site-header .brand .star {
    font-size: 10px;
  }

  .compare-site-header .site-nav {
    position: fixed;
    top: 60px;
    right: 12px;
    z-index: 150;
    width: min(320px, calc(100vw - 24px));
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16, 26, 51, 0.2);
  }

  .compare-site-header .site-nav.open {
    display: flex;
  }

  .compare-site-header .nav-guides-menu {
    padding-left: 8px;
  }

  .compare-intro {
    display: block;
    padding: 8px 14px 9px;
  }

  .compare-intro h1 {
    font-size: 19px;
  }

  .compare-intro p {
    max-width: none;
    margin-top: 2px;
    text-align: left;
  }

  .compare-disclosure {
    justify-content: space-between;
    min-height: 36px;
    padding-inline: 12px;
    font-size: 9.5px;
  }

  .compare-disclosure > span {
    max-width: 235px;
  }

  .compare-disclosure details p {
    right: -3px;
  }
}

@media (max-width: 380px) {
  .compare-site-header .brand {
    font-size: 0;
  }

  .compare-site-header .brand .bolt {
    font-size: 21px;
  }

  .compare-site-header .brand .star {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-back {
    transition: none;
  }
}
