/* Keep the complete homepage action area visible on common laptop displays. */
.home-qr-live {
  color: #4f46e5 !important;
}

.home-qr-live i {
  background: #3675ff !important;
  box-shadow: 0 0 0 5px rgba(79, 70, 229, .12) !important;
}

.home-qr-free {
  background: linear-gradient(135deg, rgba(54, 117, 255, .11), rgba(124, 58, 237, .12)) !important;
  color: #5946e8 !important;
}

.home-qr-preview-wrap > span,
.home-qr-assurance i {
  color: #3675ff !important;
}

.home-qr-preview-wrap > span.is-waiting {
  color: #6d45ee !important;
}

.home-qr-card,
.home-qr-card *,
.home-qr-card *::before,
.home-qr-card *::after {
  box-sizing: border-box;
}

.home-qr-card {
  width: 100%;
  min-width: 0;
}

.home-qr-fields,
.home-qr-fields > div,
.home-qr-workspace,
.home-qr-options {
  min-width: 0;
}

.home-qr-fields input,
.home-qr-fields textarea,
.home-qr-shape select,
.home-qr-download {
  max-width: 100%;
}

@media (min-width: 992px) {
  .hero-lq {
    min-height: calc(100vh - 72px);
    padding: clamp(34px, 5vh, 56px) 0;
  }

  .hero-lq .row {
    min-height: 0;
  }

  .hero-content-column h1 {
    max-width: 590px;
    font-size: clamp(2.7rem, 4vw, 4.15rem);
  }

  .hero-content-column .hero-copy {
    max-width: 570px;
    font-size: 1.02rem;
  }

  .hero-generator-column {
    display: flex;
    align-items: center;
  }

  .hero-generator-column .home-qr-card {
    max-width: 680px;
    margin-left: auto;
    padding: 24px;
    box-shadow: 0 34px 80px rgba(7, 26, 61, .2), 0 10px 28px rgba(79, 70, 229, .1);
  }

  .home-qr-card__heading,
  .home-qr-tabs {
    margin-bottom: 12px;
  }

  .hero-generator-column .home-qr-workspace {
    grid-template-columns: minmax(235px, 285px) 1fr;
    gap: 20px;
    margin-top: 17px;
  }

  #homeQrPreview {
    max-width: 255px;
  }

  .home-qr-fields textarea {
    min-height: 82px;
    max-height: 96px;
  }

  .home-qr-download {
    margin-top: 13px;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .hero-lq {
    padding: 26px 0;
  }

  .hero-lq h1 {
    font-size: clamp(2.7rem, 4.35vw, 4rem);
  }

  .hero-copy {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    margin: 1.15rem 0;
  }

  .home-qr-card {
    padding: 17px 19px;
  }

  #homeQrPreview {
    max-width: 180px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .hero-lq {
    padding: 48px 0 56px;
  }

  .home-qr-card {
    max-width: 600px;
  }
}

@media (max-width: 991px) {
  .hero-generator-column {
    order: 1;
  }

  .hero-content-column {
    order: 2;
  }
}

@media (max-width: 767px) {
  .hero-lq {
    padding: 38px 0 46px;
  }

  .hero-lq .row {
    gap: 24px;
  }

  .hero-lq h1 {
    font-size: clamp(2.15rem, 10vw, 3rem);
    line-height: 1.04;
  }

  .hero-copy {
    font-size: .98rem;
    line-height: 1.7;
  }

  .home-qr-card {
    max-width: 560px;
    margin: 8px auto 0;
    padding: 18px;
  }

  .home-qr-workspace {
    grid-template-columns: 1fr;
  }

  .home-qr-preview-wrap {
    width: min(100%, 250px);
    margin-inline: auto;
  }

  .home-qr-options {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .home-qr-card__heading h2 {
    font-size: 1.3rem;
  }

  .home-qr-tabs {
    gap: 3px;
    padding: 4px;
  }

  .home-qr-tabs button {
    display: flex;
    min-width: 0;
    min-height: 48px;
    padding: 6px 3px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    font-size: .7rem;
    line-height: 1;
  }

  .home-qr-tabs button i {
    font-size: .78rem;
  }

  .home-qr-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .home-qr-options fieldset {
    grid-column: 1 / -1;
  }

  .home-qr-logo {
    margin-top: 20px;
  }

  .home-qr-assurance {
    justify-content: center;
    row-gap: 8px;
  }
}

@media (max-width: 380px) {
  .hero-lq {
    padding-top: 30px;
  }

  .home-qr-card {
    padding: 14px;
    border-radius: 20px;
  }

  .home-qr-card::before {
    border-radius: 20px;
  }

  .home-qr-live {
    font-size: .64rem;
  }

  .home-qr-free {
    padding: 5px 8px;
  }

  .home-qr-tabs button {
    font-size: .64rem;
  }

  .home-qr-options {
    grid-template-columns: 1fr;
  }

  .home-qr-options fieldset,
  .home-qr-logo {
    grid-column: 1;
  }

  .home-qr-logo {
    margin-top: 0;
  }

  .home-qr-assurance span,
  .home-qr-assurance a {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero-lq {
    min-height: auto;
    padding: 24px 0 34px;
  }
}
