/*
=========================================================
PAYMENTPROCESSOR.COM
HOMEPAGE STYLES
=========================================================
*/


/* =====================================================
   HERO
   ===================================================== */

/* =====================================================
   GLOBAL HORIZONTAL OVERFLOW FIX
   Prevents globe/image from creating bottom scrollbar
   ===================================================== */

html,
body {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 100%;
}


/* =====================================================
   HERO OVERFLOW CONTROL
   Keeps globe inside viewport
   ===================================================== */

.pp-home-hero {
    overflow: hidden !important;
    max-width: 100%;
}


/* =====================================================
   GLOBE IMAGE CONTROL
   Prevents transparent PNG canvas overflow
   ===================================================== */

.pp-home-hero-image {
    max-width: 100%;
    pointer-events: none;
}

.pp-home-hero {
  position: relative;
  min-height: 510px;
  padding: 0 0 18px;
  overflow: hidden;
  isolation: isolate;
}


/*
 * Disable old pseudo-element globe.
 */
.pp-home-hero::before {
  display: none !important;
}


/*
 * Keep content spacing while allowing the globe
 * to position relative to the full hero.
 */
.pp-home-hero-inner {
  position: static;
  min-height: 430px;
  padding-top: 55px;
}


/* =====================================================
   REAL GLOBE IMAGE
   ===================================================== */

.pp-home-hero-image {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 70px;
  width: 735px;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}

.pp-home-hero-image figure,
.pp-home-hero-image .wp-block-image {
  margin: 0 !important;
  padding: 0 !important;
}


.pp-home-hero-image img {
  position: relative;

  top: -42px;

  display: block !important;

  width: 100% !important;
  height: auto !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  opacity: .78;

  filter:
    brightness(.62)
    saturate(.88)
    contrast(1.03);
}


/* =====================================================
   HERO COPY
   ===================================================== */

.pp-home-hero-copy {
  position: relative;
  z-index: 5;

  width: 46%;
  max-width: 600px;
}


.pp-home-hero-copy .pp-eyebrow {
  margin: 0 0 20px;

  color: var(--pp-gold-light);

  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;

  letter-spacing: .18em;

  text-transform: uppercase;
}


.pp-home-hero-copy h1 {
  margin: 0 0 24px;

  color: var(--pp-white);

  font-size:
    clamp(52px, 4.2vw, 68px);

  line-height: 1.01;

  letter-spacing: -.04em;

  font-weight: 700;
}


.pp-hero-text {
  max-width: 525px;

  margin: 0 0 26px;

  color: var(--pp-muted);

  font-size: 17px;
  line-height: 1.65;
}


/* =====================================================
   HERO BUTTONS
   ===================================================== */

.pp-hero-buttons {
  display: flex;
  align-items: center;

  gap: 16px;

  margin-bottom: 25px;
}


.pp-hero-buttons .pp-button-primary,
.pp-hero-buttons .pp-button-outline {
  min-height: 52px;

  padding: 0 26px;

  font-size: 15px;

  white-space: nowrap;
}


/* =====================================================
   FEATURE LINKS
   ===================================================== */

.pp-feature-links {
  position: relative;
  z-index: 6;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;

  width: 720px;
  max-width: 66vw;

  gap: 12px 30px;

  color: var(--pp-white);

  font-size: 14px;
  line-height: 1.4;
}


.pp-feature-item {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  white-space: nowrap;

  flex: 0 0 auto;
}


.pp-feature-icon {
  width: 16px;
  height: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--pp-gold-light);
}


.pp-feature-icon svg {
  width: 100%;
  height: 100%;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* =====================================================
   UNIFIED SOLUTION PANEL
   ===================================================== */

.pp-industry-section {
  position: relative;
  z-index: 10;

  margin-top: -45px;

  padding: 0 0 72px;
}


.pp-card-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 0;

  overflow: hidden;

  border:
    1px solid rgba(231, 167, 47, .21);

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(14, 16, 18, .97),
      rgba(5, 7, 9, .98)
    );

  box-shadow:
    0 20px 60px rgba(0, 0, 0, .20);
}


.pp-card-grid .pp-card {
  min-height: 205px;

  padding: 28px 29px 25px;

  display: flex;
  flex-direction: column;

  border: 0 !important;
  border-radius: 0 !important;

  background: transparent !important;

  box-shadow: none !important;

  transform: none !important;
}


.pp-card-grid
.pp-card:not(:last-child) {
  border-right:
    1px solid rgba(255, 255, 255, .09) !important;
}


