/* =========================================================
   Pioneer Pay Processing — FreedomPay-inspired aesthetic
   ========================================================= */

:root {
  --ink: #1e2428;
  --ink-2: #242c31;
  --ink-3: #525f6b;
  --muted: #667481;
  --line: #e4eaed;
  --line-2: #dee4e9;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --paper-3: #f0f4f7;
  --paper-4: #ebf3f6;
  --steel: #34657f;
  --steel-2: #4a6f9a;
  --steel-3: #5e8ab4;
  --aqua: #76c7d0;
  --aqua-soft: #d8f1f3;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-pill: 4em;

  --shadow-sm: 0 1px 2px rgba(30, 36, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(30, 36, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 36, 40, 0.12);

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--steel); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--ink-3); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 14px 26px;
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--steel); color: #fff; }
.btn-accent { background: var(--aqua); color: var(--ink); }
.btn-accent:hover { background: var(--aqua-soft); color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-3); }
.btn-lg { padding: 17px 32px; font-size: 1rem; }
.btn-arrow svg { transition: transform .2s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ----------  Header / Nav  ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 32px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; width: auto; }
.nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
  border-radius: var(--radius-md);
}
.nav-list a:hover, .nav-list a.active { background: var(--paper-3); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  display: block;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; }
  .nav-actions .btn:not(.btn-primary) { display: none; }
  .nav.is-open .nav-list {
    display: flex;
    position: absolute;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter);
    gap: 4px;
  }
  .nav.is-open .nav-list a { padding: 14px 16px; }
}

/* ----------  Hero  ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 130px) 0 clamp(60px, 8vw, 110px);
  background:
    radial-gradient(1100px 540px at 88% -10%, var(--aqua-soft) 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 30%, var(--paper-4) 0%, transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.hero-title {
  margin-top: 0;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--steel) 0%, var(--aqua) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-3);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
}
.hero-meta-item { display: flex; gap: 10px; align-items: center; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.hero-meta-item svg { color: var(--steel); flex: 0 0 auto; }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 40px 12px 60px;
}

.hero-glow {
  position: absolute;
  inset: 8% -6% 8% -6%;
  background:
    radial-gradient(closest-side at 30% 35%, rgba(118,199,208,.45) 0%, transparent 70%),
    radial-gradient(closest-side at 75% 70%, rgba(94,138,180,.30) 0%, transparent 70%);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.hero-dash {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(30, 36, 40, 0.18), 0 2px 8px rgba(30, 36, 40, 0.06);
  overflow: hidden;
}

.hero-dash-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.hero-dash-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  flex: 0 0 auto;
}
.hero-dash-dot.is-mid { background: #febc2e; }
.hero-dash-dot.is-end { background: #28c840; }
.hero-dash-title {
  margin-left: 14px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}

.hero-dash-body { padding: 24px 26px 22px; }

.hero-dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.hero-dash-label {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .02em;
}
.hero-dash-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--steel);
  background: var(--aqua-soft);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.hero-dash-value {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 18px;
}

.hero-dash-chart {
  width: 100%;
  height: 90px;
  display: block;
  margin-bottom: 22px;
}

.hero-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hero-dash-stat .num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.hero-dash-stat .lbl {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 3px;
}

.hero-pill {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-pill .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(118,199,208,.22);
  flex: 0 0 auto;
}
.hero-pill-num {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}
.hero-pill-lbl {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.hero-pill-1 { top: 12px; right: -10px; }
.hero-pill-2 { bottom: 18px; left: -10px; }

@media (max-width: 1080px) {
  .hero-pill-1 { right: 4px; }
  .hero-pill-2 { left: 4px; }
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; padding: 32px 0 40px; }
  .hero-pill-1 { right: 8px; top: 0; }
  .hero-pill-2 { left: 8px; bottom: 8px; }
}
@media (max-width: 480px) {
  .hero-pill { display: none; }
}

/* ----------  Marquee (partner/industry strip)  ---------- */
.marquee {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
}
.marquee-label {
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--muted);
  margin-bottom: 22px;
}
.marquee-track {
  display: flex;
  gap: 56px;
  align-items: center;
  animation: marquee 38s linear infinite;
  width: max-content;
}
.marquee-item {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink-3);
  letter-spacing: -.01em;
  flex: 0 0 auto;
  opacity: .8;
}
.marquee-item.is-aqua { color: var(--steel); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------  Sections  ---------- */
.section {
  padding: clamp(70px, 8vw, 120px) 0;
}
.section-tight { padding: clamp(50px, 6vw, 90px) 0; }
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #c2cad0; }
.section-dark .eyebrow { color: var(--aqua); }
.section-soft { background: var(--paper-3); }
.section-pale { background: var(--paper-2); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { font-size: 1.1rem; }

/* ----------  Capability grid  ---------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.cap-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.cap-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--aqua-soft);
  color: var(--steel);
  margin-bottom: 20px;
}
.cap-card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.cap-card p { margin: 0; color: var(--ink-3); font-size: .98rem; }

.section-dark .cap-card {
  background: #2a3338;
  border-color: #344047;
}
.section-dark .cap-card:hover { border-color: var(--aqua); }
.section-dark .cap-icon { background: rgba(118,199,208,.16); color: var(--aqua); }
.section-dark .cap-card p { color: #c2cad0; }

/* ----------  Stats row  ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  padding: clamp(48px, 6vw, 72px) clamp(28px, 4vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.stat-num .unit { color: var(--steel); }
.stat-label { color: var(--ink-3); margin-top: .5rem; font-weight: 500; }

/* ----------  Split feature  ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(140deg, var(--paper-4), var(--aqua-soft));
  border: 1px solid var(--line);
  display: block;
  position: relative;
  line-height: 0;
}
.split-visual img {
  width: 100%;
  height: auto;
  display: block;
}
/* When a split-visual holds non-image content (e.g. an inline composition),
   force a square box and center its contents. */
.split-visual.frame {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8%;
  line-height: 1.4;
}
.split-list { list-style: none; padding: 0; margin: 1.2rem 0 1.8rem; }
.split-list li {
  padding-left: 32px;
  position: relative;
  margin-bottom: .7rem;
  color: var(--ink-2);
  font-weight: 500;
}
.split-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--aqua-soft);
  box-shadow: inset 0 0 0 2px var(--aqua);
}

