/* ==========================================================================
   Catch-Up Bookkeeping Page Styles (Figma node 1762:8689)
   ========================================================================== */

/* ==========================================================================
   HOW IT WORKS SECTION (Synchronized with index.html)
   ========================================================================== */
.how-it-works-section {
  padding: 80px 0 120px;
  background-color: #FFFFFF;
  overflow: hidden;
}

.how-it-works-container {
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.how-it-works-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.how-it-works-section .section-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background-color: #E4E9FD;
  color: #2029F0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.how-it-works-section .section-heading {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -1.5px;
  font-weight: 800;
  color: #111111;
  margin: 0 0 16px;
}

.how-it-works-section .section-subheading {
  font-size: 16px;
  line-height: 20px;
  color: #4A4A4A;
  max-width: 1100px;
  margin: 0 auto;
}

.how-it-works-layout {
  display: grid;
  grid-template-columns: 463px 515px;
  gap: 48px;
  justify-content: center;
  align-items: center;
  max-width: 1026px;
  margin: 0 auto 48px;
}

.how-visual-column {
  display: flex;
  justify-content: center;
}

.how-image-wrapper {
  position: relative;
  width: 463px;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: none;
  background-color: #F8FAFC;
}

.how-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.how-main-img.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.steps-container {
  display: flex;
  flex-direction: column;
}

.steps-list {
  width: 515px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: relative;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0;
}

.step-card:hover {
  opacity: 0.8;
}

.step-card.active {
  opacity: 1;
  transform: none;
}

.step-progress-rail {
  position: relative;
  width: 4px;
  min-height: 72px;
  height: 100%;
  background-color: #E2F5EA;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}

.step-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #16A34A;
  border-radius: 4px;
  transition: height 0.05s linear;
}

.step-icon-box {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card.active .step-icon-box {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

.step-card.active .step-icon-box.icon-box-green {
  background-color: #CFE8D6 !important;
}

.step-card.active .step-icon-box.icon-box-blue {
  background-color: #EFF2FF !important;
}

.step-card.active .step-icon-box.icon-box-yellow {
  background-color: #FEF4CC !important;
}

.step-card.active .step-icon-box.icon-box-pink {
  background-color: #FFEEF2 !important;
}

.step-card.active .step-icon-box.icon-box-cyan {
  background-color: #E9FBFD !important;
}

.step-icon-box img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  color: #111827;
  margin: 0;
}

.step-card.active .step-title {
  font-weight: 700;
}

.step-desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: #54595B;
  margin: 0;
}