.pp-card-icon {
  width: 54px;
  height: 54px;

  margin-bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--pp-gold-light);

  border:
    1px solid rgba(231, 167, 47, .72);

  border-radius: 50%;
}


.pp-card-icon svg {
  width: 25px;
  height: 25px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.pp-card-grid .pp-card h3 {
  margin: 0 0 9px;

  color: var(--pp-white);

  font-size: 17px;
  line-height: 1.25;

  letter-spacing: -.02em;
}


.pp-card-grid .pp-card p {
  margin: 0 0 18px;

  color: var(--pp-muted);

  font-size: 13px;
  line-height: 1.55;
}


.pp-card-grid .pp-card a {
  margin-top: auto;

  color: var(--pp-gold-light);

  font-size: 13px;
  font-weight: 600;
}


/* =====================================================
   HOW IT WORKS
   ===================================================== */

.pp-how-it-works {
  position: relative;

  padding: 62px 0 70px;

  text-align: center;
}


.pp-how-it-works > .pp-container {
  position: relative;
}


.pp-how-it-works
> .pp-container
> .pp-eyebrow {
  margin: 0 0 12px;

  color: var(--pp-gold-light);

  text-align: center;

  letter-spacing: .18em;
}


.pp-how-it-works h2 {
  margin: 0 0 50px;

  color: var(--pp-white);

  font-size:
    clamp(38px, 4vw, 54px);

  line-height: 1.05;
}


.pp-steps {
  position: relative;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 50px;
}


.pp-steps::before {
  content: "";

  position: absolute;

  top: 25px;

  left: 16.666%;
  right: 16.666%;

  height: 1px;

  z-index: 0;

  background:
    linear-gradient(
      90deg,
      rgba(231, 167, 47, .15),
      rgba(231, 167, 47, .68),
      rgba(231, 167, 47, .15)
    );
}


.pp-steps > div {
  position: relative;
  z-index: 2;

  padding: 0 20px;
}


.pp-steps h3 {
  position: relative;
  z-index: 3;

  width: 52px;
  height: 52px;

  margin: 0 auto 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--pp-gold-light);

  background: var(--pp-black);

  border:
    1px solid rgba(231, 167, 47, .78);

  border-radius: 50%;

  box-shadow:
    0 0 0 12px var(--pp-black);

  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}


.pp-steps h4 {
  margin: 0 0 12px;

  color: var(--pp-white);

  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}


.pp-steps p {
  max-width: 340px;

  margin: 0 auto;

  color: var(--pp-muted);

  font-size: 14px;
  line-height: 1.65;
}


/* =====================================================
   COMPARISON PREVIEW
   ===================================================== */

.pp-compare-preview {
  padding: 62px 0 82px;
}


.pp-compare-heading {
  margin-bottom: 30px;

  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 40px;
}


.pp-compare-heading > div {
  max-width: 780px;
}


.pp-compare-heading .pp-eyebrow {
  margin: 0 0 12px;

  color: var(--pp-gold-light);
}


.pp-compare-heading h2 {
  margin: 0 0 14px;

  color: var(--pp-white);

  font-size:
    clamp(34px, 3.4vw, 48px);

  line-height: 1.08;
}


.pp-compare-heading p {
  max-width: 700px;

  margin: 0;

  color: var(--pp-muted);

  font-size: 15px;
  line-height: 1.65;
}


.pp-compare-heading
> .pp-button-outline {
  flex: 0 0 auto;
}


/* =====================================================
   COMPARISON TABLE
   ===================================================== */

.pp-compare-table-wrap {
  overflow-x: auto;

  border:
    1px solid rgba(231, 167, 47, .22);

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(14, 16, 18, .97),
      rgba(5, 7, 9, .98)
    );

  box-shadow:
    0 20px 60px rgba(0, 0, 0, .18);
}


.pp-compare-table {
  width: 100%;

  min-width: 760px;

  border-collapse: collapse;

  color: var(--pp-white);
}


.pp-compare-table th,
.pp-compare-table td {
  padding: 20px 24px;

  border-bottom:
    1px solid rgba(255, 255, 255, .07);

  text-align: center;

  vertical-align: middle;
}


.pp-compare-table thead th {
  color: var(--pp-white);

  background:
    rgba(231, 167, 47, .07);

  font-size: 15px;

  font-weight: 700;
}


.pp-compare-table
thead th:first-child,
.pp-compare-table
tbody th {
  text-align: left;
}


.pp-compare-table tbody th {
  width: 28%;

  color: #d8dce1;

  font-size: 14px;

  font-weight: 600;
}


