/* UX audit fixes: responsive navigation, truthful matching feedback and mobile reflow. */
.mfo-card[hidden] {
  display: none !important;
}

.comparison-disclosure {
  border-radius: 8px;
}

.hero__match-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
}

.hero__match--empty .hero__match-icon {
  background: var(--orange);
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .header__inner {
    position: relative;
  }

  .nav__mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 6px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 16px;
    right: 16px;
    z-index: 110;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav.nav--open {
    display: flex;
  }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 6px;
  }

  .hero {
    padding: 20px 0 8px;
  }

  .hero .container,
  .hero__card,
  .hero__calc,
  .hero__slider {
    min-width: 0;
    max-width: 100%;
  }

  .hero__card {
    width: 100%;
    padding: 24px 18px;
    border-radius: 8px;
  }

  .hero__title {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

  .hero__sub {
    font-size: 14px;
  }

  .hero__calc-row {
    min-width: 0;
    gap: 12px;
  }

  .hero__calc-label,
  .hero__calc-value {
    min-width: 0;
  }

  .hero__calc-value {
    white-space: nowrap;
  }

  .trust-bar {
    border-radius: 0;
    padding: 12px 0;
  }

  .trust-bar__inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 8px;
  }

  .trust-bar__item {
    line-height: 1.4;
  }
}

@media (max-width: 360px) {
  .hero__card {
    padding: 20px 14px;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__calc-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
