/* Protiv shared stylesheet — design system for all new pages.
   Home and Pricing keep their inline styles for now; refactor later. */

:root {
  --orange: #FF7B00;
  --orange-soft: #FFF1E0;
  --orange-strong: #E66E00;
  --green: #02B659;
  --green-soft: #E1F6EB;
  --blue: #1E2536;
  --blue-soft: #F5F6F9;
  --blue-mid: #6A7187;
  --blue-line: #E4E7EE;
  --rust: #BB3E25;
  --caramel: #BD8457;
  --white: #FFFFFF;
  --max: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--blue);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--blue-line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--blue);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--orange); }
.nav-links a.active { color: var(--orange); font-weight: 600; }
.nav-ctas { display: flex; gap: 12px; align-items: center; }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-strong); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); font-weight: 500; }
.btn-ghost:hover { color: var(--orange); }
.btn-secondary { background: var(--blue-soft); color: var(--blue); font-weight: 500; }
.btn-secondary:hover { background: var(--blue-line); }
.btn-text { background: transparent; color: var(--blue); padding: 12px 0; font-weight: 600; }
.btn-text:hover { color: var(--orange); }
.btn-large { padding: 16px 28px; font-size: 16px; }

/* TYPOGRAPHY HELPERS */
.section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--blue);
  margin-bottom: 20px;
  max-width: 820px;
}
.section-sub {
  font-size: 18px;
  color: var(--blue-mid);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 56px;
}

/* SECTION DEFAULTS */
section { padding: 100px 0; }

/* IMAGE PLACEHOLDER (for missing brand assets) */
.image-placeholder {
  background: var(--blue-soft);
  border: 2px dashed var(--blue-line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  width: 100%;
}
.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
.image-placeholder.aspect-43 { aspect-ratio: 4 / 3; }
.image-placeholder.aspect-32 { aspect-ratio: 3 / 2; }
.image-placeholder.aspect-1 { aspect-ratio: 1 / 1; }
.image-placeholder::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-mid);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
  z-index: 0;
  pointer-events: none;
}
.image-placeholder img + ::before,
.image-placeholder img:not([src=""]):not([alt=""]) ~ ::before { display: none; }
.image-placeholder img[src] { position: relative; z-index: 1; }

/* INLINE BRAND CALLOUT (for "we call this ProPay") */
.brand-callout {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--orange-soft);
  color: var(--orange-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.brand-callout-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* TWO-COL ALTERNATING SECTION */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 96px;
}
.split-row:last-child { margin-bottom: 0; }
.split-row.reverse .split-text { order: 2; }
.split-row.reverse .split-image { order: 1; }
.split-text .step-num,
.split-text .feature-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.split-text h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 18px;
}
.split-text p {
  font-size: 16px;
  color: var(--blue-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}
.split-text ul {
  list-style: none;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.split-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--blue);
}
.split-text ul li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: var(--green-soft);
  border-radius: 50%;
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2302B659' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* FAQ-style box for "how do we handle..." */
.objection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.objection-card {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 14px;
  padding: 28px;
}
.objection-card .question {
  font-size: 17px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.objection-card .answer {
  font-size: 15px;
  color: var(--blue-mid);
  line-height: 1.55;
}

/* SIMPLE PROMISE BAR */
.promise-bar {
  background: var(--blue);
  color: var(--white);
  padding: 40px;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.promise-bar h3 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.promise-bar p { font-size: 15px; color: rgba(255,255,255,0.75); max-width: 540px; }
.promise-bar .accent { color: var(--orange); }

/* IMPACT / ROI BAND */
.impact-band {
  background: var(--blue-soft);
  border-top: 1px solid var(--blue-line);
  border-bottom: 1px solid var(--blue-line);
  padding: 80px 0;
}
.impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.impact-stat {
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}
.impact-stat-num {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.impact-stat:nth-child(2) .impact-stat-num { color: var(--green); }
.impact-stat:nth-child(3) .impact-stat-num { color: var(--blue); }
.impact-stat-label { font-size: 15px; font-weight: 600; color: var(--blue); }
.impact-stat-context { font-size: 13px; color: var(--blue-mid); margin-top: 6px; }
.impact-quote {
  text-align: center;
  font-size: 19px;
  font-weight: 500;
  color: var(--blue);
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
}
.impact-quote-attr {
  text-align: center;
  font-size: 14px;
  color: var(--blue-mid);
  margin-top: 8px;
  font-style: normal;
}

/* FINAL CTA */
.final-cta {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,123,0,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(2,182,89,0.10) 0%, transparent 40%);
  pointer-events: none;
}
.final-cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.final-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.final-cta h2 .accent { color: var(--orange); }
.final-cta p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  line-height: 1.6;
}
.final-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.final-cta .btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}
.final-cta .btn-secondary:hover { background: rgba(255,255,255,0.18); }