.pp-compare-table tbody td {
  color: var(--pp-muted);

  font-size: 14px;
}


.pp-compare-table
tbody tr:last-child th,
.pp-compare-table
tbody tr:last-child td {
  border-bottom: 0;
}


.pp-check {
  color: var(--pp-gold-light);

  font-size: 18px;

  font-weight: 700;
}


.pp-compare-note {
  margin: 13px 4px 0;

  color: #777f88;

  font-size: 12px;

  line-height: 1.5;
}


/* =====================================================
   TRUST PANEL
   ===================================================== */

.pp-trust-section {
  padding: 22px 0 72px;
}


.pp-trust-section .pp-container {
  position: relative;

  max-width: 1420px;

  min-height: 150px;

  padding:
    30px 40px 30px 118px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: left;

  border:
    1px solid rgba(231, 167, 47, .22);

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(14, 16, 18, .96),
      rgba(5, 7, 9, .97)
    );
}


.pp-trust-section
.pp-container::before {
  content: "✓";

  position: absolute;

  left: 38px;
  top: 50%;

  width: 58px;
  height: 64px;

  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--pp-gold-light);

  border:
    2px solid rgba(231, 167, 47, .85);

  border-radius:
    28px 28px 34px 34px;

  font-size: 27px;
  font-weight: 700;
}


.pp-trust-section h2 {
  margin: 0 0 10px;

  color: var(--pp-gold-light);

  font-size:
    clamp(22px, 2.1vw, 31px);

  line-height: 1.15;
}


.pp-trust-section p {
  max-width: 760px;

  margin: 0;

  color: var(--pp-muted);

  font-size: 15px;
  line-height: 1.65;
}


/* =====================================================
   FINAL CTA
   ===================================================== */

.pp-final-cta {
  position: relative;

  padding: 12px 0 82px;
}


.pp-final-cta .pp-container {
  position: relative;

  overflow: hidden;

  padding: 62px 48px;

  text-align: center;

  border:
    1px solid rgba(231, 167, 47, .24);

  border-radius: 20px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(231, 167, 47, .08),
      transparent 44%
    ),
    linear-gradient(
      135deg,
      rgba(14, 16, 18, .97),
      rgba(5, 7, 9, .98)
    );
}


.pp-final-cta .pp-eyebrow {
  margin: 0 0 14px;

  color: var(--pp-gold-light);

  text-align: center;

  letter-spacing: .18em;
}


.pp-final-cta h2 {
  max-width: 850px;

  margin: 0 auto 18px;

  color: var(--pp-white);

  font-size:
    clamp(34px, 3.5vw, 50px);

  line-height: 1.08;
}


.pp-final-cta
> .pp-container
> p:not(.pp-eyebrow) {
  max-width: 720px;

  margin: 0 auto 28px;

  color: var(--pp-muted);

  font-size: 16px;

  line-height: 1.65;
}


.pp-final-cta-actions {
  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 12px;
}


.pp-final-cta-actions
.pp-button-primary {
  min-width: 205px;

  min-height: 54px;

  padding: 0 28px;
}


.pp-final-cta-actions
> span {
  color: #7f8790;

  font-size: 12px;
}


/* =====================================================
   SMALL DESKTOP
   ===================================================== */