/* ----------  Equipment cards ---------- */
.eq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.eq-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.eq-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--steel-3); }
.eq-tag {
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--paper-4);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.eq-card h3 { font-size: 1.4rem; }
.eq-card ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.eq-card li {
  padding-left: 24px;
  position: relative;
  margin-bottom: .4rem;
  font-size: .95rem;
  color: var(--ink-3);
}
.eq-card li::before {
  content: "";
  position: absolute;
  left: 4px; top: .55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--aqua);
}
.eq-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eq-link svg { transition: transform .2s ease; }
.eq-link:hover svg { transform: translateX(3px); }

/* ----------  Industry pills  ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}
.industry-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 16px 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.industry-pill:hover { border-color: var(--steel); color: var(--steel); background: var(--paper-4); }
.industry-pill svg { color: var(--steel); }

/* ----------  CTA banner  ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, var(--steel) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(118,199,208,.45) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: .8rem; position: relative; }
.cta-banner p { color: #d6e1e7; position: relative; }
.cta-banner-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
@media (max-width: 880px) {
  .cta-banner { grid-template-columns: 1fr; }
  .cta-banner-actions { justify-content: flex-start; }
}

/* ----------  Contact form  ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
  font-size: 1rem;
}
.contact-list .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--paper-4);
  color: var(--steel);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.contact-list strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.contact-list a { color: var(--ink-2); font-weight: 600; }
.contact-list a:hover { color: var(--steel); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 4px rgba(94,138,180,.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

/* ----------  Footer  ---------- */
.site-footer {
  background: var(--ink);
  color: #c2cad0;
  padding: 70px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 38px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.footer-brand p { color: #97a2aa; max-width: 36ch; }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #c2cad0; font-weight: 500; }
.footer-col a:hover { color: #fff; }
.footer-bar {
  border-top: 1px solid #2a3338;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #97a2aa;
  font-size: .9rem;
}
.footer-bar a { color: #97a2aa; }
.footer-bar a:hover { color: #fff; }

/* ----------  Page hero (interior pages)  ---------- */
.page-hero {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(800px 400px at 90% 0%, var(--aqua-soft) 0%, transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 18ch; }
.page-hero p { max-width: 60ch; font-size: 1.1rem; }

/* ----------  Utilities  ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex-center { display: flex; align-items: center; justify-content: center; }