/* FOOTER */
footer {
  padding: 64px 0 32px;
  background: var(--blue-soft);
  border-top: 1px solid var(--blue-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { font-size: 14px; color: var(--blue-mid); line-height: 1.6; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--blue-mid); transition: color 0.15s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--blue-line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--blue-mid);
  flex-wrap: wrap;
  gap: 16px;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .impact-stats { grid-template-columns: 1fr; }
  .objection-grid { grid-template-columns: 1fr; }
  .split-row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
  .split-row.reverse .split-text { order: 1; }
  .split-row.reverse .split-image { order: 2; }
  .promise-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
}

/* === MOBILE NAV (hamburger + slide-in panel, CSS-only) === */
.mobile-nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.hamburger,
.mobile-menu,
.mobile-menu-backdrop {
  display: none;
}

@media (max-width: 960px) {
  /* Hide desktop nav + CTAs */
  .nav-inner > nav,
  .nav-inner > .nav-ctas {
    display: none;
  }
  /* Show hamburger button (last child of .nav-inner) */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
    background: transparent;
    border: none;
    flex-shrink: 0;
    position: relative;
    z-index: 101; /* Above .mobile-menu (z:100) so the X stays tappable when open */
  }
  .hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
    transform-origin: center;
  }
  /* Animate hamburger → X when open */
  .mobile-nav-toggle:checked ~ .nav-inner .hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-nav-toggle:checked ~ .nav-inner .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle:checked ~ .nav-inner .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  /* Backdrop overlay */
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 20, 35, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
  }
  .mobile-nav-toggle:checked ~ .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  /* Slide-in menu panel */
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    width: 84%;
    max-width: 340px;
    height: 100vh;
    height: 100dvh;
    background: white;
    z-index: 100;
    padding: 80px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease-out;
    box-shadow: -8px 0 32px rgba(15, 20, 35, 0.12);
    overflow-y: auto;
  }
  .mobile-nav-toggle:checked ~ .mobile-menu {
    transform: translateX(0);
  }
  /* Explicit close button inside the menu (label toggles the input off) */
  .mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--blue);
    border-radius: 10px;
    background: var(--blue-soft);
    transition: background 0.15s;
    z-index: 1;
  }
  .mobile-menu-close:hover, .mobile-menu-close:active { background: var(--blue-line); }
  .mobile-menu .nav-links {
    display: flex !important;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    gap: 0;
  }
  .mobile-menu .nav-links li a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    border-bottom: 1px solid var(--blue-line);
  }
  .mobile-menu .nav-links li:last-child a {
    border-bottom: none;
  }
  .mobile-menu .nav-links li a.active {
    color: var(--orange);
  }
  .mobile-menu-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--blue-line);
  }
  .mobile-menu-ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  /* Logo a touch larger on mobile for visibility */
  .logo-img { height: 30px; }
}

/* Body scroll-lock when menu open (modern browsers w/ :has support) */
body:has(.mobile-nav-toggle:checked) {
  overflow: hidden;
}

/* === Customer logo marquee (used on home page) === */
.logo-marquee-section {
  padding: 48px 0 56px;
  background: white;
  border-top: 1px solid var(--blue-line, #E4E7EE);
  border-bottom: 1px solid var(--blue-line, #E4E7EE);
  overflow: hidden;
}
.logo-marquee-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-mid, #6A7187);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.logo-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.logo-marquee-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: logo-marquee-scroll 80s linear infinite;
}
.logo-marquee:hover .logo-marquee-track,
.logo-marquee:focus-within .logo-marquee-track {
  animation-play-state: paused;
}
/* No card framing — just the logo */
.logo-marquee-card {
  flex: 0 0 auto !important;
  min-width: 130px !important;       /* prevents narrow squarish logos from creating visual gaps */
  height: 60px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 12px !important;        /* breathing room around the logo */
  box-sizing: border-box;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}
.logo-marquee-card:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.logo-marquee-card img {
  max-height: 50px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  display: block;
  /* Subtle outline so white-on-transparent logos remain visible on white background */
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.55));
}
/* Move LEFT-TO-RIGHT (content slides rightward, new logos enter from the left) */
@keyframes logo-marquee-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
}
@media (max-width: 600px) {
  .logo-marquee-card { height: 44px !important; }
  .logo-marquee-card img { max-height: 36px !important; max-width: 130px !important; }
  .logo-marquee-track { gap: 36px; animation-duration: 55s; }
}