@media (max-width: 1100px) {

  .pp-home-hero {
    min-height: 690px;
  }


  .pp-home-hero-inner {
    min-height: 590px;
    padding-top: 50px;
  }


  .pp-home-hero-copy {
    width: 58%;
  }


  .pp-home-hero-image {
    top: 0;
    right: 50px;
    width: 665px;
  }


  .pp-home-hero-image img {
    top: -35px;

    opacity: .78;

    filter:
      brightness(.63)
      saturate(.90)
      contrast(1.03);
  }


  .pp-feature-links {
    width: auto;
    max-width: 100%;

    flex-wrap: wrap;

    gap: 12px 20px;
  }


  .pp-industry-section {
    margin-top: -35px;
  }


  .pp-card-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .pp-card-grid
  .pp-card:nth-child(2) {
    border-right: 0 !important;
  }


  .pp-card-grid
  .pp-card:nth-child(-n+2) {
    border-bottom:
      1px solid rgba(255, 255, 255, .09) !important;
  }

}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 900px) {

  .pp-home-hero {
    min-height: 875px;
  }


  .pp-home-hero-inner {
    min-height: 800px;
    padding-top: 50px;
  }


  .pp-home-hero-copy {
    width: 100%;
    max-width: 700px;
  }


  .pp-home-hero-copy h1 {
    font-size:
      clamp(48px, 8vw, 62px);
  }


  .pp-home-hero-image {
    top: 350px;
    right: -20px;
    width: 590px;
  }


  .pp-home-hero-image img {
    top: -25px;

    opacity: .80;

    filter:
      brightness(.67)
      saturate(.90)
      contrast(1.03);
  }


  .pp-industry-section {
    margin-top: 0;
  }


  .pp-card-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  .pp-steps {
    grid-template-columns: 1fr;
    gap: 55px;
  }


  .pp-steps::before {
    display: none;
  }


  .pp-steps h3 {
    box-shadow: none;
  }


  .pp-compare-heading {
    align-items: flex-start;
    flex-direction: column;
  }


  .pp-trust-section
  .pp-container {
    padding:
      30px 32px 30px 105px;
  }


  .pp-final-cta
  .pp-container {
    padding: 55px 36px;
  }

}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

  .pp-home-hero {
    min-height: 700px;
  }


  .pp-home-hero-inner {
    min-height: 640px;
    padding-top: 40px;
  }


  .pp-home-hero-copy h1 {
    font-size:
      clamp(40px, 11vw, 52px);

    line-height: 1.02;
  }


  .pp-hero-text {
    font-size: 16px;
  }


  .pp-hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }


  .pp-hero-buttons
  .pp-button-primary,
  .pp-hero-buttons
  .pp-button-outline {
    width: 100%;
  }


  .pp-feature-links {
    width: auto;
    max-width: 100%;

    flex-wrap: wrap;

    gap: 12px 17px;

    font-size: 13px;
  }


  .pp-home-hero-image {
    top: 415px;
    right: -25px;
    width: 455px;
  }


  .pp-home-hero-image img {
    top: -15px;

    opacity: .82;

    filter:
      brightness(.70)
      saturate(.92)
      contrast(1.03);
  }


  .pp-card-grid {
    grid-template-columns: 1fr;
  }


  .pp-card-grid
  .pp-card {
    border-right: 0 !important;

    border-bottom:
      1px solid rgba(255, 255, 255, .09) !important;
  }


  .pp-card-grid
  .pp-card:last-child {
    border-bottom: 0 !important;
  }


  .pp-industry-section {
    margin-top: 0;
    padding-bottom: 65px;
  }


  .pp-how-it-works {
    padding-top: 60px;
    padding-bottom: 55px;
  }


  .pp-compare-preview {
    padding: 48px 0 62px;
  }


  .pp-trust-section {
    padding: 15px 0 55px;
  }


  .pp-trust-section
  .pp-container {
    min-height: 0;

    padding: 90px 24px 30px;

    text-align: center;
  }


  .pp-trust-section
  .pp-container::before {
    top: 24px;
    left: 50%;

    width: 48px;
    height: 54px;

    transform:
      translateX(-50%);
  }


  .pp-final-cta {
    padding: 5px 0 65px;
  }


  .pp-final-cta
  .pp-container {
    padding: 48px 22px;
  }


  .pp-final-cta h2 {
    font-size: 34px;
  }


  .pp-final-cta-actions
  .pp-button-primary {
    width: 100%;
    min-width: 0;
  }

}

/* =====================================================
   LAPTOP DESKTOP STABILITY
   Keeps globe composition consistent
   ===================================================== */

@media (min-width:1200px) and (max-width:1450px) {

    .pp-home-hero-image {
        width: 700px;
        right: 35px;
    }

}

/* =====================================================
   TABLET LAYOUT
   768px - 1199px
   ===================================================== */

@media (min-width:768px) and (max-width:1199px) {

    .pp-home-hero {
        min-height: 820px;
    }

    .pp-home-hero-copy {
        width:100%;
        max-width:600px;
        position:relative;
        z-index:5;
    }

    .pp-home-hero-image {
        width:590px;
        right:-65px;
        top:60px;
        opacity:.82;
        z-index:1;
    }

}

/* =====================================================
   TABLET PORTRAIT
   768px - 900px
   ===================================================== */

@media (min-width:768px) and (max-width:900px) {

    .pp-home-hero {
        min-height: 1050px;
    }


    .pp-home-hero-copy {
        max-width: 650px;
        width: 100%;
        z-index: 5;
    }


    .pp-home-hero-image {
        width: 650px;
        right: 50%;
        transform: translateX(50%);
        top: 430px;
        opacity: .65;
        z-index: 1;
    }


}

