/* QwickPAY portal — extends services-page / magtek card patterns */
.qp-portal .section-bg-soft {
  background: #f8fafc;
}

.qp-portal .qp-mini-footer {
  border-top: 1px solid #e2e8f0;
  padding: 1.5rem 0 2rem;
  margin-top: 2rem;
  font-size: 13px;
  color: #64748b;
}

.qp-portal .qp-mini-footer a {
  color: #334155;
  margin-right: 1rem;
}

.qp-portal .qp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.qp-portal .qp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.qp-portal .qp-feature-tile {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  height: 100%;
}

.qp-portal .qp-feature-tile h3 {
  font-size: 1.1rem;
  margin-top: 0;
  color: #0f172a;
}

.qp-portal .qp-feature-tile p {
  color: #475569;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

.qp-portal .qp-feature-tile .fas {
  color: #d21242;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.qp-portal .qp-reseller-banner {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  margin-top: 2rem;
}

.qp-portal .qp-reseller-banner h2 {
  color: #fff;
  margin-top: 0;
  font-size: 1.35rem;
}

.qp-portal .qp-reseller-banner p {
  opacity: 0.95;
  margin-bottom: 1rem;
}

/* Activate merchant wizard */
.qp-activate-page .qp-wizard {
  max-width: 760px;
  margin: 0 auto;
}

.qp-activate-page .qp-step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.75rem;
  gap: 0.5rem;
}

.qp-activate-page .qp-step {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: 12px;
  color: #64748b;
}

.qp-activate-page .qp-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.qp-activate-page .qp-step.is-active .qp-step-num {
  background: #d21242;
  color: #fff;
}

.qp-activate-page .qp-step.is-done .qp-step-num {
  background: #15803d;
  color: #fff;
}

.qp-activate-page .qp-step-panel {
  display: none;
  animation: qpFade 0.25s ease;
}

.qp-activate-page .qp-step-panel.is-visible {
  display: block;
}

@keyframes qpFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qp-activate-page .qp-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.qp-activate-page .qp-form-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
  color: #0f172a;
}

.qp-activate-page .qp-field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  margin-bottom: 0.25rem;
}

.qp-activate-page .qp-field input,
.qp-activate-page .qp-field select,
.qp-activate-page .qp-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
}

.qp-activate-page .qp-field textarea {
  min-height: 72px;
  resize: vertical;
}

.qp-activate-page .qp-field .field-validation-error {
  color: #b91c1c;
  font-size: 12px;
}

.qp-activate-page .qp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .qp-activate-page .qp-row {
    grid-template-columns: 1fr;
  }
}

.qp-activate-page .qp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.qp-activate-page .qp-review-block {
  background: #f8fafc;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.qp-activate-page .qp-review-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #0f172a;
}

.qp-activate-page .qp-review-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 0.35rem 1rem;
  font-size: 14px;
}

.qp-activate-page .qp-review-dl dt {
  color: #64748b;
  font-weight: 600;
}

.qp-activate-page .qp-review-dl dd {
  margin: 0;
  color: #1e293b;
}

