/*
 * Shared header and footer chrome extracted from the inline widget styles.
 *
 * Every page currently duplicates the .pp-header and .pp-footer <style> blocks.
 * This file is the single cached copy so pages can drop those inline blocks.
 * The rewriter injects a link to /styles/chrome.css.
 */

/* ── Reset & Base ── */
.pp-header *, .pp-header *::before, .pp-header *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pp-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  /* Break out of any Webflow parent container */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  box-sizing: border-box;
}

/* ── Inner container, 3-col grid: logo | nav (centered) | buttons ── */
.pp-header-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 2vw;
  height: 68px;
  display: grid;
  grid-template-columns: 1.4fr auto 0.6fr;
  align-items: center;
}

/* ── Logo ── */
.pp-hdr-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  justify-self: start;
}

.pp-hdr-logo img {
  height: 39px;
  width: auto;
  display: block;
}

/* ── Desktop Nav (center column) ── */
.pp-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.pp-nav-item {
  position: relative;
}

.pp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 400;
  color: #696f7d;
  text-decoration: none;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  white-space: nowrap;
  line-height: 1;
}

.pp-nav-link:hover { color: #111827; background: #f9fafb; }

/* Chevron */
.pp-nav-chevron {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: #6a7383;
  transition: transform 0.2s ease;
}

.pp-nav-item.pp-open > .pp-nav-link .pp-nav-chevron {
  transform: rotate(180deg);
  color: #696f7d;
}

/* ── Dropdown panel ── */
.pp-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  pointer-events: none;
}

/* Arrow pointing up */
.pp-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 6px;
  background: #ffffff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.pp-nav-item.pp-open .pp-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Invisible bridge fills the gap so hover isn't lost moving into the dropdown */
.pp-dropdown::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* Right-align for "More" dropdown */
.pp-dropdown-right {
  left: auto;
  right: 0;
  transform: translateY(-6px);
}

.pp-dropdown-right::before {
  left: auto;
  right: 20px;
  transform: none;
}

.pp-nav-item.pp-open .pp-dropdown-right {
  transform: translateY(0);
}

.pp-dropdown-link {
  display: block;
  padding: 9px 13px;
  font-size: 13.5px;
  font-weight: 400;
  color: #374151;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  text-align: left;
}

.pp-dropdown-link:hover {
  color: #111827;
  background: #f3f4f6;
}

/* ── Header action buttons (right column) ── */
.pp-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

/* Register, white fill + gradient border (background-clip technique) */
.pp-btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(90deg, #a956ff, #7c5dff 50%, #3766fe) border-box;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.pp-btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(119, 93, 255, 0.2);
}

/* Sign In, animated moving gradient */
@keyframes pp-hdr-grad {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.pp-btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  background: linear-gradient(90deg, #a956ff 0%, #7c5dff 30%, #3766fe 60%, #7c5dff 85%, #a956ff 100%);
  background-size: 250% 100%;
  animation: pp-hdr-grad 4s ease infinite;
  border: 1.5px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.pp-btn-signin:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(55, 102, 254, 0.35);
}

/* ── Mobile toggle button ── */
.pp-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(90deg, #a956ff 0%, #7c5dff 50%, #3766fe 100%);
  cursor: pointer;
  border-radius: 9px;
  transition: opacity 0.2s;
  flex-shrink: 0;
  justify-self: end;
}

.pp-mobile-toggle:hover { opacity: 0.88; }

.pp-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pp-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.pp-mobile-toggle.pp-active .pp-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pp-mobile-toggle.pp-active .pp-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.pp-mobile-toggle.pp-active .pp-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ── */
.pp-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  z-index: 999;
}

.pp-mobile-menu.pp-open { display: block; }

.pp-mobile-nav {
  padding: 12px 5vw 8px;
}

.pp-mobile-nav-item {
  border-bottom: 1px solid #f3f4f6;
}

.pp-mobile-nav-item:last-child { border-bottom: none; }

.pp-mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  line-height: 1.3;
}