/* =====================================================
   MOBILE
   max-width: 767px
   ===================================================== */

@media (max-width:767px) {

    .pp-home-hero {
        min-height:900px;
    }


    .pp-home-hero-copy {
        width:100%;
        max-width:100%;
        position:relative;
        z-index:5;
    }


    .pp-home-hero-image {
        width:360px;
        right:50%;
        transform:translateX(50%);
        top:500px;
        opacity:.6;
        z-index:1;
    }


    .pp-home-hero .pp-button-primary,
    .pp-home-hero .pp-button-outline {
        width:100%;
        min-height:48px;
    }


}

/* =====================================================
   MOBILE INDUSTRY CARDS
   max-width: 767px
   ===================================================== */

@media (max-width:767px) {

    .pp-industry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width:100%;
    }


    .pp-industry-card {
        padding:32px 24px;
        min-height:auto;
    }


    .pp-industry-card .pp-icon {
        width:56px;
        height:56px;
        margin-bottom:22px;
    }


    .pp-industry-card h3 {
        font-size:22px;
        line-height:1.25;
    }


    .pp-industry-card p {
        font-size:16px;
        line-height:1.6;
    }


}

/* =====================================================
   SMALL MOBILE PHONES
   max-width: 380px
   ===================================================== */

@media (max-width:380px) {

    .pp-home-hero {
        min-height:900px;
    }


    .pp-home-hero-image {
        width:320px;
        right:50%;
        transform:translateX(50%);
        top:560px;
        opacity:.6;
    }


    .pp-home-hero-copy h1 {
        font-size:42px;
        line-height:1.05;
    }


    .pp-home-hero-copy p {
        font-size:16px;
    }

}

/* =====================================================
   DESKTOP GLOBE ANCHOR
   Locks globe behind High-Risk + ACH cards
   ===================================================== */

@media (min-width: 1200px) {

    .pp-home-hero-image {
        /*
         * Anchor from the CENTER of the page,
         * not from the right edge.
         *
         * This keeps the globe centered over
         * cards 3 + 4 on different desktop widths.
         */
        left: calc(50% + clamp(210px, 13vw, 250px)) !important;
        right: auto !important;

        /*
         * Allow slight scaling on smaller desktops,
         * but NEVER grow beyond 735px.
         */
        width: clamp(675px, 40vw, 735px) !important;

        /*
         * Do NOT change vertical position.
         */
        z-index: 1;
    }

    .pp-industry-section {
        position: relative;
        z-index: 10;
    }
}

/* =====================================================
   DESKTOP HERO STAGE
   Lock globe behind High-Risk + ACH cards
   Desktop/laptop only
   ===================================================== */

@media (min-width: 1200px) {

    /*
     * Shared positioning area for hero + 4 cards.
     * This is now the globe's reference frame.
     */
    .pp-hero-stage {
        position: relative;
        isolation: isolate;

        width: min(
            calc(100% - 48px),
            var(--pp-container)
        );

        max-width: var(--pp-container);

        margin-left: auto;
        margin-right: auto;

        overflow: visible;
    }


    /*
     * Hero and card sections already contain .pp-container.
     * Since the STAGE is now the container, don't constrain
     * them a second time.
     */
    .pp-hero-stage .pp-container {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }


    /*
     * The stage — not the hero itself — needs to be the
     * globe's positioning parent.
     */
    .pp-hero-stage .pp-home-hero {
        position: static !important;

        width: 100% !important;
        max-width: none !important;

        overflow: visible !important;
        isolation: auto !important;
    }


    .pp-hero-stage .pp-home-hero-inner {
        position: static !important;
    }


    /*
     * ===================================================
     * GLOBE LOCK
     *
     * 75% = center of cards 3 + 4.
     *
     * Globe may shrink slightly on smaller desktops,
     * but NEVER grows beyond 735px.
     * ===================================================
     */
    .pp-hero-stage .pp-home-hero-image {
        position: absolute !important;

        top: 0 !important;
        bottom: auto !important;

        left: 75% !important;
        right: auto !important;

        transform: translateX(-50%) !important;

        width: clamp(675px, 40vw, 735px) !important;
        max-width: 735px !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 1;

        pointer-events: none;
    }


    /*
     * Keep text above the globe.
     */
    .pp-hero-stage .pp-home-hero-copy {
        position: relative;
        z-index: 5;
    }


    /*
     * Keep the four cards above the globe.
     */
    .pp-hero-stage .pp-industry-section {
        position: relative;

        width: 100%;

        z-index: 10;
    }

}