.qp-activate-page .qp-alert-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.qp-activate-page .qp-intro {
  font-size: 15px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.qp-activate-page .form-recaptcha-section {
  margin-top: 1rem;
}

.qp-sell-page .qp-lead,
.qp-support-page .qp-lead {
  font-size: 16px;
  color: #475569;
  max-width: 720px;
  line-height: 1.6;
}

/* Merchant boarding — processor choice & conditional sections */
.qp-activate-page .qp-step-lead {
  font-size: 15px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.qp-activate-page .qp-field--processor-choice {
  margin-bottom: 0.5rem;
}

.qp-activate-page .qp-select-processor {
  font-size: 15px;
  padding: 0.65rem 0.75rem;
  border-color: #94a3b8;
}

.qp-activate-page .qp-after-processor.is-locked {
  display: none;
}

.qp-activate-page .qp-after-processor.is-unlocked {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.qp-activate-page .qp-field-hint {
  display: block;
  font-size: 12px;
  margin-top: 0.25rem;
}

.qp-activate-page .qp-field--radios {
  margin-bottom: 0.25rem;
}

.qp-activate-page .qp-label-block {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  margin-bottom: 0.25rem;
}

.qp-activate-page .qp-help--tap {
  margin: 0 0 0.75rem;
  font-size: 13px;
  color: #64748b;
}

.qp-activate-page .qp-radio-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.qp-activate-page .qp-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
}

.qp-activate-page .qp-radio input {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.qp-activate-page .qp-processor-section {
  margin-top: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.qp-activate-page .qp-processor-section.is-hidden {
  display: none !important;
}

.qp-activate-page .qp-processor-section-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.qp-activate-page .qp-processor-section-body .qp-field {
  margin-bottom: 1rem;
}

.qp-activate-page .qp-processor-section-body .qp-field:last-child {
  margin-bottom: 0;
}

.qp-activate-page .qp-review-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.qp-activate-page .qp-review-proc-detail.is-hidden {
  display: none !important;
}

/* ——— Tap to Pay on iPhone + QwickPAY (QwickPAY service page) ———
   Left: headline + lead + logo pill are vertically centered vs. the product image;
   "Terms apply." is anchored to the bottom of the text column (reference layout). */
.qp-portal .qp-tap-section {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  background: #fff;
}

/* Match services-page .section-header (900px) — a wider block here made the intro feel full-bleed vs. other section subheaders */
.qp-portal .qp-tap-section .section-header {
  margin-bottom: 3.25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 2rem;
}

/* Section intro: override services-page + media query h2/h3/p rules (use !important). */
.qp-portal .qp-tap-section .section-header .section-title {
  font-size: clamp(2.9rem, 2.2vw + 1.75rem, 4.5rem) !important;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  padding-bottom: 2.25rem;
}

.qp-portal .qp-tap-section .section-header .section-subtitle {
  font-size: clamp(1.45rem, 0.75vw + 1.1rem, 1.95rem) !important;
  line-height: 1.65;
  /* Same as .section-subtitle in services-page.css (800px) */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary, #4a5568);
}

/* Container for cqi: --qp-tap-head = display size for both lines; title 700, lead 600, same size. */
.qp-portal .qp-tap-feature {
  container-type: inline-size;
  container-name: qp-tap;
  --qp-tap-head: clamp(4.65rem, 3.1vw + 1.8rem, 6.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 4.5vw, 4.5rem);
  row-gap: 0;
  align-items: stretch;
  max-width: min(1320px, 92vw);
  margin: 0 auto;
  /* system-ui + Segoe UI first: without them, Windows/Edge often falls through to Arial,
     which looks unusually narrow on large display type next to Mac SF Pro. */
  font-family:
    system-ui,
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}

@supports (width: 1cqi) {
  .qp-portal .qp-tap-feature {
    --qp-tap-head: clamp(4.35rem, 4.1cqi + 0.65rem, 7.5rem);
  }
}

/* Stretch to row height (set by image) so the copy column can pin terms to the bottom. */
.qp-portal .qp-tap-feature-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  text-align: left;
}

/* Title + subhead + pill: center vs image; type rules are ONLY in the media queries (no global !important) */
.qp-portal .qp-tap-feature-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 0.75rem 0 1.25rem;
}

/* Pill: ref — light keyline, generous padding */
.qp-portal .qp-tap-qwick-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.85rem 0.5rem 1.65rem;
  border: 1px solid #b8b8b8;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
  line-height: 0;
}

.qp-portal .qp-tap-qwick-pill-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 3.25rem;
  max-width: min(100%, 260px);
  object-fit: contain;
  object-position: left center;
}

@supports (width: 1cqi) {
  .qp-portal .qp-tap-qwick-pill-img {
    max-height: clamp(2.5rem, 2.4cqi, 3.4rem);
    max-width: min(100%, 24cqi);
  }
}

/* Legal: small vs display, still scales with band when cqi is on */
.qp-portal .qp-tap-terms {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-top: 0.5rem;
  font-size: clamp(0.88rem, 0.2vw + 0.68rem, 1.05rem);
  line-height: 1.45;
  color: #999;
  font-weight: 400;
  letter-spacing: 0.01em;
  align-self: flex-start;
}

@supports (width: 1cqi) {
  .qp-portal .qp-tap-terms {
    font-size: clamp(0.85rem, 0.45cqi + 0.4rem, 1.1rem);
  }
}

.qp-portal .qp-tap-feature-media {
  position: relative;
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
}