.pp-mobile-chevron {
  width: 16px;
  height: 16px;
  color: #6a7383;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pp-mobile-nav-item.pp-open .pp-mobile-chevron {
  transform: rotate(180deg);
  color: #696f7d;
}

.pp-mobile-submenu {
  display: none;
  padding: 0 0 12px 12px;
  flex-direction: column;
  gap: 2px;
}

.pp-mobile-nav-item.pp-open .pp-mobile-submenu {
  display: flex;
}

.pp-mobile-submenu-link {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 400;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  text-align: left;
}

.pp-mobile-submenu-link:hover {
  color: #111827;
  background: #f9fafb;
}

/* Mobile action buttons */
.pp-mobile-actions {
  padding: 16px 5vw 24px;
  display: flex;
  gap: 10px;
}

.pp-mobile-actions .pp-btn-register,
.pp-mobile-actions .pp-btn-signin {
  flex: 1;
  padding: 12px 18px;
  font-size: 15px;
}

/* Logo swap: full wordmark on desktop, emblem only on mobile */
.pp-hdr-logo-emblem { display: none !important; }

/* ── Tablet (681px – 1100px): scale nav + buttons + logo down to fit ── */
@media (max-width: 1100px) and (min-width: 681px) {
  .pp-header-inner {
    height: 60px;
    padding: 0 14px;
    grid-template-columns: auto 1fr auto;
  }
  .pp-hdr-logo-full { height: 24px !important; width: auto; }
  .pp-nav { gap: 0; justify-content: center; }
  .pp-nav-link { padding: 6px 7px; font-size: 12px; gap: 3px; }
  .pp-nav-chevron { width: 11px; height: 11px; }
  .pp-header-actions { gap: 5px; }
  .pp-btn-register,
  .pp-btn-signin { padding: 7px 13px; font-size: 12.5px; }
}

/* ── Landscape phone (681px – 820px): compress further ── */
@media (max-width: 820px) and (min-width: 681px) {
  .pp-header-inner {
    height: 54px;
    padding: 0 10px;
  }
  .pp-hdr-logo-full { height: 20px !important; }
  .pp-nav-link { padding: 5px 5px; font-size: 11px; gap: 2px; }
  .pp-nav-chevron { width: 10px; height: 10px; }
  .pp-header-actions { gap: 4px; }
  .pp-btn-register,
  .pp-btn-signin { padding: 6px 10px; font-size: 11.5px; }
}

/* ── Responsive breakpoints ── */
/* Mobile portrait: collapse to hamburger below 680px */
    /* Book a demo is the only header button; it sits beside the hamburger on phones. */