.how-cta-center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-how-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  background: linear-gradient(120deg, #5C7CF8, #6C52EF);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  line-height: 18px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(110, 115, 239, 0.4);
  box-shadow: 0 4px 14px rgba(117, 99, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-how-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(117, 99, 246, 0.45);
}

.btn-icon-maximize {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.btn-icon-maximize img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Responsive How It Works */
@media (max-width: 1024px) {
  .how-it-works-layout {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    max-width: 100%;
  }
  .how-image-wrapper {
    width: 100%;
    max-width: 440px;
    height: 480px;
  }
}

@media (max-width: 767px) {
  .how-it-works-section {
    padding: 40px 0 60px;
  }
  .how-it-works-section .section-header {
    margin-bottom: 24px;
  }
  .how-it-works-container {
    width: min(328px, calc(100% - 32px));
  }
  .how-it-works-section .section-chip {
    padding: 8px 16px;
    margin-bottom: 16px;
    font-size: 10px;
    line-height: 14px;
  }
  .how-it-works-section .section-heading {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.5px;
  }
  .how-it-works-section .section-subheading {
    font-size: 14px;
    line-height: 20px;
  }
  .how-it-works-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .how-visual-column {
    order: 1;
  }
  .steps-container {
    order: 2;
  }
  .how-image-wrapper {
    width: 100%;
    max-width: 328px;
    height: 372px;
    border-radius: 12px;
    margin: 0 auto;
  }
  .steps-list {
    width: 100%;
    gap: 18px;
  }
  .step-card {
    gap: 14px;
  }
  .step-card.active {
    transform: none;
  }
  .step-progress-rail {
    min-height: 56px;
  }
  .step-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .step-icon-box img {
    width: 20px;
    height: 20px;
  }
  .step-title {
    font-size: 16px;
    line-height: 22px;
  }
  .step-desc {
    font-size: 13.5px;
    line-height: 19px;
  }
  .how-cta-center {
    margin-top: 32px;
  }
  .btn-how-cta {
    width: 100%;
    max-width: 280px;
    height: 48px;
    font-size: 14px;
  }
}

/* ==========================================================================
   DATA SECURITY ANIMATED CONNECTOR LINES (Synchronized with index.html)
   ========================================================================== */
.service-security {
  overflow: hidden;
  position: relative;
}

.service-security-line,
.catch-up-page .service-security-line {
  display: none !important;
}

.service-security-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.service-security-svg-desktop {
  display: block;
}

.service-security-svg-mobile {
  display: none;
}

.sec-base-lines {
  opacity: 0.9;
}

.sec-flow-lines .flow-path {
  fill: none;
  stroke: #00AE5B;
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(0, 174, 91, 0.85)) drop-shadow(0 0 12px rgba(0, 174, 91, 0.45));
  stroke-dasharray: 24 160;
  stroke-dashoffset: 184;
  animation: secLineEnergyPulse 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sec-flow-lines .flow-top {
  stroke-dasharray: 20 80;
  stroke-dashoffset: 100;
  animation: secLineEnergyPulseTop 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 0s;
}

.sec-flow-lines .flow-left {
  animation-delay: 0.6s;
}

.sec-flow-lines .flow-right {
  animation-delay: 1.2s;
}

@keyframes secLineEnergyPulse {
  0% {
    stroke-dashoffset: 184;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@keyframes secLineEnergyPulseTop {
  0% {
    stroke-dashoffset: 100;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .service-security-svg-desktop {
    display: none;
  }
  .service-security-svg-mobile {
    display: block;
  }
  .service-security-svg-mobile .sec-flow-lines .flow-path {
    stroke-width: 2;
    stroke-dasharray: 8 32;
    stroke-dashoffset: 40;
    animation: secPulseMobile 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    filter: drop-shadow(0 0 4px rgba(0, 174, 91, 0.9));
  }
  .service-security-svg-mobile .sec-flow-lines .flow-top {
    stroke-dasharray: 6 20;
    stroke-dashoffset: 26;
    animation: secPulseMobileTop 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    animation-delay: 0s;
  }
  .service-security-svg-mobile .sec-flow-lines .flow-left {
    animation-delay: 0.5s;
  }
  .service-security-svg-mobile .sec-flow-lines .flow-right {
    animation-delay: 1.0s;
  }
}

@keyframes secPulseMobile {
  0% { stroke-dashoffset: 40; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes secPulseMobileTop {
  0% { stroke-dashoffset: 26; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

@media (max-width: 359px) {
  .service-security-diagram,
  .catch-up-page .service-security-diagram {
    transform: scale(calc((100vw - 32px) / 328)) !important;
    transform-origin: top center !important;
  }
}

/* Platform Compatibility Strip Links & Elementor Image Fix */
.elementor .service-platforms,
.service-platforms {
  height: auto !important;
  min-height: 224px;
}

.elementor .service-platforms-list img,
.service-platforms-list img {
  display: block !important;
  width: auto !important;
  height: 60px !important;
  max-height: 60px !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.service-platforms-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.service-platforms-list a:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .elementor .service-platforms-list img,
  .service-platforms-list img {
    max-width: calc((100vw - 200px) / 5) !important;
    height: auto !important;
    max-height: 60px !important;
  }
}

@media (max-width: 767px) {
  .elementor .service-platforms,
  .service-platforms {
    height: auto !important;
    min-height: 92px;
  }
  .elementor .service-platforms-list img,
  .service-platforms-list img {
    height: 20px !important;
    max-height: 20px !important;
    width: auto !important;
  }
}



/* ==========================================================================
   INDUSTRIES WE SERVE SECTION (Synchronized with index.html)
   ========================================================================== */
.industries-section {
  padding: 100px 0 120px;
  background-color: #FFFFFF;
}

.industries-section .container {
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.industries-section .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.industries-section .section-chip {
  background-color: #E4E9FD;
  color: #2029F0;
  font-family: 'Inter Tight', var(--font-body, sans-serif);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  display: inline-block;
  margin-bottom: 20px;
}

.industries-section .section-heading {
  font-family: 'Mier A', var(--font-heading, sans-serif);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.12;
  color: #111111;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.industries-section .section-subheading {
  font-family: 'Inter Tight', var(--font-body, sans-serif);
  font-size: 16px;
  line-height: 1.5;
  color: #4A4A4A;
  max-width: 680px;
  margin: 0 auto;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Flipbox Items */
.flipbox-item {
  width: 100%;
  height: 416px;
  perspective: 1200px;
  cursor: pointer;
  outline: none;
}

.flipbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 24px;
}

/* Flipbox hover, tap & focus states */
.flipbox-item:hover .flipbox-inner,
.flipbox-item.is-flipped .flipbox-inner,
.flipbox-item:focus-within .flipbox-inner {
  transform: rotateY(180deg);
}

/* Face Shared Properties */
.flipbox-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Front Face */
.flipbox-front {
  background-color: #EFF2FF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotateY(0deg);
  border: none;
}

.flipbox-content {
  padding: 32px 32px 12px;
}

.flipbox-content .industry-title {
  font-family: 'Inter Tight', var(--font-heading, sans-serif);
  font-size: 28px;
  font-weight: 700;
  color: #111111;
  margin: 0 0 8px;
  line-height: 1.25;
}

.flipbox-content .industry-desc {
  font-family: 'Inter Tight', var(--font-body, sans-serif);
  font-size: 14px;
  line-height: 1.5;
  color: #4A4A4A;
  margin: 0;
}

.flipbox-image-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  margin-top: auto;
  overflow: hidden;
}

.flipbox-image-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(180deg, #EFF2FF 0%, rgba(239, 242, 255, 0.3) 40%, rgba(239, 242, 255, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.flipbox-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Back Face (1:1 with index.html) */
.flipbox-back {
  background: linear-gradient(180deg, #6B94E8 0%, #7563F6 100%);
  color: #FFFFFF;
  transform: rotateY(180deg);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(117, 99, 246, 0.3);
  box-sizing: border-box;
}

.flipbox-back-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.industry-title-back {
  font-family: 'Inter Tight', var(--font-heading, sans-serif);
  font-size: 26px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
  align-self: flex-start;
}

.flipbox-back-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.industry-desc-back {
  font-family: 'Inter Tight', var(--font-body, sans-serif);
  font-size: 13.5px;
  line-height: 1.55;
  color: #FFFFFF;
  opacity: 0.95;
  margin: 0;
}

.industry-card-footer {
  margin: 0;
}

.btn-flipbox-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #5B78FE;
  font-family: 'Inter Tight', var(--font-body, sans-serif);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  align-self: flex-start;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn-flipbox-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: #485FC8;
}

.section-footer-cta {
  margin-top: 56px;
  text-align: center;
}

.btn-industries-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  background: linear-gradient(180deg, #6B94E8 0%, #7563F6 100%);
  color: #FFFFFF;
  font-family: 'Inter Tight', var(--font-body, sans-serif);
  font-size: 15px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(117, 99, 246, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-industries-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(117, 99, 246, 0.45);
  color: #FFFFFF;
}

.btn-industries-cta .btn-icon-maximize {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.btn-industries-cta .btn-icon-maximize svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-industries-cta .btn-ind-mobile {
  display: none;
}

/* Responsive Breakpoints */
@media (max-width: 991px) {
  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .industries-grid > .flipbox-item:last-child:nth-child(odd) {
    grid-column: span 2;
    max-width: 416px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .industries-section {
    padding: 40px 0 60px;
  }
  .industries-section .container {
    width: 100%;
    padding: 0 16px;
  }
  .industries-section .section-header {
    margin-bottom: 24px;
  }
  .industries-section .section-heading {
    font-size: 24px !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 8px !important;
  }
  .industries-section .section-subheading {
    font-size: 12px !important;
    line-height: 16px !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
  }
  .industries-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .industries-grid > .flipbox-item:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }
  .flipbox-item {
    height: 380px;
  }
  .section-footer-cta {
    margin-top: 32px;
  }
  .btn-industries-cta {
    height: 44px;
    padding: 0 24px;
    font-size: 14px;
  }
  .btn-industries-cta .btn-ind-desktop {
    display: none;
  }
  .btn-industries-cta .btn-ind-mobile {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flipbox-inner {
    transition: none !important;
  }
}

/* ==========================================================================
   With Vs. Without / Before vs. After Comparison Styles & Spinning
   ========================================================================== */
@keyframes hobkDiffSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.diff-center-vs {
  --diff-spin-speed: 12s;
}

.diff-vs-img {
  width: 206px;
  height: 206px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.diff-center-vs.is-spinning .diff-vs-img {
  animation: hobkDiffSpin var(--diff-spin-speed, 12s) linear infinite;
  transform-origin: center center;
  will-change: transform;
}

.diff-center-vs.is-spinning-reverse .diff-vs-img {
  animation: hobkDiffSpin var(--diff-spin-speed, 12s) linear infinite reverse;
  transform-origin: center center;
  will-change: transform;
}

.diff-warning-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #FFE4E4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.diff-dot-icon {
  width: 24px;
  height: 24px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #101712;
}

.diff-dot-icon svg {
  width: 8px;
  height: 8px;
  display: block;
}

.diff-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.diff-list li .diff-icon-badge {
  margin-top: 1px;
}

.diff-side-subtitle {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: #111111;
  margin: -16px 0 24px;
}

@media (max-width: 768px) {
  .diff-side-subtitle {
    font-size: 13px !important;
    line-height: 17px !important;
    margin: -8px 0 14px !important;
  }
  .diff-warning-icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
  }
  .diff-warning-icon svg {
    width: 10px !important;
    height: 9px !important;
  }
}

/* =============================================================================
   SERVICE COMPARE / CATCH-UP VS MONTHLY TABLE
   ============================================================================= */
.service-compare {
  height: auto !important;
  min-height: auto !important;
}

.service-compare-table {
  height: auto !important;
}

.service-compare-col {
  grid-template-rows: 104px repeat(var(--compare-rows, 7), 85px) !important;
}

@media (max-width: 768px) {
  .service-compare {
    height: auto !important;
  }
  .service-compare-table {
    height: auto !important;
  }
  .service-compare-col {
    grid-template-rows: 50px repeat(var(--compare-rows, 7), 48px) !important;
  }
}