.qp-portal .qp-tap-feature-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Desktop: same display size/leading/tracking; black bold, grey semibold, different color. */
@media (min-width: 992px) {
  .qp-portal .qp-tap-feature-main {
    font-size: 100%;
  }

  .qp-portal h3.qp-tap-feature-title,
  .qp-portal p.qp-tap-feature-lead,
  .qp-portal .qp-tap-feature-title,
  .qp-portal .qp-tap-feature-lead {
    max-width: none;
    font-size: var(--qp-tap-head) !important;
    line-height: 1.04 !important;
    /* -0.035em tracks SF Pro; on Segoe UI / Arial it reads as pinched—match .section-title */
    letter-spacing: -0.02em !important;
    font-family:
      system-ui,
      "Segoe UI",
      -apple-system,
      BlinkMacSystemFont,
      Roboto,
      "Helvetica Neue",
      Arial,
      sans-serif !important;
    font-stretch: normal;
  }

  .qp-portal h3.qp-tap-feature-title,
  .qp-portal .qp-tap-feature-title {
    margin: 0 0 0.2em !important;
    color: #000 !important;
    font-weight: 700 !important;
  }

  .qp-portal p.qp-tap-feature-lead,
  .qp-portal .qp-tap-feature-lead {
    margin: 0.2em 0 1.15em 0 !important;
    max-width: 34ch;
    color: #666 !important;
    font-weight: 600 !important;
  }
}

/* Steps: continuation of Tap to Pay (same section, no second h2 / red rule — like stacked bands on product hubs) */
.qp-portal .qp-tap-steps {
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid #e8edf2;
  max-width: 100%;
}

/* Three highlight cards under "Built for how you take orders" (same shell as Tap to Pay steps, no index numbers) */
.qp-portal .qp-workflow-quickstart {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0 1rem clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid #e8edf2;
  max-width: 100%;
}

.qp-portal .qp-workflow-quickstart .qp-step.qp-step--centered {
  text-align: center;
  align-items: center;
}

.qp-portal .qp-workflow-quickstart .qp-step-text {
  text-align: center;
}

.qp-portal .qp-workflow-quickstart a.qp-step.qp-step--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.qp-portal .qp-workflow-quickstart a.qp-step.qp-step--link:focus-visible {
  outline: 2px solid #d21242;
  outline-offset: 3px;
}

@media (hover: hover) {
  .qp-portal
    .qp-workflow-quickstart
    a.qp-step.qp-step--link:hover
    .qp-step-text {
    color: #0f172a;
  }
}

/* Download tiles: placed outside .magtek-product-card so box-shadow is not clipped (overflow:hidden on card). Type scales with .magtek-card-text > p / .checkmark-list-item (magtek-cards.css). */
.qp-portal .qp-download-tiles {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding: 0 1rem clamp(1rem, 2vw, 1.5rem);
  max-width: 100%;
}

.qp-portal .qp-download-tiles__col {
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .qp-portal .qp-download-tiles__col {
    margin-bottom: 0;
  }

  .qp-portal .qp-download-tiles__row.row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .qp-portal .qp-download-tiles__row.row::before,
  .qp-portal .qp-download-tiles__row.row::after {
    content: none;
    display: none;
  }

  .qp-portal .qp-download-tiles__col {
    display: flex;
    flex-direction: column;
    float: none;
    min-height: 0;
  }
}

.qp-portal .qp-download-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 1.5rem 1.25rem 1.6rem;
  text-align: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.06),
    0 8px 28px -10px rgba(15, 23, 42, 0.14);
}

.qp-portal .qp-download-tile__label {
  margin: 0 0 0.65rem;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
  line-height: 1.35;
}

.qp-portal .qp-download-tile__link-wrap {
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.qp-portal .qp-download-tile__link {
  color: #0066cc;
  text-decoration: underline;
  font-size: 1.6rem;
  font-weight: 400;
}

.qp-portal .qp-download-tile__link:hover,
.qp-portal .qp-download-tile__link:focus {
  color: #004a99;
  text-decoration: underline;
}

.qp-portal .qp-download-tile__link:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
  border-radius: 2px;
}

