/* Isolated from workspace, invoices and print layouts. */
.marketing .hero {
  position: relative;
}
.marketing .hero::before {
  content: '';
  position: absolute;
  inset: 8% 10%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 25% 45%, #a8c8f044, transparent 58%),
    radial-gradient(ellipse at 80% 20%, #bca4e12b, transparent 56%);
  border-radius: 50%;
  pointer-events: none;
}
.marketing .product-window {
  animation: profit-float 7s ease-in-out infinite;
}
.marketing .hero-copy {
  animation: profit-enter 0.8s ease both;
}
.marketing .bars i {
  transform-origin: bottom;
  animation: profit-bars 1.2s ease both;
}
.marketing .bars i:nth-child(2n) {
  animation-delay: 0.12s;
}
.marketing .service-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.marketing .service-card img {
  display: block;
  object-fit: cover;
  aspect-ratio: 3/2;
  width: 100%;
  transition: transform 0.6s ease;
}
.marketing .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px #263c6014;
  border-color: #a2aed4;
}
.marketing .service-card:hover img {
  transform: scale(1.035);
}
.marketing .service-card:focus-within {
  outline: 2px solid #6a58c9;
  outline-offset: 4px;
}
.marketing #home-services {
  padding-bottom: 0;
}
.marketing #home-services h3 {
  font-size: 20px;
  line-height: 1.6;
  color: #19334f;
  margin: 12px 0;
}
.marketing .reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.marketing .reveal-ready.is-visible {
  opacity: 1;
  transform: none;
}
.marketing .brand-showcase {
  background: linear-gradient(110deg, #e6edf7, #eeeaf6);
  border-block: 1px solid #d6dfed;
  padding: 42px 0 36px;
  margin-top: 30px;
  overflow: hidden;
}
.marketing .brand-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.marketing .brand-heading h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin: 8px 0;
  color: #19334f;
}
.marketing .brand-heading p {
  color: #465c76;
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
}
.marketing .motion-toggle {
  background: #f5f7fc;
  color: #354d75;
  border: 1px solid #bac8de;
  border-radius: 30px;
  padding: 11px 18px;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.marketing .motion-toggle:focus-visible {
  outline: 3px solid #7666c9;
  outline-offset: 3px;
}
.marketing .brand-viewport {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marketing .brand-track {
  display: flex;
  width: max-content;
  animation: profit-ticker 38s linear infinite;
}
.marketing .brand-set {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-inline-end: 24px;
  flex: none;
}
.marketing .demo-brand {
  width: 240px;
  padding: 12px 16px;
  background: #f0f4fb;
  border: 1px solid #d8e0ec;
  border-radius: 16px;
}
.marketing .demo-brand img {
  width: 100%;
  height: 60px;
  display: block;
}
.marketing .brand-showcase:hover .brand-track,
.marketing .brand-showcase:focus-within .brand-track,
.marketing .touch-pause .brand-track {
  animation-play-state: paused;
}
.marketing.motion-paused .brand-track,
.marketing.motion-paused .product-window,
.marketing.motion-paused .hero-copy,
.marketing.motion-paused .bars i {
  animation-play-state: paused;
}
.marketing.motion-paused .reveal-ready {
  opacity: 1;
  transform: none;
  transition: none;
}
@keyframes profit-ticker {
  to {
    transform: translateX(-50%);
  }
}
@keyframes profit-float {
  50% {
    transform: translateY(-7px);
  }
}
@keyframes profit-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes profit-bars {
  from {
    transform: scaleY(0.2);
  }
  to {
    transform: scaleY(1);
  }
}
@media (max-width: 760px) {
  .marketing .product-window {
    animation: none;
  }
  .marketing .brand-heading {
    align-items: start;
    gap: 14px;
  }
  .marketing .brand-heading p {
    font-size: 11px;
  }
  .marketing .motion-toggle {
    padding: 10px 12px;
    font-size: 11px;
  }
  .marketing .demo-brand {
    width: 190px;
    padding: 8px;
  }
  .marketing .brand-set {
    gap: 14px;
    padding-inline-end: 14px;
  }
  .marketing .brand-track {
    animation-duration: 48s;
  }
  .marketing .service-card:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marketing .brand-track,
  .marketing .product-window,
  .marketing .hero-copy,
  .marketing .bars i {
    animation: none;
  }
  .marketing .reveal-ready {
    opacity: 1;
    transform: none;
  }
  .marketing .service-card,
  .marketing .service-card img {
    transition: none;
  }
  .marketing .service-card:hover,
  .marketing .service-card:hover img {
    transform: none;
  }
  .marketing .brand-viewport {
    overflow-x: auto;
    mask-image: none;
  }
  .marketing .brand-set[aria-hidden] {
    display: none;
  }
}
@media print {
  .brand-showcase {
    display: none !important;
  }
}

/* Soft decorative light stays behind content, never over financial screens. */
.marketing {
  isolation: isolate;
}
.site-glow {
  display: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.glow-enabled .site-glow {
  display: block;
}
.site-glow span {
  position: absolute;
  width: min(48vw, 550px);
  height: min(48vw, 550px);
  border-radius: 50%;
  opacity: 0.45;
  background: radial-gradient(circle, #78b6ed55, transparent 68%);
  animation: profit-light-drift 22s ease-in-out infinite alternate;
}
.site-glow span:nth-child(1) {
  top: -12%;
  right: -8%;
}
.site-glow span:nth-child(2) {
  bottom: -12%;
  left: -8%;
  background: radial-gradient(circle, #a78cdd55, transparent 68%);
  animation-delay: -11s;
}
.site-glow span:nth-child(3) {
  top: 30%;
  left: 25%;
  opacity: 0.25;
  background: radial-gradient(circle, #6ad3e344, transparent 68%);
  animation-delay: -6s;
}
.marketing.glow-enabled .header::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5b9de9, #9b69d7, transparent);
  background-size: 200% 100%;
  opacity: 0.65;
  animation: profit-light-line 12s linear infinite;
  pointer-events: none;
}
.marketing.motion-paused .site-glow span,
.marketing.motion-paused .header::after {
  animation-play-state: paused;
}
.partner-editor .card {
  margin-block: 15px;
}
@keyframes profit-light-drift {
  to {
    transform: translate(6vw, 7vh) scale(1.12);
  }
}
@keyframes profit-light-line {
  to {
    background-position: 200% 0;
  }
}
@media (max-width: 760px) {
  .site-glow span {
    animation: none;
    width: 90vw;
    height: 90vw;
  }
  .site-glow span:nth-child(3) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .marketing .site-glow span,
  .marketing.glow-enabled .header::after {
    animation: none;
  }
}
@media print {
  .site-glow {
    display: none !important;
  }
}

.marketing .demo-brand img {
  object-fit: contain;
}