/* Same size as the other header buttons, but the hero pill shape. */
.pp-btn-bookdemo { white-space: nowrap; border-radius: 999px; }
.pp-nav-link-auth { color: #4b5563; }
.pp-mobile-auth-link { flex: 1; text-align: center; padding: 12px 18px; font-size: 15px;
  color: #4b5563; text-decoration: none; font-weight: 400; border-radius: 9px; }
.pp-mobile-auth-link:hover { background: #f3f4f6; }

@media (max-width: 680px) {
  .pp-nav { display: none; }
  /* Book a demo is hidden on phones: the bar was too crowded. */
  .pp-header-actions { display: none; }
  .pp-mobile-toggle { display: flex; }
  .pp-header-inner {
    grid-template-columns: 1fr auto;
  }
  .pp-hdr-logo-full { display: none !important; }
  .pp-hdr-logo-emblem { display: block !important; height: 32px; width: auto; }
}

/* ── Reset & Base ── */
.pp-footer *, .pp-footer *::before, .pp-footer *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pp-footer {
  background: #ffffff;
  font-family: 'Inter', 'Inter Fallback', sans-serif;
  color: #374151;
  border-top: 1px solid #e5e7eb;
}

/* ── Inner container, matches header + hero horizontal spacing ── */
.pp-ftr-inner {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 2vw;
}

/* ── Main body: 5 columns, sized to content, spaced evenly across the container.
   This pins Col 1 to the left edge and Col 5 to the right edge with equal
   gaps in between, so the visible whitespace on either side of the footer
   is symmetric (the email icon in Col 1 and the right edge of Col 5's
   longest link sit equidistant from the container edges). ── */
.pp-ftr-body {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  justify-content: space-between;
  column-gap: 28px;
  row-gap: 28px;
  padding: 64px 0 52px;
}

/* ── Logo ── */
.pp-ftr-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 24px;
}

.pp-ftr-logo img {
  height: 34px;
  width: auto;
  display: block;
}

.pp-ftr-logo img.pp-ftr-logo-mobile { display: none; }

/* ── Col 1: Get In Touch ── */
.pp-ftr-contact-head {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pp-ftr-address {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.7;
  color: #696f7d;
  margin-bottom: 16px;
}

.pp-ftr-email {
  font-size: 13.5px;
  font-weight: 400;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.pp-ftr-email:hover { color: #6b48ff; }

.pp-ftr-email svg {
  flex-shrink: 0;
  color: #6a7383;
}

/* ── Animated Demo button ── */
@keyframes pp-ftr-grad {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.pp-ftr-demo-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  border-radius:999px;
  background: linear-gradient(90deg, #a956ff 0%, #7c5dff 40%, #3766fe 70%, #a956ff 100%);
  background-size: 250% 100%;
  animation: pp-ftr-grad 4s ease-in-out infinite;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  margin-bottom: 20px;
}

.pp-ftr-demo-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ── Social links ── */
.pp-ftr-social {
  display: flex;
  gap: 10px;
}

.pp-ftr-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid #e5e7eb;
  color: #696f7d;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.pp-ftr-social a:hover {
  border-color: #c4b5fd;
  color: #6b48ff;
  background: #f5f3ff;
}

.pp-ftr-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ── Col 2: Phone numbers ── */
.pp-ftr-col-head {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.pp-ftr-phones {
  list-style: none;
}

.pp-ftr-phones li {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}

.pp-ftr-phones li:last-child { margin-bottom: 0; }

.pp-ftr-country {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6a7383;
}

/* Cols 2-4: push down to clear the logo in col 1 */
.pp-ftr-col-offset {
  padding-top: 58px;
}

/* Cols 3 & 4: left-aligned (was right-aligned, looked broken) */
.pp-ftr-col-right {
  text-align: left;
}

/* Vertical divider removed (was paired with right-align) */
.pp-ftr-col-divider {
  position: relative;
}

.pp-ftr-phones a {
  font-size: 12.5px;
  font-weight: 300;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.pp-ftr-phones a:hover { color: #6b48ff; }

/* ── 24-hour support live indicator (sits under the phone list) ── */
.pp-ftr-247 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
  font-size: 12.5px;
  font-weight: 500;
  color: #374151;
  letter-spacing: -0.01em;
}
.pp-ftr-247-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00bdc5;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0, 189, 197, 0.55);
}
.pp-ftr-247-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(0, 189, 197, 0.35);
  animation: pp-ftr-247-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.pp-ftr-247 strong {
  font-weight: 600;
  color: #111827;
}
@keyframes pp-ftr-247-pulse {
  0%   { transform: scale(0.55); opacity: 0.75; }
  80%  { transform: scale(2.2);  opacity: 0;    }
  100% { transform: scale(2.2);  opacity: 0;    }
}
@media (prefers-reduced-motion: reduce) {
  .pp-ftr-247-dot::before { animation: none; }
}

/* ── Cols 3 & 4: Link lists ── */
.pp-ftr-links {
  list-style: none;
}

.pp-ftr-links li + li {
  margin-top: 11px;
}

.pp-ftr-links a {
  font-size: 13.5px;
  font-weight: 300;
  color: #696f7d;
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.pp-ftr-links a:hover { color: #111827; }

/* ── Bottom bar ── */
.pp-ftr-bottom {
  border-top: 1px solid #e5e7eb;
  padding: 22px 0;
}

.pp-ftr-bottom .pp-ftr-inner {
  display: flex;
  align-items: center;
}

.pp-ftr-copy {
  font-size: 13px;
  font-weight: 300;
  color: #6a7383;
}

/* ── Tablet ── */
@media (max-width: 960px) {
  /* Fixed-width columns, centered as a block so left margin = right margin */
  .pp-ftr-body {
    display: grid;
    grid-template-columns: 210px 210px;
    justify-content: center;
    gap: 52px 80px;
    padding: 52px 0 52px;
  }

  /* Tablet 2-col reorder:
     Row 1: Solutions  | Integrations
     Row 2: More       | Contact Numbers
     Row 3: Brand      | (empty) */
  .pp-ftr-body > div:nth-child(1) { order: 5; } /* Brand */
  .pp-ftr-body > div:nth-child(2) { order: 4; } /* Phones */
  .pp-ftr-body > div:nth-child(3) { order: 1; } /* Solutions */
  .pp-ftr-body > div:nth-child(4) { order: 2; } /* Integrations */
  .pp-ftr-body > div:nth-child(5) { order: 3; } /* More */

  .pp-ftr-col-offset { padding-top: 0; }
  .pp-ftr-col-right { text-align: left; }
  .pp-ftr-col-divider::before { display: none; }

  /* Push Contact Numbers heading below the logo level in col 1 */
  .pp-ftr-body > div:nth-child(2) {
    padding-top: 58px;
  }

  /* Align copyright left edge with first column, one full line */
  .pp-ftr-bottom .pp-ftr-inner {
    display: grid;
    grid-template-columns: 500px;
    justify-content: center;
  }
}

/* ── Mobile ── */
@media (max-width: 580px) {
  .pp-ftr-body {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 44px 0 0;
  }

  /* Mobile reorder: Solutions → Integrations → More → Phones → Brand */
  .pp-ftr-body > div:nth-child(1) { order: 5; } /* Brand → last */
  .pp-ftr-body > div:nth-child(2) { order: 4; } /* Phones → 4th */
  .pp-ftr-body > div:nth-child(3) { order: 1; } /* Solutions → 1st */
  .pp-ftr-body > div:nth-child(4) { order: 2; } /* Integrations → 2nd */
  .pp-ftr-body > div:nth-child(5) { order: 3; } /* More → 3rd */

  /* Center all content */
  .pp-ftr-body > div { text-align: center; padding-bottom: 36px; }
  .pp-ftr-col-offset { padding-top: 0; }
  .pp-ftr-col-right { text-align: center; }
  .pp-ftr-col-divider::before { display: none; }

  /* Center flex containers */
  .pp-ftr-logo { justify-content: center; }
  .pp-ftr-social { justify-content: center; }
  .pp-ftr-phones li { justify-content: center; }
  .pp-ftr-247 {
    justify-content: center;
    text-align: center;
    border-top: none;
    position: relative;
    padding-top: 18px;
  }
  .pp-ftr-247::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: #e5e7eb;
  }

  /* Mobile square logo */
  .pp-ftr-logo img.pp-ftr-logo-desktop { display: none; }
  .pp-ftr-logo img.pp-ftr-logo-mobile { display: block; height: 182px; width: auto; }

  /* Center the email link */
  .pp-ftr-email { display: flex; justify-content: center; }

  /* Dividers: every section after Solutions (order 1) gets a top border */
  .pp-ftr-body > div:nth-child(4), /* Integrations, order:2 */
  .pp-ftr-body > div:nth-child(5), /* More, order:3 */
  .pp-ftr-body > div:nth-child(2), /* Phones, order:4 */
  .pp-ftr-body > div:nth-child(1) { /* Brand, order:5 */
    border-top: 1px solid #e5e7eb;
    padding-top: 36px;
  }

  .pp-ftr-bottom {
    padding: 20px 0;
  }

  .pp-ftr-bottom .pp-ftr-inner {
    display: flex;
    justify-content: center;
  }

  .pp-ftr-copy { white-space: nowrap; }
}