.qp-portal .qp-download-tile__note {
  margin: 0.6rem 0 0;
  padding: 0;
  font-size: 1.6rem;
  font-weight: 400;
  color: #1e293b;
  line-height: 1.6;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .qp-portal .qp-download-tile__label,
  .qp-portal .qp-download-tile__link,
  .qp-portal .qp-download-tile__note {
    font-size: 1.5rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .qp-portal .qp-download-tile__label,
  .qp-portal .qp-download-tile__link,
  .qp-portal .qp-download-tile__note {
    font-size: 1.4rem;
  }
}

@media (max-width: 479px) {
  .qp-portal .qp-download-tile__label,
  .qp-portal .qp-download-tile__link,
  .qp-portal .qp-download-tile__note {
    font-size: 1.3rem;
  }
}

.qp-portal .qp-steps-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
}

/* Override Bootstrap 3 float row so three columns share one row height (tallest card) */
@media (min-width: 768px) {
  .qp-portal .qp-tap-steps .qp-steps-list.row,
  .qp-portal .qp-workflow-quickstart .qp-steps-list.row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .qp-portal .qp-tap-steps .qp-steps-list.row::before,
  .qp-portal .qp-tap-steps .qp-steps-list.row::after,
  .qp-portal .qp-workflow-quickstart .qp-steps-list.row::before,
  .qp-portal .qp-workflow-quickstart .qp-steps-list.row::after {
    content: none;
    display: none;
  }

  .qp-portal .qp-tap-steps .qp-steps-list__col,
  .qp-portal .qp-workflow-quickstart .qp-steps-list__col {
    display: flex;
    flex-direction: column;
    float: none;
    min-height: 0;
  }

  .qp-portal .qp-tap-steps .qp-step,
  .qp-portal .qp-workflow-quickstart .qp-step {
    flex: 1 1 auto;
    min-height: 100%;
  }
}

.qp-portal .qp-steps-list__col {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

@media (min-width: 768px) {
  .qp-portal .qp-steps-list__col {
    margin-bottom: 0;
  }
}

/* Card shell: flex column so body copy fills remaining space when row heights match */
.qp-portal .qp-step {
  --qp-step-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  width: 100%;
  text-align: left;
  margin: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--qp-step-radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -12px rgba(15, 23, 42, 0.12);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

@media (hover: hover) and (min-width: 992px) {
  .qp-portal .qp-step:hover {
    border-color: #cbd5e1;
    box-shadow:
      0 2px 4px rgba(15, 23, 42, 0.05),
      0 16px 40px -16px rgba(15, 23, 42, 0.18);
  }
}

.qp-portal .qp-step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0 0 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #0f172a;
  font-family:
    system-ui,
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Body copy: match .magtek-card-text > p (services product cards) */
.qp-portal .qp-step-text {
  flex: 1 1 auto;
  margin: 0;
  min-height: 0;
  max-width: none;
  width: 100%;
  font-size: 1.6rem;
  line-height: 1.6;
  color: #1e293b;
  font-weight: 400;
  text-wrap: pretty;
  letter-spacing: normal;
  font-family:
    system-ui,
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-stretch: normal;
}

/* Step text — same responsive scale as .magtek-card-text > p (magtek-cards.css) */
@media (min-width: 768px) and (max-width: 1023px) {
  .qp-portal .qp-step-text {
    font-size: 1.5rem;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .qp-portal .qp-step-text {
    font-size: 1.4rem;
  }
}

@media (max-width: 479px) {
  .qp-portal .qp-step-text {
    font-size: 1.3rem;
  }
}

/* CTA under steps: same pattern as "Visit MagTek support" (section-cta-buttons + btn-secondary), right-aligned, width matches step grid */
.qp-portal .qp-steps-cta.section-cta-buttons {
  max-width: 1150px;
  margin: 2rem auto 0;
  padding: 0.5rem 0 0;
  width: 100%;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.qp-portal .qp-steps-learn-more-icon {
  font-size: 0.88em;
  opacity: 0.92;
}

@media (max-width: 991px) {
  .qp-portal .qp-steps-cta.section-cta-buttons {
    max-width: 1100px;
  }

  .qp-portal .qp-tap-feature {
    grid-template-columns: 1fr;
    row-gap: 2.25rem;
  }

  .qp-portal .qp-tap-feature-media {
    order: -1;
  }

  .qp-portal .qp-tap-feature-image {
    max-width: 420px;
    margin: 0 auto;
  }

  .qp-portal .qp-tap-section .section-header {
    margin-bottom: 2rem;
  }

  .qp-portal .qp-tap-section .section-subtitle {
    text-align: center;
  }

  .qp-portal .qp-tap-feature-copy {
    align-items: center;
    text-align: center;
  }

  .qp-portal .qp-tap-feature-main {
    flex: 0 1 auto;
    align-items: center;
    text-align: center;
    padding: 0;
  }

  .qp-portal .qp-tap-feature-title,
  .qp-portal .qp-tap-feature-lead {
    text-align: center;
  }

  .qp-portal .qp-tap-feature-lead {
    max-width: 32ch;
  }

  .qp-portal .qp-tap-qwick-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .qp-portal .qp-tap-terms {
    text-align: center;
    align-self: center;
  }

  .qp-portal h3.qp-tap-feature-title,
  .qp-portal p.qp-tap-feature-lead,
  .qp-portal .qp-tap-feature-title,
  .qp-portal .qp-tap-feature-lead {
    font-size: clamp(2.9rem, 3.8cqi + 0.95rem, 3.8rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.02em !important;
    font-family:
      system-ui,
      "Segoe UI",
      -apple-system,
      BlinkMacSystemFont,
      Roboto,
      "Helvetica Neue",
      Arial,
      sans-serif !important;
    font-stretch: normal;
  }

  .qp-portal h3.qp-tap-feature-title,
  .qp-portal .qp-tap-feature-title {
    color: #000 !important;
    font-weight: 700 !important;
  }

  .qp-portal p.qp-tap-feature-lead,
  .qp-portal .qp-tap-feature-lead {
    color: #666 !important;
    font-weight: 600 !important;
  }

  @supports (width: 1cqi) {
    .qp-portal h3.qp-tap-feature-title,
    .qp-portal p.qp-tap-feature-lead,
    .qp-portal .qp-tap-feature-title,
    .qp-portal .qp-tap-feature-lead {
      font-size: clamp(3.05rem, 3.75cqi + 0.9rem, 4.15rem) !important;
    }
  }
}

/* Stacked one-column steps (xs): number + text in a row, narrow column like OEM mobile patterns */
@media (max-width: 767px) {
  .qp-portal .qp-steps-list {
    max-width: min(36rem, 100%);
  }

  .qp-portal .qp-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem 1.15rem;
    padding: 1.1rem 1.15rem 1.2rem 1.1rem;
  }

  .qp-portal .qp-step-index {
    margin: 0.12rem 0 0;
    width: 2.45rem;
    height: 2.45rem;
    font-size: 1.02rem;
    border-radius: 9px;
  }

  .qp-portal .qp-step-text {
    text-align: left;
    max-width: none;
    line-height: 1.55;
  }

  .qp-portal .qp-workflow-quickstart .qp-step.qp-step--centered {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .qp-portal .qp-workflow-quickstart .qp-step-text {
    text-align: center;
  }
}

@media (max-width: 575px) {
  .qp-portal .qp-tap-section {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .qp-portal h3.qp-tap-feature-title,
  .qp-portal p.qp-tap-feature-lead,
  .qp-portal .qp-tap-feature-title,
  .qp-portal .qp-tap-feature-lead {
    max-width: none;
    font-size: clamp(2.55rem, 7.5vw, 3.3rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.02em !important;
    font-family:
      system-ui,
      "Segoe UI",
      -apple-system,
      BlinkMacSystemFont,
      Roboto,
      "Helvetica Neue",
      Arial,
      sans-serif !important;
    font-stretch: normal;
  }

  .qp-portal h3.qp-tap-feature-title,
  .qp-portal .qp-tap-feature-title {
    color: #000 !important;
    font-weight: 700 !important;
  }

  .qp-portal p.qp-tap-feature-lead,
  .qp-portal .qp-tap-feature-lead {
    color: #666 !important;
    font-weight: 600 !important;
  }

  .qp-portal .qp-tap-terms {
    font-size: 0.95rem !important;
  }

  .qp-portal .qp-step {
    padding: 1rem 1rem 1.1rem 0.95rem;
  }

  .qp-portal .qp-tap-qwick-pill {
    padding: 0.4rem 1rem 0.4rem 0.95rem;
  }

  .qp-portal .qp-tap-qwick-pill-img {
    height: 32px;
  }
}
